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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
tan_chungkam
Creator
Creator

Set Analysis Calculation Measure

Hi all lovely people,

I need to get some figure.

I managed to get the Count of ID for the latest YearPeriod.

Now I would like to get the growth of the ID compare to previous YearPeriod.

I guess the measure should be using the [ Count ({<YearPeriod={"$(=max(YearPeriod))"}, OrderType={'New'}>}ID) ] to minus out the previous YearPeriod.

For e.g. now the new ID is 3, the growth of new ID should be -1. (previous YearPeriod is 20181202)

Please find attached my qvf and excel file.

LayoutLayoutNew ID MeasureNew ID MeasureExisting ID measureExisting ID measurePart of my scriptingPart of my scripting

 

Labels (2)
2 Replies
Channa
Specialist III
Specialist III

i think you need to check this variable

vPrevYearPeriod

 

this you looking for same month last year or same year previous month

 

 

Channa
tan_chungkam
Creator
Creator
Author

I'm looking for Previous YearPeriod.

For e.g.  20190101's previous YearPeriod is 20181202.

20181202 previous YearPeriod is 20181201.