
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
variable in set analysis for dynamic change
Hi,
I need to find a formula where variable 'VERSION' changes dynamically in relation to given month.
In my case names of VERSIONS are corresponding to MONTH names (formated as data)
My formula is not working:
sum({<VERSION = {'=Month'}>} VAL)
As a result I want the formula to take value for EACH MONTH from different VERSION
- « Previous Replies
-
- 1
- 2
- Next Replies »
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
So, you want to add the set analysis in this new expression? Try this
Sum({<COST1 = {'Net Sales'}>} If(VERSION = Month, VAL))

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Not entirely sure, but may be this
Sum({<VERSION = p(Month)}>} VAL)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
not working, error in expression

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry this
Sum({<VERSION = p(Month)>} VAL)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thank you Sunny however now the result is a sum of all versions (please see the attached)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
should be what is marked blue in attached file

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Set analysis won't work for this... try this
Sum(If(VERSION = Month, VAL))

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thank you it now works however I wasn't exactly clear about the data model.
I already use set analysis in the expression to calculate value:
sum({<COST1 = {'Net Sales'}>} VAL)
so to use your formula properly I need to have COST1 filter selected on "Net Sales" which is impacting my other expressions.
Is there any other way?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
So, you want to add the set analysis in this new expression? Try this
Sum({<COST1 = {'Net Sales'}>} If(VERSION = Month, VAL))

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Perfect! Exactly what I need. Thank you very much

- « Previous Replies
-
- 1
- 2
- Next Replies »