Enable filters to affect a cumulative measure

IR15H

New Member
Joined
Jun 8, 2013
Messages
13
Hi,


I've created various measures to help try and show a baseline plan of implementation versus actual, which works as expected when there's no filters applied. However, when I apply a filter, none of the measures update and instead continue to show the full, 'unfiltered', values. I have tried googling for a few days and reading similar examples but just can't crack it on my own.

I created a new calendar table within Power BI based on the earliest/minimum 'base date' and the latest/maximum 'plan date', called "Common Date".

My measures are;

Code:
xLIVE = CALCULATE (
    SUM( Sheet1[Value] ),
    FILTER (
        ALL ( Sheet1 ),
        Sheet1[Plan Date] <= MAX ( 'Common Date'[Date] ) && Sheet1[Status] = "Live"
    )
)

Code:
xbaseplan =
CALCULATE (
    SUM( Sheet1[Value] ),
    FILTER ( ALL ( Sheet1 ), Sheet1[Base Date] <= MAX ( 'Common Date'[Date]  ) && Sheet1[Base Date] <> BLANK ()  ))

Code:
xr Revised Plan = CALCULATE (
    SUM( Sheet1[Value] ),
    FILTER (
        ALL ( Sheet1 ),
        Sheet1[Plan Date] <= MAX ( 'Common Date'[Date] ) && Sheet1[Plan Date] <> BLANK ()
    )
)

An example where it doesn't work, displaying 'all' data, even when filtered;

y2uEtG3.png


I've also linked and an example file for convenience (can't upload Power BI files on here).


Any help would be greatly appreciated.
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.

Forum statistics

Threads
1,223,885
Messages
6,175,183
Members
452,615
Latest member
bogeys2birdies

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top