Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
Check it out now!Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more
Hi everyone,
I hope you are all doing great. I want to make a Measure goes blank if a slicer is selected but I am only half way there.
I have dimRegion Table as below:
RegionState RegionState ID
Region | State ID |
Region AA | 1 |
Region BB | 1 |
Region CC | 1 |
Region XX | 2 |
Region YY | 2 |
Region ZZ | 2 |
And I have StateTable which is connected to Region Table above with State ID
StateID | State |
1 | VIC |
2 | NSW |
Also, I have as staff cost table (factTable) as below.
StateID | Metric | Amount |
1 | Staff Cost | 500 |
The problem is Staff Cost is allocated on State Level and not the Region Level. So, I want to make sure that my measure
(StaffCost = sum(StaffCost[Amount]) )goes blank or 0 when someone selected Region Slicer in Power BI.
I tried using following dax
Your help will be highly appreciated.
Kind regards,
Solved! Go to Solution.
You could try using ISFILTERED(dimRegion[Region]) instead of HASONEVALUE() in your if statement.
You could try using ISFILTERED(dimRegion[Region]) instead of HASONEVALUE() in your if statement.
Exactly what I needed.
Thank you