Forum Discussion

wireaim's avatar
wireaim
New Member
2 years ago
Solved

Bar chart with multiple x-axes OR table with bars colored using legend

Hello, I am trying to create a visual that represents the count of TRUE or FALSE (just as an example) for a particular measure, where the bars are colored based on the county. 

This is what I want my final visual to look like: 

NOTE: I would like up to 3 x-axes/ columns. 

 

I have tried creating a table, where the columns are represented by bars, but I cannot figure out how to color the bars by county. 

Example: 

 


Ive also tried a stacked bar chart, but I cannot get the multiple x-axis functionality that I want (having both "Count of TRUE" and "Count of False" using the same y-axis on the bar chart). 

Example: 

 

If anyone has suggestions on how to achieve the visual, I'd be very greatful. 

Thank you! 

 

 

Sample table: 

Measure IDT/FCounty
Measure1TRUELos Angeles
Measure2TRUEOrange
Measure3TRUELos Angeles
Measure4TRUEOrange
Measure5FALSELos Angeles
Measure1TRUEOrange
Measure2TRUEOrange
Measure3FALSEOrange
Measure4TRUEOrange
Measure5TRUELos Angeles
Measure1FALSELos Angeles
Measure2TRUELos Angeles
Measure3TRUELos Angeles
Measure4TRUELos Angeles
Measure5TRUEOrange

 

6 Replies

  • Hi wireaim 

    ower BI doesn't have an option for stacked micro charts. This feature is available in the paid visualizations from Inforiver:

    https://www.youtube.com/watch?v=r7zQV0Oq2ag

     

    or you can generate it using SVG, but that requires some coding knowledge.

    https://adamcampbell.tech/project1.html

     

    Moreover, it's important to note that for the purpose of comparing two values, a stacked chart is not suitable from a visual perception standpoint. When we see stacked charts, our perception is that it’s comparing parts of a whole (like a pie chart, but instead of a circular shape, we have something resembling an English cake).

    Therefore, if you want to do this correctly without confusing the graph's reader, the right approach would be to separate the two values into different columns when comparing sizes. 

    Or To show only the part of True (percent from total )

    The pbix with the example is attached

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