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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. 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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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