
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Help with variable within set analysis
Hello,
Example of current set analysis:
=num(sum({$<Lev = {1},PeriodCounter ={">=$(#=max(PeriodCounter)-11<=$(#=max(PeriodCounter))"},period=>}Netsales)*-1/1000000,'# ##0')
I want to store the red part (rolling 12) in a variable. But how do I then use that variable correct? I can't get the right syntax.
Thanks,
Meg
Accepted Solutions


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi!
You should create the variable vSetExpression with the following content
PeriodCounter ={">=$(#=max(PeriodCounter)-11<=$(#=max(PeriodCounter))"},period=
And then you invoque it as follows
=num(sum({$<Lev = {1},$(vSetExpression )>}Netsales)*-1/1000000,'# ##0')
Let me know your doubts! Regards,
Jaime.


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi!
You should create the variable vSetExpression with the following content
PeriodCounter ={">=$(#=max(PeriodCounter)-11<=$(#=max(PeriodCounter))"},period=
And then you invoque it as follows
=num(sum({$<Lev = {1},$(vSetExpression )>}Netsales)*-1/1000000,'# ##0')
Let me know your doubts! Regards,
Jaime.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you, was more simple than I thought:)
