Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
So, you want to add the set analysis in this new expression? Try this
Sum({<COST1 = {'Net Sales'}>} If(VERSION = Month, VAL))
Not entirely sure, but may be this
Sum({<VERSION = p(Month)}>} VAL)
not working, error in expression
Sorry this
Sum({<VERSION = p(Month)>} VAL)
thank you Sunny however now the result is a sum of all versions (please see the attached)
should be what is marked blue in attached file
Set analysis won't work for this... try this
Sum(If(VERSION = Month, VAL))
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?
So, you want to add the set analysis in this new expression? Try this
Sum({<COST1 = {'Net Sales'}>} If(VERSION = Month, VAL))
Perfect! Exactly what I need. Thank you very much