Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello
Does anyone know how to perform conditional formatting with calculation items? I have seen there have been some previous posts about this but for some reason the solutions don't for me, perhaps this is because of updates?
Any help would be v gratefully received!
Solved! Go to Solution.
Hi @tloup ,
Based on my testing, please try the following methods:
1.Create the sample table.
2.Create the measure to calculate the sum.
Measure = CALCULATE(SUM('Table'[Total Sold]), ALLEXCEPT('Table','Table'[day]))
3.Create the measure for conditional formatting.
conditional format =
var _sel = SELECTEDVALUE('Table'[day])
return
IF(_sel = DATE(2024,3,23),"Yellow")
4.Drag the date into table visual. Right click on the measure and select conditional formatting.
5.Select Field value and select the conditional format measure.
6.The result is shown below.
You can also view the following documents to learn about conditional formatting.
Apply conditional table formatting in Power BI - Power BI | Microsoft Learn
Solved: Use Font colour formatting on Calculation item wit... - Microsoft Fabric Community
Best Regards,
Wisdom Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @tloup ,
Based on my testing, please try the following methods:
1.Create the sample table.
2.Create the measure to calculate the sum.
Measure = CALCULATE(SUM('Table'[Total Sold]), ALLEXCEPT('Table','Table'[day]))
3.Create the measure for conditional formatting.
conditional format =
var _sel = SELECTEDVALUE('Table'[day])
return
IF(_sel = DATE(2024,3,23),"Yellow")
4.Drag the date into table visual. Right click on the measure and select conditional formatting.
5.Select Field value and select the conditional format measure.
6.The result is shown below.
You can also view the following documents to learn about conditional formatting.
Apply conditional table formatting in Power BI - Power BI | Microsoft Learn
Solved: Use Font colour formatting on Calculation item wit... - Microsoft Fabric Community
Best Regards,
Wisdom Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
22 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
13 | |
11 | |
9 | |
6 |