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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
I have tried using the formula
Solved! Go to Solution.
Hi,
I am not sure how your semantic model looks like, but I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file.
KEEPFILTERS function (DAX) - DAX | Microsoft Learn
DAX operators - DAX | Microsoft Learn
Value total measure: =
SUM( CRIMs[Value total] )
expected result measure: =
CALCULATE (
[Value total measure:],
KEEPFILTERS ( CRIMs[Business Area Affected] IN { "supply chain management", "shipping" } )
)
Thank you, this worked, I also used the following function which worked as well:
CALCULATE([Total_CRIMS],FILTER(CRIMs, CRIMs[Business Area Affected] = "Shipping" || CRIMs[Business Area Affected] = "Purchasing/Logistics" || CRIMs[Business Area Affected] = "Supply Chain Management"))
Hi,
I am not sure how your semantic model looks like, but I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file.
KEEPFILTERS function (DAX) - DAX | Microsoft Learn
DAX operators - DAX | Microsoft Learn
Value total measure: =
SUM( CRIMs[Value total] )
expected result measure: =
CALCULATE (
[Value total measure:],
KEEPFILTERS ( CRIMs[Business Area Affected] IN { "supply chain management", "shipping" } )
)