Skip to main content
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)