Forum Discussion
Complex conditional formatting stopped working
Up until today, I've been using a field to conditionally format the callouts on card visuals. All of a sudden, although the formatting is still being applied correctly, I can't see the name of the field in the selection box. When I select the field from the dropdown, the dropdown goes blank immediately again. Even worse, I can't apply this field to conditionally format NEW visuals.
I haven't changed the definition of the field:
I've verified that the field returns a valid Hex color:
- Anonymous1 year ago
Hi Kimber
Do you mean you had Power BI Desktop first, then downloaded Power BI Desktop (Report Server), and then your PBIX opened with Power BI Desktop (Report Server) by default? If so, you can try re-downloading Power BI Desktop from the Microsoft store.
Best Regards,
Yulia XuIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
4 Replies
- KimberHelper III
I've narrowed it down. The problem is introduced when I reference 'Style Elements'[Positive Color] (or any of the other color fields). Here's the definition of [Positive Color]:
If I paste the hex value into the formatting field, it functions as expected. It's just the reference that makes it stop being able to be selected.
- AnonymousNot applicable
Hi Kimber
I need to confirm with you, is the visual you are using a card or a new card?
How was your visualization created? It looks like you are using two tables and some formulas. Are these formulas and the color definitions all measures? Or calculated columns? I cannot reproduce your scenario based on your description. Could you please share your PBIX? How to provide sample data in the Power BI Forum - Microsoft Fabric Community Please remove any sensitive data in advance.
Best Regards,
Yulia Xu
- KimberHelper III
The problem occurs with any type of visual. If I have a measure that performs a calculation on another measure, I can't use it for conditional formatting. It only works if the calculated measure doesn't refer to another measure. I think my file is corrupt. I have both Power BI Desktop and Power BI for Report Server installed on my computer. I created a file in Desktop, but must have accidentally opened and saved it in Report Server at one point. The next time I opened it in Desktop, I was warned that it was saved in an older format and some of my visualizations might not work, and that turned out to be true. Now I have this problem, even though I've saved it in Desktop, rebooted my machine, and reopened it in desktop. Is there any way to uncorrupt a file? Maybe some editing I could do in the xml? I'm also going to post this question separately, since it's technically a different topic.
- AnonymousNot applicable
Hi Kimber
Do you mean you had Power BI Desktop first, then downloaded Power BI Desktop (Report Server), and then your PBIX opened with Power BI Desktop (Report Server) by default? If so, you can try re-downloading Power BI Desktop from the Microsoft store.
Best Regards,
Yulia XuIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.