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
shoeb1359
Helper II
Helper II

Required Visual Suggestion

Hello Experts,

To create a Clustered Bar Chart in Power BI where:

  1. Each User has two bars:
    • One bar for "Total Capacity" (aggregated across projects).
    • One bar for "Completed Work", broken down by project.
  2. The "Completed Work" bar should be split by individual projects (not stacked).
  3. The visualization should allow easy comparison between Total Capacity vs. Project-wise Completed Work for each user.


UserProjectsCapacityCompleted workStart Date End Date
AHCL242224-Jan-2526-Jan-25
AHHO6427-Jan-2528-Jan-25
AHPA8629-Jan-2531-Jan-25
GCL201824-Jan-2526-Jan-25
GHO121027-Jan-2528-Jan-25
GPA8629-Jan-2531-Jan-25


Data:

shoeb1359_0-1738684261808.png


Output: 

shoeb1359_1-1738684297051.png

 

Thanks!

5 REPLIES 5
speedramps
Super User
Super User

Please check your question.

It does not make sense.

You say 

  1. A Clustered BAR representing the total capacity of the User across all projects.
  2. A Stacked BAR representing the sum of completed work, segmented by individual Projects.

but them provide a output example by  Project and User.

 

Try provide consistent input data, desired output and step by step description.

You will get a quick response if you put time, care and effort into writing clear problem descriptions.

Thanks

 

 

 

I have already mention the Input and desired output result

shoeb1359_0-1738686106604.png

 

Hi @shoeb1359 ,

Power BI does not have and cannot implement visual objects that look like this:

vjunyantmsft_0-1738720388362.png

You can use the following workaround:

1. Use two visual objects to display:
Use this DAX to create a measure and create a clustered bar chart:

total capacity = 
CALCULATE(
    SUM('Table'[Capacity]),
    ALL('Table'),
    'Table'[User] = MAX('Table'[User])
)

vjunyantmsft_1-1738720912730.png

Then use this DAX to create another measure and create a stacked bar chart:

sum of completed work = SUM('Table'[Completed work])

vjunyantmsft_2-1738721202357.png

 

2. Use only one clustered bar chart but display it in three quadrants

vjunyantmsft_3-1738721328659.png


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

Thanks for Answering but End user wants see the data in 2 bars.
One with total capacity and 2nd bar will have project wise breakdown for completed work.

Is there any custom visual you are aware of by which we can acheive this.

Hi @shoeb1359 ,

Oh, you reminded me. In fact, I actually remember there is a custom visual that may meet your needs. Please try this custom visual:

vjunyantmsft_0-1738736975234.png

It's just a little bit troublesome, you need to add three additional measures:

sum of CL = 
CALCULATE(
    SUM('Table'[Completed work]),
    'Table'[Projects] = "CL"
)
sum of HO = 
CALCULATE(
    SUM('Table'[Completed work]),
    'Table'[Projects] = "HO"
)
sum of PA = 
CALCULATE(
    SUM('Table'[Completed work]),
    'Table'[Projects] = "PA"
)

Then create the custom visual:

vjunyantmsft_1-1738737100758.png

There is a limitation. This visual must have a bar chart, a stacked bar chart, and a line chart to display data. If there is no line chart, it cannot display any data. And it can only be vertical bars, not horizontal bars. I don't know if this will affect you.

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

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! Prices go up Feb. 11th.

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.