Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I have a Matrix visual that shows percentage % in Qtuarterly and monthly in Excel as bolow and I have applied gradient colounr in Excel like below.
this pictures indicates that after completion of Quarter it should show Gray colour in coloumn and remaining coloums the gradient colour should be applied.
like same for months also.
I have used the below DAX measure to set a Field Value in Conditional Formating.
I used below measure and it is worked
Hi @DanduMani104 ,
When using field conditional formatting, the gradient does not take effect directly, you have to refine the DAX gradient yourself.
Best regards,
Community Support Team_ Scott Chang
Hi, Soory for asking..
I can't understaand, Could you please explain how can we do that
Hi @DanduMani104 ,
This would be more complicated, for example, if the whole was 100, 0-10 would be one color, 10-20 would be another, and so on.
Apply conditional table formatting in Power BI - Power BI | Microsoft Learn
Best regards,
Community Support Team_ Scott Chang
How can I convert above DAX measure using SWITCH function.
How can I convert above DAX measure using SWITCH function.
Hi @DanduMani104 ,
Try changing the IF statement to a SWITCH statement, as the IF statement may have dependencies that cause conditions to not match exactly.
SWITCH function (DAX) - DAX | Microsoft Learn
Hope it helps!
Best regards,
Community Support Team_ Scott Chang
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 20 | |
| 11 | |
| 10 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 34 | |
| 31 | |
| 19 | |
| 12 | |
| 11 |