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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Niiru1
Helper V
Helper V

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
Niiru1
Helper V
Helper V

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
Niiru1
Helper V
Helper V

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

@Niiru1  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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.