The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hello,
need help with custom colors on 1 column!
So the column is text based, all I need is 1 word inside text to be RED, everything else in cell must be black.
textcolumn =
VAR NEFAKT = (CURRENCY(Zmaje[Vrednost]) - CURRENCY(Zmaje[koncnavrednost]))
RETURN
FORMAT(Zmaje[Vrednost], "##,#0.00 € ") & (" Nefakt "& (FORMAT(NEFAKT, "##,#0.00 €")))
I need this to be RED
(FORMAT(NEFAKT, "##,#0.00 €")))
Solved! Go to Solution.
Hi @ModernHand ,
According to your statement, I know that you want to custom color of your value based on specific words.
I think you can try to create a measure.
Measure = IF(CONTAINSSTRINGEXACT(MAX('Table'[Text]),"b"),"Red","Black")
Then use conditional formatting in table or matrix to change the font color.
For reference: Apply conditional table formatting in Power BI - Power BI | Microsoft Learn
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @ModernHand ,
According to your statement, I know that you want to custom color of your value based on specific words.
I think you can try to create a measure.
Measure = IF(CONTAINSSTRINGEXACT(MAX('Table'[Text]),"b"),"Red","Black")
Then use conditional formatting in table or matrix to change the font color.
For reference: Apply conditional table formatting in Power BI - Power BI | Microsoft Learn
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
80 | |
78 | |
37 | |
34 | |
31 |
User | Count |
---|---|
93 | |
81 | |
60 | |
49 | |
49 |