cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
adambal
Helper I
Helper I

Use Font colour formatting on Calculation item with %

I have 4 calculation items in my report: Theser are created by using Tabular editor. When I use conditional formatting for font colour, it neglects the YoY%. Is there a way to have the colour coding of -ve % figures with calculation groups?

 

adambal_0-1643770385234.png

 

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @adambal 

 

It is possible. You can refer to below blogs and videos. You need to create a measure for conditional formatting. When selectedvalue(CalculationGroup[Calculation Item]) is "YoY%", create different rules for it. 

Conditional Formatting In Calculation Groups - Power BI - Enterprise DNA

Conditional formatting with Calculation Groups in PowerBI Matrix visual - Exceed

Conditional formatting in Power BI with calculation groups - YouTube

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

View solution in original post

2 REPLIES 2
v-jingzhang
Community Support
Community Support

Hi @adambal 

 

It is possible. You can refer to below blogs and videos. You need to create a measure for conditional formatting. When selectedvalue(CalculationGroup[Calculation Item]) is "YoY%", create different rules for it. 

Conditional Formatting In Calculation Groups - Power BI - Enterprise DNA

Conditional formatting with Calculation Groups in PowerBI Matrix visual - Exceed

Conditional formatting in Power BI with calculation groups - YouTube

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

TheoC
Super User
Super User

Hi @adambal 

 

If you go to https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-conditional-table-formatting#color-...  you should get the answer that you're after.

 

Importantly, you may need to create specific rules for % given that 1 is 100% and -1 is -100%, hence why it's being missed in your table at the moment.

 

Hope this helps. Reach out if not and will try assist more.


Theo 🙂

If I have posted a response that resolves your question, please accept it as a solution to formally close the post.

Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!

Want to connect?www.linkedin.com/in/theoconias

Helpful resources

Announcements
June 2022 update 768X460.jpg

Check it out!

Click here to read more about the June 2022 updates!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power BI Dev Camp Session 23 768x460.jpg

Check it Out!

Mark your calendars and join us on Thursday, June 30 at 11a PDT for a great session with Ted Pattison!

June 20 episode 7 with aka link 768x460.jpg

The Power BI Community Show

Join us on June 20 at 11 am PDT when Kim Manis shares the latest on Azure Synapse analytics, the Microsoft Intelligent Data Platform, and notable Power BI Updates from Microsoft Build 2022.

Top Solution Authors
Top Kudoed Authors