Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi all,
I recently set up a calculation group using the Calculation group authoring preview feature. Unfortunately, since doing this I've not been able to set any conditional formatting based on a field value. The existing formatting persists, but I can't change that or add any new formatting.
What's more, even if I remove the calculation group, switch off the preview feature, and re-open Power BI I still can't do it.
Can anyone help? I've tested with a completely blank report and it does exactly the same thing.
I'm using the Nov '23 release.
Thanks in advance,
Chris
Solved! Go to Solution.
Hi @BiDesign ,
As far as I know, I can select it normally when the measure and calculation columns used for conditional formatting are in text format .
Measure =
IF(
MAX('Table'[Value])>=4,"red","blue")
When the measure and calculation columns used for conditional formatting are in number or date format, nothing can be selected.
Measure =
IF(
MAX('Table'[Value])>=4,1,0)
You can change the result to Text format, the Format() function does.
FORMAT function (DAX) - DAX | Microsoft Learn
Here are the restrictions associated with Conditional:
Apply conditional table formatting in Power BI - Power BI | Microsoft Learn
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @BiDesign ,
As far as I know, I can select it normally when the measure and calculation columns used for conditional formatting are in text format .
Measure =
IF(
MAX('Table'[Value])>=4,"red","blue")
When the measure and calculation columns used for conditional formatting are in number or date format, nothing can be selected.
Measure =
IF(
MAX('Table'[Value])>=4,1,0)
You can change the result to Text format, the Format() function does.
FORMAT function (DAX) - DAX | Microsoft Learn
Here are the restrictions associated with Conditional:
Apply conditional table formatting in Power BI - Power BI | Microsoft Learn
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
For anyone interested, I didn't manage to fix this with the calculation group in place but I did manage to revert the model so that I could add conditional formatting back in. I did this by removing the calculation group and then setting "Discourage Implicit Measures" to "False" in Tabular Editor as per the link below.
(I don't know why this isn't an option you can set in Power BI Desktop).
Once I'd done that I had the ability to use conditional formatting as I could prior to using the calculation group. I just created explicit measures to handle what the calculation group was doing. Not quite as nice but it doesn't have any unexpected knock-on effect.
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 |
---|---|
56 | |
55 | |
54 | |
37 | |
29 |
User | Count |
---|---|
77 | |
62 | |
45 | |
40 | |
40 |