Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi everyone,
I am using Visual Level filters to hide zero values from a column subtotal in a Matrix. Is there a way to do this using a slicer instead?
More context if required:
I have three measures:
EDWF. = CALCULATE(SUM('FPI & Accounts Fusion & EDWF Data'[POSTED VALUE]),'FPI & Accounts Fusion & EDWF Data'[Data Source]="EDWF"))
Fusion. = CALCULATE(SUM('FPI & Accounts Fusion & EDWF Data'[POSTED VALUE]),'FPI & Accounts Fusion & EDWF Data'[Data Source]="Fusion"))
VAR. = ROUND([EDWF]-[Fusion],2)
I would like to create a slicer which will allow a user to toggle between displaying all data or data without zeroes based on the third measure (VAR).
Solved! Go to Solution.
Hello @imranamikhan
We will need to do a couple steps to get the result you are looking for.
1. Create a table with the selection you want the users to have.
2. Write a measure to read the users selection and do the calc on what rows to show. The default is "Show Zeros" in case the user makes no selection or selects both choices.
Zero Row Filter = VAR ZeroChoice = SELECTEDVALUE ( 'zeros table'[zero selection], "Show zeros") RETURN IF ( ZeroChoice = "Hide zeros" && [VAR] = 0, 0, 1)
3. Add that measure to the visual filter and set to = is 1
4. Add a slicer with your selection column from the table in step 1 to the page.
Hello @imranamikhan
We will need to do a couple steps to get the result you are looking for.
1. Create a table with the selection you want the users to have.
2. Write a measure to read the users selection and do the calc on what rows to show. The default is "Show Zeros" in case the user makes no selection or selects both choices.
Zero Row Filter = VAR ZeroChoice = SELECTEDVALUE ( 'zeros table'[zero selection], "Show zeros") RETURN IF ( ZeroChoice = "Hide zeros" && [VAR] = 0, 0, 1)
3. Add that measure to the visual filter and set to = is 1
4. Add a slicer with your selection column from the table in step 1 to the page.
Awesome solution. Thank you very much!!!
Fantastic, this helped and worked for me!
Hi again - your solution worked perfectly. Thank you so much for your support. You truly are an asset to this community.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |