Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
mp390988
Helper IV
Helper IV

How to filter values in matrix visual

Hi,

 

I have the below visual and I want to filter it to show those % attendance above or equal to 30%.

 

mp390988_0-1746650585847.png

 

 

I tried implementing a visual filter as follows:

 

mp390988_1-1746650763798.png

 

 

But the visual comes back empty.

 

How do i achieve this?

1 ACCEPTED SOLUTION
OwenAuger
Super User
Super User

Hi @mp390988 

Visual-level filters based on a measure in a Matrix visual are unfortunately pretty unintuitive.

They work by:

  1. Evaluating the "total" value of the measure for each row of the matrix (not for each cell!), even if totals are not displayed per row.
  2. Based on these total values, filter the rows of the matrix according to the filter condition.

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?


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

View solution in original post

4 REPLIES 4
v-karpurapud
Community Support
Community Support

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.

v-karpurapud
Community Support
Community Support

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.

v-karpurapud
Community Support
Community Support

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

OwenAuger
Super User
Super User

Hi @mp390988 

Visual-level filters based on a measure in a Matrix visual are unfortunately pretty unintuitive.

They work by:

  1. Evaluating the "total" value of the measure for each row of the matrix (not for each cell!), even if totals are not displayed per row.
  2. Based on these total values, filter the rows of the matrix according to the filter condition.

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?


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.