Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

how to calculate...

Hello,

       Everyone, I have a problem about making a chart to calculate ...

       Please see the attchment for sample,  and I need to make a chart like this :

     

   How to?

1 Solution

Accepted Solutions
sunny_talwar

May be like this

t:

LOAD * INLINE [

    ID, Year, Level

    ID001, 2014, A

    ID002, 2014, B

    ID003, 2014, C

    ID001, 2015, B

    ID002, 2015, C

    ID003, 2015, A

];

QUALIFY *;

UNQUALIFY ID;

t1:

LOAD *

Resident t;

Pivot Table

Dimensions:

t1.Year

t1.Level

Year

Level

Expression:

=Count(If(Year > t1.Year, ID))

View solution in original post

2 Replies
sunny_talwar

May be like this

t:

LOAD * INLINE [

    ID, Year, Level

    ID001, 2014, A

    ID002, 2014, B

    ID003, 2014, C

    ID001, 2015, B

    ID002, 2015, C

    ID003, 2015, A

];

QUALIFY *;

UNQUALIFY ID;

t1:

LOAD *

Resident t;

Pivot Table

Dimensions:

t1.Year

t1.Level

Year

Level

Expression:

=Count(If(Year > t1.Year, ID))

Not applicable
Author

thanks a lot.  That's what I'm looking for.