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.
Hey guys,
I need your wisdom with a matrix visualization where I have used a parameter to control the rows, allowing users to select their desired view. My goal is to hide rows that contain "Blank Approver" values when Approver Parameter is selected.
Here’s the issue:
I have attached an image to illustrate how the matrix should look when both the parameter and type are selected (as an ideal scenario). Is there a way to achieve this behavior where the "Blank Approver" rows are completely hidden when only the parameter is selected?
Parameter selected
Parameter and Type is selected
Solved! Go to Solution.
Hi @non23,
Please check the following mesuare:
ShowRows =
VAR SelectedField = SELECTEDVALUE(Parameter[Parameter Fields])
RETURN
SWITCH(
TRUE(),
SelectedField = NAMEOF('MainTable'[Approver]) && SELECTEDVALUE('MainTable'[Approver]) = "Blank", 0,
SelectedField = NAMEOF('MainTable'[Rejected by]) && SELECTEDVALUE('MainTable'[Rejected by]) = "Blank", 0,
SelectedField = NAMEOF('MainTable'[Created by]) && SELECTEDVALUE('MainTable'[Created by]) = "Blank", 0,
1
)
Then filter the visual with ShowRows=1 to remove Blank value:
Result for your reference:
Best regards,
Joyce
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I have managed to find a partial solution by following this link.
Unfortunately, I'm having issues with the Total as it's giving total of everything instead of the displayed values only.
Any help on the total issue would be appreciated!
Hi @non23,
Please check the following mesuare:
ShowRows =
VAR SelectedField = SELECTEDVALUE(Parameter[Parameter Fields])
RETURN
SWITCH(
TRUE(),
SelectedField = NAMEOF('MainTable'[Approver]) && SELECTEDVALUE('MainTable'[Approver]) = "Blank", 0,
SelectedField = NAMEOF('MainTable'[Rejected by]) && SELECTEDVALUE('MainTable'[Rejected by]) = "Blank", 0,
SelectedField = NAMEOF('MainTable'[Created by]) && SELECTEDVALUE('MainTable'[Created by]) = "Blank", 0,
1
)
Then filter the visual with ShowRows=1 to remove Blank value:
Result for your reference:
Best regards,
Joyce
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
24 | |
9 | |
7 | |
6 | |
6 |
User | Count |
---|---|
28 | |
11 | |
11 | |
10 | |
6 |