Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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" } )
)
User | Count |
---|---|
22 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
13 | |
11 | |
9 | |
6 |