Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
Hi I have maanged to create this dax measure , which works fine if just a single filter selection is made , but when I add more than one filter it shows the total value , as if no filters have been applied , is there a way to amend it so that it works , no matter how many of the filters are chosen .
I have added these measures
Try This plz:
Cumulative - Cost =
VAR CurrentMonth = MAX('Data_Cost_List'[Date])
VAR TotalCost =
CALCULATE(
SUM('Data_Cost_List'[Value]),
FILTER(
ALL('Data_Cost_List'),
'Data_Cost_List'[Date] <= CurrentMonth
)
)
VAR CostByCostType =
IF (
ISFILTERED('Data_Cost_List'[Cost Type]),
CALCULATE(
SUM('Data_Cost_List'[Value]),
FILTER(
ALL('Data_Cost_List'),
'Data_Cost_List'[Date] <= CurrentMonth,
'Data_Cost_List'[Cost Type] = SelectedCostType
)
),
TotalCost
)
VAR CostByCostGroup =
IF (
ISFILTERED('Data_Cost_Profiles'[Cost Group]),
CALCULATE(
SUM('Data_Cost_List'[Value]),
FILTER(
ALL('Data_Cost_List'),
'Data_Cost_List'[Date] <= CurrentMonth,
RELATED('Data_Cost_Profiles'[Cost Group]) = SelectedCostGroup
)
),
CostByCostType
)
VAR CostByDataset =
IF (
ISFILTERED('Data_Cost_Profiles'[Dataset]),
CALCULATE(
SUM('Data_Cost_List'[Value]),
FILTER(
ALL('Data_Cost_List'),
'Data_Cost_List'[Date] <= CurrentMonth,
RELATED('Data_Cost_Profiles'[Dataset]) = SelectedDataset
)
),
CostByCostGroup
)
VAR CostByDataOwner =
IF (
ISFILTERED('Data_Cost_Profiles'[Data Owner]),
CALCULATE(
SUM('Data_Cost_List'[Value]),
FILTER(
ALL('Data_Cost_List'),
'Data_Cost_List'[Date] <= CurrentMonth,
RELATED('Data_Cost_Profiles'[Data Owner]) = SelectedDataOwner
)
),
CostByDataset
)
VAR CostByCurrentApprover =
IF (
ISFILTERED('Data_Cost_Profiles'[Current Approver]),
CALCULATE(
SUM('Data_Cost_List'[Value]),
FILTER(
ALL('Data_Cost_List'),
'Data_Cost_List'[Date] <= CurrentMonth,
RELATED('Data_Cost_Profiles'[Current Approver]) = SelectedCurrentApprover
)
),
CostByDataOwner
)
VAR CostByVendorName =
IF (
ISFILTERED('Data_Cost_Profiles'[Vendor Name]),
CALCULATE(
SUM('Data_Cost_List'[Value]),
FILTER(
ALL('Data_Cost_List'),
'Data_Cost_List'[Date] <= CurrentMonth,
RELATED('Data_Cost_Profiles'[Vendor Name]) = SelectedCurrentVendor
)
),
CostByCurrentApprover
)
VAR CostByVendorType =
IF (
ISFILTERED('Data_Cost_Profiles'[Vendor Type]),
CALCULATE(
SUM('Data_Cost_List'[Value]),
FILTER(
ALL('Data_Cost_List'),
'Data_Cost_List'[Date] <= CurrentMonth,
RELATED('Data_Cost_Profiles'[Vendor Type]) = SelectedCurrentVendorType
)
),
CostByVendorName
)
RETURN
CostByVendorType
This modified measure calculates the cumulative cost for each filter selection and then aggregates them to provide the overall cumulative cost. It checks for each filter if it is selected and applies the corresponding filter criteria accordingly.
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.
In case there is still a problem, please feel free and explain your issue in detail, It will be my pleasure to assist you in any way I can.
Do you think this is possible all I want is to have all the selected filters applied , so the cumulative value is changed based on all filters. I spent 8 hrs trying to get it to work yesterday , but nothing I am trying seems to work.
This fixed the errros by replacing , with && , but the filters are still not working , they appear to filter the months where the cost are showing , but the total cumalutive value is not being changed , here is what i have so far based on your exmple ,
Hi thanks for looking at this for me , I tried your code , but there are errors on these lines of
When I tested the code , th eonly filter that works is Vendor type , is this because the last part of the code has RETRURN
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.