Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
period | category | money | count | mm | PM | APM |
---|---|---|---|---|---|---|
Currentperiod-2 | CAT | 50000 | 100 | 5000 | 10 | |
CurrentPeriod-1 | CAT | 40000 | 120 | 6000 | 6.6 | |
CurrentPeriod-0 | CAT | 90000 | 500 | 8000 | 11.25 |
Until MM the data is coming from directly table. PM definition is money/mm . Now i need to compare the PM from current period to previous time periods. So i need to populate the values only in CurrentPeriod-1 and CurrentPeriod-0 sections. how to write the expression dynamically .
APM= (6.6-10)/10*100
Thanks,
Kumar
Did you try above function?
taking PM expression with an example Sum(PM)
so your APM expression would be (Sum(PM) - above(Sum(PM)) )/above(Sum(PM))
see below article for more details
SUM(MONEY)/SUM(MM)-ABOVE(SUM(MONEY)/SUM(MM))/ABOVE(SUM(MONEY)/SUM(MM))
Watch you brackets it should be (a-b)/b
right now its a-b/b
let me know if it works. Mark as answered it it does
Ranjith,
If i don't have category column in main table view the formula works fine. Because in original data category column have different types like CAT1,CAT2. the formula is working for single dimension only. Thanks For your help !
Thanks,
Kumar
number of dimensions shouldnt matter.
are you using a pivot table where one of the dimensions have been pivoted to a column? if so use before function