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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
ramibelgacem
Frequent Visitor

Create a filter and a conditional formatting on cell's value of a matrix visual

Hello,

 

I'm just starting using Power BI and i have two questions, but i will describe my data before that, so you can understand my situation.

 

Here is my data 
Here is my two tables in power bi:

1- Employee table

employee.png

2- Duration table

duration.png

 

And here is the matrix that i created, employee names in rows and "Year"/"Week number only" in columns:

matrix.png

ramibelgacem_0-1740673133866.png

I applied a conditonal formatting based on the sum of duration_per_day field: if it is blank or value under 5 then color red.

ramibelgacem_1-1740673221192.png

 

First question :

How can i change the condition of the red cells this way:

highlight in red if :

- Cell is blank

or

- value under 5

- mandate is yes 

- start_date of the employee is after the date of the week

==based on these condition, the first 2 cells in the matrix for Employee 1 would not be highlighted in red because the Employee 1 have a start date after 2023 and 2024 year.

matrix.png

 

Second question:

How can i add a filter in the page where i can show on the matrix only the lines that have at least one cell in red.

ramibelgacem_0-1740739576784.png

 

I already tried to implement some solution for these questions using new measures but it is not working, i'm not sure that i applied it in the right way or if it is even the solution.

Thank you very much for your help.

3 REPLIES 3
ramibelgacem
Frequent Visitor

Hello,

 

Anyone can help ?

Thanks

Anonymous
Not applicable

Hi @ramibelgacem 

Please provide sample data that fully covers your issue (in the form of table or pbix file) and the expected outcome based on the sample data you provided. Please remove any sensitive data in advance.

 

 

 

Best Regards,

Jayleny

Hello @Anonymous , thanks for your response.
I edit my post to include the link to the data file as i can't attach files and the expected output 🙂 

I appreciate your help.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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