Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi,
I have the below visual and I want to filter it to show those % attendance above or equal to 30%.
I tried implementing a visual filter as follows:
But the visual comes back empty.
How do i achieve this?
Solved! Go to Solution.
Hi @mp390988
Visual-level filters based on a measure in a Matrix visual are unfortunately pretty unintuitive.
They work by:
A safer way to get the result you want would be to create a secondary measure, and use it in the visual instead:
% attendance at least 30% =
VAR Threshold = 0.3
VAR PercentAttendance = [% attendance]
VAR Result =
IF ( PercentAttendance >= Threshold, PercentAttendance )
RETURN
Result
This will blank out any values (at the cell level) that are below the 30% threshold.
A side effect is that any rows/columns that are entirely blank as a result will be hidden. You can enable "Show items with no data" if you would like to display blank rows/columns.
Does this work as expected?
Hi @mp390988
I hope this information is helpful. Please let me know if you have any further questions or if you'd like to discuss this further. If this answers your question, please Accept it as a solution and give it a 'Kudos' so others can find it easily.
Thank you.
Hi @mp390988
May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.
Thank you.
Hi @mp390988
Could you please confirm if your query have been resolved the solution provided by @OwenAuger ? If they have, kindly mark the helpful response and accept it as the solution. This will assist other community members in resolving similar issues more efficiently.
Thank you
Hi @mp390988
Visual-level filters based on a measure in a Matrix visual are unfortunately pretty unintuitive.
They work by:
A safer way to get the result you want would be to create a secondary measure, and use it in the visual instead:
% attendance at least 30% =
VAR Threshold = 0.3
VAR PercentAttendance = [% attendance]
VAR Result =
IF ( PercentAttendance >= Threshold, PercentAttendance )
RETURN
Result
This will blank out any values (at the cell level) that are below the 30% threshold.
A side effect is that any rows/columns that are entirely blank as a result will be hidden. You can enable "Show items with no data" if you would like to display blank rows/columns.
Does this work as expected?
User | Count |
---|---|
84 | |
80 | |
69 | |
46 | |
46 |
User | Count |
---|---|
106 | |
45 | |
42 | |
39 | |
39 |