Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Anonymous
Not applicable

Conditional formatting is not reflecting on the chart

Nagarajan_0-1633347166539.png

The formatting that i put in is not reflecting.

Nagarajan_1-1633347197997.png

Nagarajan_3-1633347232793.png

 

2 ACCEPTED SOLUTIONS
v-jingzhang
Community Support
Community Support

Hi @Anonymous 

 

It is because you are using Average in Summarization. I see the axis field in chart is Month. If a month has multiple rows data in the table and has both 0 and 1 in Colour column, the average of color for this month will be a value between 0 and 1, which doesn't meet either rule. Only when its color values are all 1, its average will be 1. The same for 0. 

 

Nagarajan_0-1633347166539.png

 

I guess you drag [Monthly RF IQP Target%] and [Actual IQP%] columns into the chart as values, right? What are their aggregation type in the chart? If they are using Sum, you can create a measure like below. In conditional formatting setting, select Format by Field value and Based on this measure. 

color measure =
IF (
    SUM ( 'table'[Monthly RF IQP Target%] ) >= SUM ( 'table'[Actual IQP%] ),
    "Green",
    "Red"
)

 

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

Anonymous
Not applicable

Excellent.. working now..

View solution in original post

5 REPLIES 5
v-jingzhang
Community Support
Community Support

Hi @Anonymous 

 

It is because you are using Average in Summarization. I see the axis field in chart is Month. If a month has multiple rows data in the table and has both 0 and 1 in Colour column, the average of color for this month will be a value between 0 and 1, which doesn't meet either rule. Only when its color values are all 1, its average will be 1. The same for 0. 

 

Nagarajan_0-1633347166539.png

 

I guess you drag [Monthly RF IQP Target%] and [Actual IQP%] columns into the chart as values, right? What are their aggregation type in the chart? If they are using Sum, you can create a measure like below. In conditional formatting setting, select Format by Field value and Based on this measure. 

color measure =
IF (
    SUM ( 'table'[Monthly RF IQP Target%] ) >= SUM ( 'table'[Actual IQP%] ),
    "Green",
    "Red"
)

 

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

Anonymous
Not applicable

Excellent.. working now..

Anonymous
Not applicable

@amitchandak ..Need support .

mahoneypat
Employee
Employee

It looks like your rules are set to values of exactly 1 or 0, and none of your bars are exactly that value.  Change to <= or >=.

 

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Anonymous
Not applicable

Hi Thanks for your response.

 

I have tried conditional formatting as below. Kindly go through and support please.

Nagarajan_0-1633412135871.png

 

Helpful resources

Announcements
Fabcon_Europe_Social_Bogo

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.