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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Conditional Formatting with using Dimensions in Dax Measure

Hi community,

 

I've a specific issue. I'd like to create a measure to control the colouring of my visual. 

As you can see below I'm trying to say if my measure is less than 0 AND my KPI is 1 than do this or do that. 

I tried to get this work with calculated colums. No errors were shown but it didn't work at all.

 

colour_issue.PNG

4 REPLIES 4
Icey
Community Support
Community Support

Hi @Anonymous ,

 

Is this problem solved?


If it is solved, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.


If not, please let me know.

 


Best Regards
Icey

Icey
Community Support
Community Support

Hi @Anonymous ,

 

I have tested on my side and it works well. If "KPI" is a column, you need to use MAX()/MIN()/... to specify the current row.

color2.PNG

You can refer to this post to set Conditional formatting of Matrix visual in Power BI.

 

 

Best Regards,

Icey

 

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

vanessafvg
Community Champion
Community Champion

is this a matrix?  are you using the conditional formatting?





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Anonymous
Not applicable

Hi Vanessa,

 

yes, this is a matrix and I'm trying to use the conditional formatting based on a measure. 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.