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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

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
October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.