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

Announcements
Only at Qlik Connect! Guest keynote Jesse Cole shares his secrets for daring to be different. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
coxon_88
Contributor III
Contributor III

Referencing inherited state in an expression

Hi,

I have several expressions in an alternate state that i need to reference selections made for both period and year in the inherited state. How would i do this? as an example here is one of those expressions:

=count(Orders)

Thanks.

3 Replies
sunny_talwar

May be like this

Count({<Period = $::Period, Year = $::Year>}Orders)

coxon_88
Contributor III
Contributor III
Author

Hi, that worked great, thankyou! One last question though, how would i adapt this for YTD set analysis. I expected it to be something like this but it doesnt work...

Count({<Period ={ '<=$::Period'}, Year = $::Year>}Orders)

sunny_talwar

May be like this

Count({<Period = {"<=$(=Max({$}Period))"}, Year = $::Year>}Orders)