Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi,
I have a table which has 4 columns
Title | Potential | Frequency | Nearly |
Example 1 | 4 | 1 | 0 |
Example 2 | 2 | 0 | 0 |
Example 3 | 4 | 1 | 1 |
Example 4 | 1 | 0 | 0 |
etc.... | etc.... | etc.... | etc.... |
I want to be able to highlight any rows that have Potential = 4 as Yellow and if Frequency or Nearly = 1 then highlight Red.
I am getting stuck in creating a measure to do this, so that I can then use this measure as the rule in conditional formatting.
Any help is much appreciated.
Solved! Go to Solution.
@leerjones85
Not sure if I I fully understand your question, try this and let me know:
CF =
VAR __Case1 = CALCULATE( SUM(Table01[Value]) , Table01[Col] = "Potential") = 4
VAR __Case2 = CALCULATE( SUM(Table01[Value]) , Table01[Col] = "Frequency" ) = 1
VAR __Case3 = CALCULATE( SUM(Table01[Value]) , Table01[Col] ="Nearly" ) = 1
VAR __Result =
SWITCH(
TRUE(),
__Case1, "yellow",
OR(__Case2, __Case3 ) , "red"
)
RETURN
__Result
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@leerjones85
Not sure if I I fully understand your question, try this and let me know:
CF =
VAR __Case1 = CALCULATE( SUM(Table01[Value]) , Table01[Col] = "Potential") = 4
VAR __Case2 = CALCULATE( SUM(Table01[Value]) , Table01[Col] = "Frequency" ) = 1
VAR __Case3 = CALCULATE( SUM(Table01[Value]) , Table01[Col] ="Nearly" ) = 1
VAR __Result =
SWITCH(
TRUE(),
__Case1, "yellow",
OR(__Case2, __Case3 ) , "red"
)
RETURN
__Result
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Thank You, this worked.
Hi @leerjones85
You can achieve this by using conditional formating in cell elements option. Just select the series name from drowdown and set rules for backgroud color. See image:
Hope this helps!!
If this solved your problem, please accept it as a solution and a kudos!!
Best Regards,
Shahariar Hafiz
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
144 | |
80 | |
65 | |
52 | |
49 |
User | Count |
---|---|
212 | |
89 | |
79 | |
68 | |
60 |