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: 
Anonymous
Not applicable

Help on set variable

Hi,

I am trying to make a pivot table which comprise of budget headcount data (month on month) . By design, the headcount numbers are progressive (e.g  Feb'17 heacount numbers, will show Jan+Feb (YTD)). i need help on how to ensure that for any given month, the table shows me data relevant only to that period.

my set variable

sum({<Scenario={Budget}, HeadCountType={"HC Request","PH","Open","PHWS","Attrition Replacement"},DateType={THD},year={$},month={$}>}[FTE_Alloc])

Thanks in advance

Labels (1)
4 Replies
sunny_talwar
MVP
MVP

Are you using Year and Month as your dimensions?

Anonymous
Not applicable
Author

Yes i am

antoniotiman
Master III
Master III

You remove

Month={$),Year{$} don't need

Correct is

Year=$::Year,Month=$::Month

however You don't need because you don't have any Alternate State in Your Expression.

Default is Current state/selection {$}

sunny_talwar
MVP
MVP

In that case you have two options

1) Use The As-Of Table

2) Use Missing Manual - Above() and Below() functions