Forum Discussion

mfaber's avatar
mfaber
Frequent Visitor
9 years ago
Solved

Using slicer for two sheets or calculating change for waterfall chart on one page

Hey,   so, I'm trying to make a waterfall chart for my table, but the problem is, I can't just make the changes column simply, because I have different categories and I want to see the changes for ...
  • MattAllington's avatar
    9 years ago

    You really need a calendar table with an ID column (integer that continuously advances by 1 for every month). WIth  this set up, you can create a lifetime to date calculation and subtract the lifetime to date from the previous lifetime to date for the prior month. Read my blog about calendar tables,http://exceleratorbi.com.au/power-pivot-calendar-tables/

    then write a formula something like this. 

     

    LTD = calculate (sum(data[value]),filter(all(calendar),calendar[ID] <= max(calendar[ID]))

    chg vs last month = [LTD] - calculate (sum(data[value]),filter(all(calendar),calendar[ID] <= max(calendar[ID])-1)