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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Kopek
Helper IV
Helper IV

separate bars in a column chartwith measures

I am having a question on how to separate bars in a column chart when i use measures only.

Unpivotting is not an option unfrotunately.

What makes it more complicated is the fact i am not allowed to change semantic model, and i am live connected to it, so only measures can be used. so creating a dax table is also not an option in this case...

 

 

I have 10 measures, i wans meausre outcome to be my y-axis, and measure name to be my x-axis... any ideas, as i got stuck... 
Now everything is put into one category:

Kopek_0-1729073810848.jpeg

whereas i want something like this where 1,2,3,4,5 is a measuere name

Kopek_1-1729073901233.png

 



 

 

1 ACCEPTED SOLUTION
Kedar_Pande
Community Champion
Community Champion

Click on Enter Data.
Create a table called MeasureNames with a single column for the measure names:
MeasureName
Measure 1
Measure 2
Measure 3
Measure 4

.

.

.

Create a Switch Measure:

SelectedMeasureValue = 
SWITCH(
SELECTEDVALUE(MeasureNames[MeasureName]),
"Measure 1", [Measure1], // Replace with your actual measure names
"Measure 2", [Measure2],
"Measure 3", [Measure3],
"Measure 4", [Measure4],
BLANK() // Default case if none selected
)

 

Create a new Stacked Column Chart in your report.
Drag MeasureNames[MeasureName] to the Axis area.
Drag the SelectedMeasureValue measure to the Values area.

💌 If this helped, a Kudos 👍 or Solution mark would be great! 🎉
Cheers,
Kedar
Connect on LinkedIn

View solution in original post

3 REPLIES 3
Kedar_Pande
Community Champion
Community Champion

Click on Enter Data.
Create a table called MeasureNames with a single column for the measure names:
MeasureName
Measure 1
Measure 2
Measure 3
Measure 4

.

.

.

Create a Switch Measure:

SelectedMeasureValue = 
SWITCH(
SELECTEDVALUE(MeasureNames[MeasureName]),
"Measure 1", [Measure1], // Replace with your actual measure names
"Measure 2", [Measure2],
"Measure 3", [Measure3],
"Measure 4", [Measure4],
BLANK() // Default case if none selected
)

 

Create a new Stacked Column Chart in your report.
Drag MeasureNames[MeasureName] to the Axis area.
Drag the SelectedMeasureValue measure to the Values area.

💌 If this helped, a Kudos 👍 or Solution mark would be great! 🎉
Cheers,
Kedar
Connect on LinkedIn

@Kedar_Pande simple as that 🙈 thanks so much!

Uzi2019
Super User
Super User

Hi @Kopek 

 

Can you share your sample data with expected output???

 

without having knowledge on you data wont be possible to provide exact solution.

 

 

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.