Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreJoin 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
Hi there,
my need is to color 2 cells of the same column if they have the same value; for example:
| REF | COLORTHAT |
| ABC | THISYES |
| DEF | THISNO |
| GHI | THISYES |
thanks
Solved! Go to Solution.
Hi @Mikahel369 ,
According to your description, here's my solution.
Create a measure.
Color =
IF (
COUNTROWS (
FILTER ( ALL ( 'Table' ), 'Table'[COLORTHAT] = MAX ( 'Table'[COLORTHAT] ) )
) > 1,
"Red"
)
In the visualizations pane, select the drop-box of COLORTHAT, then click Conditional formatting>Font color.
Select the measure in the dialog.
Get the expected result:
I attach my sample below for your reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
You can use this formula in conditional fomatting.
Select first the range in which you want to apply the conditional formatting (in my case C3:C6)
Go to the HOME --> Conditional formatting --> New rules --> "Use formula ..:".
Paste this formula to the box--> =IF(COUNTIF($C$3:$C$6;C3)>1;TRUE;FALSE)
Click FORMAT and adjust the formatting and then press OK.
If it doesn't work get back and remove from the formula the double quotes.
✅ Check the question as solved if I helped you.
You can follow me on LinkedIn:
Hi @Mikahel369 ,
According to your description, here's my solution.
Create a measure.
Color =
IF (
COUNTROWS (
FILTER ( ALL ( 'Table' ), 'Table'[COLORTHAT] = MAX ( 'Table'[COLORTHAT] ) )
) > 1,
"Red"
)
In the visualizations pane, select the drop-box of COLORTHAT, then click Conditional formatting>Font color.
Select the measure in the dialog.
Get the expected result:
I attach my sample below for your reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I'll move elsewhere... if I found how to
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 3 | |
| 3 | |
| 2 |
| User | Count |
|---|---|
| 7 | |
| 5 | |
| 5 | |
| 5 | |
| 4 |