Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

Combine Table & Stacked Bar Chart

All,

 

I have a requirement to develop a report like below. Just removed the approver name due to security reason, think of some names under Approver.

 

This is not a single chart, i just added 2 charts table & stacked bar chart and applied 'sent back' for stacked bar chart. I have 3 slicers.

 

If i select only one or two names then the report looks like this.

 

 

But i am looking to align this bar straight to the name instead of shrinking to its entire size. is it possible?

26 Replies

  • Greg_Deckler's avatar
    Greg_Deckler
    Community Champion

    There is a 'data bars' option for matrix visualizations that people have used to create condensed bar charts like what you show. However, I do not believe that solution works for stacked bar charts. You could possibly do it with an SVG graphic. Like this for example: https://community.powerbi.com/t5/Quick-Measures-Gallery/SVG-Microchart-Harveyball-and-Harveybox/td-p/489599

     

    If you provide sample data I could give this a whirl, it has been awhile since I created an SVG graphic so could be fun. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

    The most important parts are:
    1. Sample data as text, use the table tool in the editing bar
    2. Expected output from sample data
    3. Explanation in words of how to get from 1. to 2.

    • Anonymous's avatar
      Anonymous
      Not applicable

      I didnt see 'Data bar' option in the Matrix visual. is this introduced in the latest version? I'm using quite old version for now.

       

      2.71 (July 2019 Version) - Have to upgrade

       

      Please find below the sample data. There is a custom column created for Age Group.

       

      Age Group = IF(my[Duration] <= 3, "<=3 Days",IF (my[Duration] >3 && my[Duration] < 6,"> 3 and < 6 Days",">=6 Days"))
       
      I used Approver, Count of ProjectID & Age Group for the "100% Stacked Bar Chart".

       

      Approvercount of projectsAverage of Duration%3 Days Outstanding
      a12323100%
      a21102100%
      a3210%
      a4468100%
      a518100%
      a6123100%
      a7118100%
      a82210100%
      a9410%
      a10719100%
      a111376100%
      a121102100%
      a13194695%
      a141413975%
      a1523750%
      a16969100%
      a1762333%
      a18181100%
      a19130%

       

       

      • Greg_Deckler's avatar
        Greg_Deckler
        Community Champion

        Anonymous  - It is under Conditional Formatting oddly enough.