Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi everyone,
I have a table below in Power BI, and I would like to add a font colour (red) according to my conditional formatting rule.
The table is something like below, and the condition I would like to apply is: when column B less than 4, OR column C less than 50, OR column D less than 1, the all table's font colout becomes red (except title row)
A | B | C | D | E |
XX | 1 | 50 | 1.2 | XX |
XX | 3.8 | 45.41 | 0.73 | XX |
XX | 3 | 42.71 | 0.28 | XX |
XX | 3 | 66.49 | 0.66 | XX |
XX | 3 | 45.5 | 0.38 | XX |
XX | 3 | 69.95 | 0.28 | XX |
XX | 2 | 45.4 | 0.27 | XX |
XX | 8 | 43.17 | 0.45 | XX |
XX | 5 | 38.13 | 0.53 | XX |
XX | 4.4 | 43.06 | 0.42 | XX |
XX | 5 | 42.78 | 0.33 | XX |
Is this something feasible in PowerBI please? Many thanks!!!!!
Solved! Go to Solution.
yes, you need to write a calculated column or measure (depending on if the result can be influenced by user interaction) across the entire visual (ALLSELECTED) . You can use MINX for your test.
Your sample date is insufficient - it always satisfies the red color condition. I changed the first row's B value to 4 to show the difference.
See attached.
yes, you need to write a calculated column or measure (depending on if the result can be influenced by user interaction) across the entire visual (ALLSELECTED) . You can use MINX for your test.
Your sample date is insufficient - it always satisfies the red color condition. I changed the first row's B value to 4 to show the difference.
See attached.
Hi @lbendlin , thanks for your explanation. I tried the attachement, but the yellow line I marked should be black colour, rather than red according to the rules, isn't it? Thanks!
Not according to the rules you stated.
The table is something like below, and the condition I would like to apply is: when column B less than 4, OR column C less than 50, OR column D less than 1, the all table's font colout becomes red (except title row)
You were talking about the entire table. Looks like what you actually meant was that you want to apply the rule per row?
Hi @lbendlin yes, you are correct, I did not explain it clearly, actually it should be the entire rows becomes red, sorry about the confusion
Change the measure definition:
FontColor = SWITCH(TRUE(),MIN('Table'[B])<4,"Red",MIN('Table'[C])<50,"Red",MIN('Table'[D])<1,"Red","Black")
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
76 | |
76 | |
56 | |
38 | |
34 |
User | Count |
---|---|
99 | |
56 | |
51 | |
44 | |
40 |