Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon'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.
Hello Experts,
To create a Clustered Bar Chart in Power BI where:
User | Projects | Capacity | Completed work | Start Date | End Date |
AH | CL | 24 | 22 | 24-Jan-25 | 26-Jan-25 |
AH | HO | 6 | 4 | 27-Jan-25 | 28-Jan-25 |
AH | PA | 8 | 6 | 29-Jan-25 | 31-Jan-25 |
G | CL | 20 | 18 | 24-Jan-25 | 26-Jan-25 |
G | HO | 12 | 10 | 27-Jan-25 | 28-Jan-25 |
G | PA | 8 | 6 | 29-Jan-25 | 31-Jan-25 |
Data:
Output:
Thanks!
Please check your question.
It does not make sense.
You say
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
Hi @shoeb1359 ,
Power BI does not have and cannot implement visual objects that look like this:
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])
)
Then use this DAX to create another measure and create a stacked bar chart:
sum of completed work = SUM('Table'[Completed work])
2. Use only one clustered bar chart but display it in three quadrants
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:
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:
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.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
146 | |
85 | |
66 | |
52 | |
48 |
User | Count |
---|---|
215 | |
90 | |
83 | |
67 | |
59 |