Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

Announcements
Attend QlikWorld 2020 and hear keynote speaker, Malcolm Gladwell. Register by February 29th to save $200. Learn More
coxon_88
New 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
Highlighted

Re: Referencing inherited state in an expression

May be like this

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

Highlighted
coxon_88
New Contributor II

Re: Referencing inherited state in an expression

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)

Highlighted

Re: Referencing inherited state in an expression

May be like this

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