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
Irache
Helper II
Helper II

Invisible bar chart ?

Hello everyone,

I have a column with a lot of modality (approximatively 100) and I want to use them as a legend in my stacked chart. The result is the following  :

Irache_0-1702908767464.png

 

They don't have as much color as modality, consequently we see invisible bar chart. Only 84 modality have a color and I really need to see all of them. Can we change the color allocation limit ?

 

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

Hi @Irache ,

By default, Power BI uses a color palette with a limited number of colors, which can result in some categories not being assigned a unique color.

Please have a try.

  • Custom Color Palette:
    You can create a custom color palette by defining specific colors for each category.
  • Grouping or Aggregating Data:
    Consider grouping similar modalities together. For instance, if you have multiple subcategories within a broader category, aggregate them.This reduces the number of distinct colors needed and simplifies the visualization.
  • Alternate Visualization Types:
    If the stacked chart becomes too cluttered, explore other visualization types like a treemap, bar chart, or table.

Tips and tricks for formatting in reports - Power BI | Microsoft Learn

Define colors on a Power BI paginated report chart using a palette - Power BI | Microsoft Learn

 

Best Regards
Community Support Team _ Rongtie

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

4 REPLIES 4
v-rongtiep-msft
Community Support
Community Support

Hi @Irache ,

By default, Power BI uses a color palette with a limited number of colors, which can result in some categories not being assigned a unique color.

Please have a try.

  • Custom Color Palette:
    You can create a custom color palette by defining specific colors for each category.
  • Grouping or Aggregating Data:
    Consider grouping similar modalities together. For instance, if you have multiple subcategories within a broader category, aggregate them.This reduces the number of distinct colors needed and simplifies the visualization.
  • Alternate Visualization Types:
    If the stacked chart becomes too cluttered, explore other visualization types like a treemap, bar chart, or table.

Tips and tricks for formatting in reports - Power BI | Microsoft Learn

Define colors on a Power BI paginated report chart using a palette - Power BI | Microsoft Learn

 

Best Regards
Community Support Team _ Rongtie

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

Hello,

Thanks for your advice I have already thought about these means but this is a mandatory information that I really need to show. I have found an alternative solution for my issue. 

rubinboer
Resolver II
Resolver II

hi @Irache do you have a id on you rrecord, if such you can use that in the column conditional formatting section.

 

Consider having 100 categories, the id is from 1 - 100 thus the gradient scale will provide you what you need, e.g.:

Colour without blanks.gif

 

It will doesn't work it's a categorial column.

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.