Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I have a line chart with one dimension and multiple expressions.
Dimension is Months
For some of the expressions, i have to calculate expression values as PREVIOUS MONTHS' VALUE - CURRENT MONTHS' VALUE
Is it possible to implement the same?
if 4 (April) is your current month (selected) then previous month would be as follows:
create a variable and name it vPreviousMonths
in the definition put
=max(Month) -1
then in your expression if it is sum(sales)
it would be sum(sales) - sum({<Month={$(vPreviousMonth)}>}Sales)
Hope this helps
Hi,
You can try the command 'above'
something like above(sum(value))-sum(value) when the dimension is month.
BR
Ariel
I have to write an expression such as
when YearField=2013, (100-(Prev Value-Curr Value)/Prev Value)*100 as Expr1
and for all other years it should be previous value of Expr1 -((Prev Value- Curr Value) /Prev Value) * 100 as Expr1
Dear,
can you attach the sample file so that we can help you in a better way.
Thanks,
Mukram