This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hi all !!
I need to change the font color of the column Nom du projet, based on two others columns Date derniere MEP Planifie and % Avancement projet
Each one has already a color condition
Hi @fbittencourt ,
Please adapt your DAX to look like this:
Format cond Nom du projet =
VAR MEP_Planifie = MAX(REF_PROJET[MEP Date])
VAR Avancement = MAX(REF_PROJET[% Avancement projet])
-- Check the color conditions for Date derniere MEP Planifie
VAR Color_MEP = IF(MEP_Planifie < [Date_jourM-1], "#E66C37", "#000000")
-- Check the color conditions for % Avancement projet
VAR Color_Avancement = IF(Avancement > 0.9, "#E66C37", "#000000")
-- If both are red, set the color to blue, otherwise keep the respective color
RETURN
IF(Color_MEP = "#E66C37" && Color_Avancement = "#E66C37", "#0000FF", "#000000")
@fbittencourt ,Create a new measure or column for the "Nom du projet" font color.
Format cond Nom du projet =
VAR MEP_Planifie = MAX(REF_PROJET[MEP Date])
VAR colorMEP = IF(MEP_Planifie < [Date_jourM-1], "#E66C37", "#000000")
VAR colorProgress = IF([% Avancement projet] > 0.9, "#E66C37", "#000000")
RETURN
SWITCH(
TRUE(),
colorMEP = "#E66C37" && colorProgress = "#E66C37", "#0000FF", // Both conditions are red, set to blue
colorMEP = "#E66C37", "#E66C37", // MEP condition is red
colorProgress = "#E66C37", "#E66C37", // Progress condition is red
"#000000" // Default color
)
Proud to be a Super User! |
|
Thanks for your quick answer !! I will acceptt as a solution.
I have a small issue concerning blank values, if you are to hepl me again I appreciate, the condition applies as well with blank date values see below:
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 34 | |
| 29 | |
| 29 | |
| 21 | |
| 18 |
| User | Count |
|---|---|
| 68 | |
| 45 | |
| 33 | |
| 24 | |
| 23 |