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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
rouelandrew
Frequent Visitor

Matrix Visual: How to filter out blank data that only appear after based on slicer condition

I have a Matrix Table with the below data. What I'm trying to show is which units were below SLA for X consequtive months.

The potential users should be able to filter by Account Name, input their targetted SLA and choose which months to look at, in this case it's from January up to the current month of April. The blank fields showing up for the month columns are not blank in the actual dataset, but are those months where that unit had an SLA above what was set.

 

Example: If X unit had an SLA of 100% for 2024-01, the report would show that month blank. But if you set the SLA to 100% then the data shows up.

 

Since the client wants to know which units were failing SLA for X # of consequtive months, the current version of the report doesn't give them that straight answer. Instead it shows them all the units that failed within that time span, including those that only failed for 1 month and just puts in the passing SLA as blank.

 

The workaround right now is to Export the table to Excel and the filter out the blanks there. But is there a way to do that within Power BI?

 

rouelandrew_0-1714482472991.png

 

3 REPLIES 3
Anonymous
Not applicable

Hi, @rouelandrew 

Perhaps you can use DAX to create a new column in the dataset to flag SLA failures. When the SLA is not met, this column can have a value of 1, otherwise 0.

SLA_Failure_Flag = IF([SLA_Percentage] < [Target_SLA], 1, 0)

Apply a filter on the matrix visual to include only records that are 1. This will automatically exclude all "blank" instances that represent SLA achievements.

 

How to Get Your Question Answered Quickly 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data)

Best Regards

Yongkang Hua

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi, I think this would work. The problem is the SLA is not necessarily set. As mentioned, there is a field where the user/client can input the SLA that they want to target. Let's say for example they change the SLA target to something like 99.5%, the matrix table needs to be able to reflect that. One of the filters/slicers is a free text field where they can input that desired SLA. Is there a way using DAX that I can indicate that whatever % SLA or number is in that slicer, that is what will be used to calculate the SLA Failure Flag in the calculated column?

Hi, I think this would work. The problem is the SLA is not necessarily set. As mentioned, there is a field where the user/client can input the SLA that they want to target. Let's say for example they change the SLA target to something like 99.5%, the matrix table needs to be able to reflect that. One of the filters/slicers is a free text field where they can input that desired SLA. Is there a way using DAX that I can indicate that whatever % SLA or number is in that slicer, that is what will be used to calculate the SLA Failure Flag in the calculated column?

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors