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
jums
Frequent Visitor

dax code for colour coding

my conditional formating of colour on opportunity status , won,lost ,open only shows the right colours when I include opportunity ID in the row header ,can someone know how to fix this issue?

1 REPLY 1
ValtteriN
Super User
Super User

Hi,

It is quite hard to grasp what you are trying to achieve. Could you provide some examples of the data and dax you are currently using? Generally speaking it sounds like the DAX you use doesn't work properly in the rowcontext. It might be that your measure needs the OpportunityID to get proper results. To troubleshoot this I would place the conditional formatting measure in the visualization you are trying to format. This way you should be able to see more easily what is the root cause for the problem. 


E.g. in this example instead of placing my measure as a formatting option I placed it to the table to see if the value is what I expected:



ValtteriN_0-1659812663273.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




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.