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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Bahalzamon
Helper I
Helper I

Multiple Columns Bar Chart

I have 9 columns I am attempting to put in one stacked/line chart. Essencially I have some scoring values for the 9 columns and want the line to compare it to all the other data not included in the slicers which I have through measures.

 

Columns: Inventory, Account, Data, Config, Malware, Recovery, Awareness, Provider, Response.

 

Currently I dropped them all into the "Column y-axis" which looks horible. The 2 green dots are measures grabbing the first and second columns (Inventory & Account) but as you can see they are just centered.

Bahalzamon_0-1710208317729.png

 

I am wondering how I go about making it look something more along these lines? The data below was all pulled from one column using calculations and works great.

Bahalzamon_1-1710208423179.png

 

I am unsure how to break each column into its own "Category" and then associate the calculated values to them.

 

Heres a quick look of the overall visual, there will be another 7 of the _# Average added for a complete picture.

Bahalzamon_2-1710208634618.png

 

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @Bahalzamon 
It happens because the graph is without x axes.

The columns are just a set of measures that you put there.

To make it in the desired form you can create a table for all the measures and use a selectedvalue Dax formula.

Please refer to my solution in the linked post, it includes pbix with example (you can ignore the question because the problem is not like yours, but the solution is the same )

https://community.fabric.microsoft.com/t5/Desktop/Spacing-between-bars-for-clustered-column-chart-th...

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

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

3 REPLIES 3
Ritaf1983
Super User
Super User

Hi @Bahalzamon 
It happens because the graph is without x axes.

The columns are just a set of measures that you put there.

To make it in the desired form you can create a table for all the measures and use a selectedvalue Dax formula.

Please refer to my solution in the linked post, it includes pbix with example (you can ignore the question because the problem is not like yours, but the solution is the same )

https://community.fabric.microsoft.com/t5/Desktop/Spacing-between-bars-for-clustered-column-chart-th...

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

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Worked perfectly, thank you, below is what mine ended up being. Only down side was that it could only pull in measures into this measure so I had to make measures for all the columns ([_1 Average], [_2 Average, ...]) but that was easy enough.

 

The Visual.

Bahalzamon_0-1710298672549.png

Code for Measure

_RA Category Avg = 
SWITCH(
    SELECTEDVALUE('_RA Category Table'[Category Short]),
    "Inventory",[_1 Average],
    "Account",[_2 Average],
    "Protection",[_3 Average],
    "Configuration",[_4 Average],
    "Malware",[_5 Average],
    "Recovery",[_6 Average],
    "Awareness",[_7 Average],
    "Provider",[_8 Average],
    "Response",[_9 Average],
    BLANK()
)

 

Manual Table

Bahalzamon_1-1710298755685.png

 

Happy to help 🙂

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.