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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
noob8
Frequent Visitor

Adding Totals to Stacked Bar Chart or Workaround

I currently have a Stacked Bar Chart that I was trying to show total values on the right side of the bars. However, after searching through this forum, its my understanding that there is no way to show the totals in such a chart. As a workaround people have suggested using Line and Stacked Column Chart. 

 

My sample data looks like:

 

Sample DataSample Data

 

My graph is set up in the following way:

 

Example1.PNG

What I expected to see:

My expected behavior, is that I click on 1 month, and then I see a breakdown by App Suite of anything expiring within 1 month. Then if I click on a specific App Suite, I would expect to see a breakdown based on App Comp.

 

What I Actually See:

As you can see, as is the graph is showing the totals 8, 14, 5, etc.

 

However, when I try to drill down and for example isolate anything expiring within 1 month by App Suite, I get an error. 

 

Question1: Is this behavior possible or is this a constraint of PowerBi? How would I fix the drill down?

 

Workarounds I have tried:

As a workaround, I have shifted my graph in the following form:

- I removed the Suite from the shared Axis.

- In Line Values, I added Count of Comp.

 

Example3.PNG

Actual Results:

This workaround, gives me the ability to click on  a particular month and see the breakdown based on Comp. For example, if I now click on 5 Months. I see the following:

 

Example4.PNG

Question 2: Is there any way to group the last image based on Suite? For example show all the colors in the same area or stacked?

 

I am open to suggestions and other workarounds.

 

Thanks,

2 ACCEPTED SOLUTIONS
Icey
Community Support
Community Support

Hi @noob8 ,

Sorry to reply late.

Try this:

1. Create a "Suite" table.

Suite = VALUES(TEST_MOCK_DATA[Suite])

suite.PNG

2.  Create Many-to-one relationship between "TEST_MOCK_DATA" table and "Suite" table.

suite2.PNG

3. Put "Suite" column of "Suite" table in column series.

suite3.PNG

PBIX file attached.

 

Best Regards,

Icey

 

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

View solution in original post

Icey
Community Support
Community Support

Hi @noob8 ,

 

Is this problem solved?


If it is solved, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.


If not, please let me know.


Best Regards
Icey

View solution in original post

4 REPLIES 4
Icey
Community Support
Community Support

Hi @noob8 ,

 

Is this problem solved?


If it is solved, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.


If not, please let me know.


Best Regards
Icey

Icey
Community Support
Community Support

Hi @noob8 ,

If you don't mind, please give me some data sample or PBIX file without privacy information by Dropbox, OneDrive, GoogleDrive, etc, attach the link.

 

Best Regards,

Icey

 

noob8
Frequent Visitor

Icey
Community Support
Community Support

Hi @noob8 ,

Sorry to reply late.

Try this:

1. Create a "Suite" table.

Suite = VALUES(TEST_MOCK_DATA[Suite])

suite.PNG

2.  Create Many-to-one relationship between "TEST_MOCK_DATA" table and "Suite" table.

suite2.PNG

3. Put "Suite" column of "Suite" table in column series.

suite3.PNG

PBIX file attached.

 

Best Regards,

Icey

 

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

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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