Qlik Community

Ask a Question

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
Join us at the Cloud Data and Analytics Tour! REGISTER TODAY
cancel
Showing results for 
Search instead for 
Did you mean: 
coxon_88
Contributor II
Contributor II

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 II
Contributor II
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)