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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Using the Min Number to do conditional formatting

Hello,

 

I have a table where I'm trying to perform conditional formatting. I have a measure where I'm calculating the MIN of the Reprint Rate Column. However, there's something funky going on where there's no relationship to the row and so I can't compare the reprint rate to the Best in Network measure.
Ultimately, I'd like to compare the Reprint Rate against the Best in Network and if its the value then it should be green otherwise red.

jcorral94_1-1715398126451.png

Here are the measures:

Best in Network = MINX({[SC01_%], [SC02_%], [SC03_%], [SC04_%], [SC05_%]}, [Value])

Reprint Rate = IFERROR([Reprints]/[__Printed],0)

Reprint Color = IF('Reprints and Printed'[Reprint %] = [Best in Network], 1, 0


Does anyone have any recommendations? THANK YOU IN ADVANCE!

1 ACCEPTED SOLUTION
DataNinja777
Super User
Super User

Hi @Anonymous 

You can produce your required output by wrapping the table with 'all' to ignore row filter context in Minx function.  

Minx = minx(all('Table'),'Table'[Reprint Rate])

 Then you can use the conditional formatting on the measure to specify the color as you require.  

DataNinja777_0-1715404989154.png

I attach an example pbix file.  

View solution in original post

1 REPLY 1
DataNinja777
Super User
Super User

Hi @Anonymous 

You can produce your required output by wrapping the table with 'all' to ignore row filter context in Minx function.  

Minx = minx(all('Table'),'Table'[Reprint Rate])

 Then you can use the conditional formatting on the measure to specify the color as you require.  

DataNinja777_0-1715404989154.png

I attach an example pbix file.  

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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