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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

Conditional Format needs column rather than measure

I currently have a matrix with measures for sales, sales estimates and success % in it e.g.

 

Success %SalesEstimated Sales
28%209.47748.76
18%20.57115.21
49%134.36272.59

 

Measures 

Sales = CALCULATE(SUM(ZFT[Sales Estimates]),ZFT[Stage]="Standard Sale")
 
Estimated Sales = SUMX(FILTER('ZFT',ZFT[Stage]="Standard Sale"),ZFT[Sales Estimates])+SUMX(FILTER(ZFT,ZFT[Stage]="Penultimate Sale"),ZFT[Sales Estimates])
 
Success % = FORMAT(DIVIDE([Sales], [Estimated Sales]),"0%")
 
As conditional formatting only works with columns, is it possible to create a conditional colour column for success % e.g. red if near 0% and green if near 100%
 
Thanks
 
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Solved with a SWITCH(TRUE(),[MEASURE] >= 0 && [MEASURE] <= 1, "Colour"). The measure was in text format and not decimal / whole number format

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Solved with a SWITCH(TRUE(),[MEASURE] >= 0 && [MEASURE] <= 1, "Colour"). The measure was in text format and not decimal / whole number format

negi007
Community Champion
Community Champion

@Anonymous  What I understand from it, that you wish to have conditional formatting for measure "Sucess %" which is in row. You can put this measure in values field and then apply conditional formatting. Conditional formatting is applies to value fields so you can put these columns in value field. 

 

if this is not what you wanted, please share more details about your problem. thanks




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



Proud to be a Super User!


Follow me on linkedin

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.