Forum Discussion
Conditional Formatting using Calculation Groups not working
Hi fantastic commuinity,
Through this link, I was able to create a calculation group to show or hide columns in a visual matrix
Then I wanted to apply Conditional Formating only to the "Fuel" column, so I created this measure:
Seta Contional Formatting =
IF(
SELECTEDVALUE('Hide Columns'[Name]) = "Fuel", //Hide Columns is the Calculation Group
[Sel_Clientes_Contratos],
BLANK()
)
Then I applied conditional formatting from the formatting panel, but it applied to all columns:
Any thoughts on this problem?
Thank you very much,
Simão
Anonymous you need to change each Calculation Item in the Calculation Group except for Fuel.
IF ( ISSELECTEDMEASURE ( [Seta Contional Formatting] ), BLANK(), <<your exisitng measure for calculation item >> )✨ Follow us on LinkedIn
Check my latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡
8 Replies
- v-kkf-msftCommunity Support
Hi Anonymous ,
I can apply Conditional Formating only to a column in calculation group. This is my PBIX file. Could you please share your PBIX file without sensitive data?
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
WinnizIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- GoresiDevBIRegular Visitor
I have a question: If you had a Calculation Group to manipulate the matrix measure so that it's dynamic rather than using a static measure, how could you apply conditional formatting to a single column (or an element of the time intelligence calculation group)?
- parry2kSuper User
Anonymous you need to change each Calculation Item in the Calculation Group except for Fuel.
IF ( ISSELECTEDMEASURE ( [Seta Contional Formatting] ), BLANK(), <<your exisitng measure for calculation item >> )✨ Follow us on LinkedIn
Check my latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡
- AnonymousNot applicable
Thank you very much.
Sorry for the late response - AnonymousNot applicable
I'm trying to implement this, but I'm unsure what to insert for '<<your exisitng measure for calculation item >>'
- lbendlinSuper User
Anonymous
Did you mean to use SELECTEDMEASURE() rather than SELECTEDVALUE()?
- v-kkf-msftCommunity Support
Hi Anonymous ,
Has your problem been solved? If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz - parry2kSuper User
Anonymous check this video Why simple conditional formatting is not simple anymore with Calculation Groups - Power BI - YouTube on my YT channel and you will get the answer.
✨ Follow us on LinkedIn and to our YouTube channel
Learn about conditional formatting at Microsoft Reactor
My latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.