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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
Avivek
Post Partisan
Post Partisan

The data to appear as stacked column chart

I have to create a stacked colum chart. I have a calculated colum for used/shared,

Used/Shared = IF('DO Vs Tag'[Order Owner ID]='DO Vs Tag'[Tag Owner ID],"Used", "Shared")
Now I have to create a chart as shown below
Capture.PNG
On the bar i want to see both the used and shared values. But when I try to create a chart like that it appears as below
 
 

Capture1.PNG

 I also created different measures for used and shared and still i am getting 2 different graphs. Is it possible to get it as the 1st image.

2 ACCEPTED SOLUTIONS
Pragati11
Super User
Super User

Hi @Avivek ,

 

Try using a 100% Stacked Column Chart in Power BI.

https://www.tutorialgateway.org/create-100-stacked-bar-chart-in-power-bi/

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

View solution in original post

amitchandak
Super User
Super User
5 REPLIES 5
amitchandak
Super User
Super User

@Pragati11  @amitchandak ,

I tried using the same stacked charts;

If I add the calculated column- used/shared in the legend and tag id in the values but still it appears as 2 different columns

Avivek_0-1599558660202.png

So I tried using 2 different measures-

Used = calculate(count('DO Vs Tag'[Tag ID]), 'DO Vs Tag'[Used/Shared]="Used")
Shared = calculate(count('DO Vs Tag'[Tag ID]), 'DO Vs Tag'[Used/Shared]="Shared")
But still the chart appears the same
 
 
 

Capture3.PNG

Also I tried the 100%stacked column chart but it still shows the same issue.

Is there any other way to get the result as single bar having both used and shared.

 

@Pragati11 @amitchandak ,

 

It seemed a glitch at that moment. I re did the whole chart again and its working now. Thanyou for the help.

Hi @Avivek ,

 

Can you share your .pbix file please by removing any sensitive information?

Or may share your sample data?

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Pragati11
Super User
Super User

Hi @Avivek ,

 

Try using a 100% Stacked Column Chart in Power BI.

https://www.tutorialgateway.org/create-100-stacked-bar-chart-in-power-bi/

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.