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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
skean21
Regular Visitor

Problem with conditional formatting in column chart

Dear community, 

 

I have the following problem creating a conditional formatting in a column chart:

 

In the visual there is no graduation shown, all columns have the same color.

 

I created this matrix visual, where data is shown like this:

NameDifferenceMargin Index
Product A3105584,22179718
Product B18916110,8132923
Product C-1722479,34762554
Product D-23317

9,246055122

 

Then I created a column chart shows the value "Difference" for each product.
I have set a conditional formatting for the chart based on the field "Margin Index" with min-max option selected.

All the columns have the same color, there is no graduation. Also, when I drag the field "Margin Index" into "QuickInfo", every column shows the same value (440.000).

 

"Name" and "Difference" come from table A, "Margin Index" is a calculation in table B.

The tables are joined based on "Name" from table B to table A.

 

In the table structure of table A, each product has several entries. In table B, there is only 1 entry for each product (sample below)

 

table A:

NameDifference
Product A10
Product A15
Product A100
 
  
table B: 
NameMargin Index
Product A84,22179718
Product B110,8132923
Product C79,34762554
Product D9,246055122

 

Any idea?

1 ACCEPTED SOLUTION
v-lili6-msft
Community Support
Community Support

hi @skean21 

You just need to adjust it by these two ways:

"Name" and "Difference" come from table A, "Margin Index" is a calculation in table B.

1.  Please use "Name" from table B.

2. Set cross filter direction is "Both" instead of "Single"

Then it should work.

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-lili6-msft
Community Support
Community Support

hi @skean21 

You just need to adjust it by these two ways:

"Name" and "Difference" come from table A, "Margin Index" is a calculation in table B.

1.  Please use "Name" from table B.

2. Set cross filter direction is "Both" instead of "Single"

Then it should work.

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Kudoed Authors