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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
mshashmi
Frequent Visitor

Combine multiple rows into single one for use of clustered chart

Hi everyone

 

I have a table suppose like this

 

Table

 

Column1         Column2

11                     Closed

56                     Open

82                     Resolved

78                     Unresolved

 

 

 

Now I want to make a clustered column chart. It should have two bars, one for both open and unresolved i.e. total 134 and another for closed and resolved i.e. total 93.

How can this be done?

2 ACCEPTED SOLUTIONS
GilbertQ
Super User
Super User

Hi @mshashmi

 

I would suggest doing it with the following measure

 

Total = sum('table1'[Column1])

Open & Unresolved = CALCULATE([Total],'Table1'[Column2] = "Open" && 'Table1'[Column2] ="Unresolved")

Closed & Resolved = CALCULATE([Total],'Table1'[Column2] = "Closed" && 'Table1'[Column2] ="Resolved")

And you can then use those two measures on your clustered column chart.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

View solution in original post

@mshashmi,

 

Just to correct it. In this case, we'll use the OR operator (||), not the AND operator (&&).

Community Support Team _ Sam Zha
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

5 REPLIES 5
GilbertQ
Super User
Super User

Hi @mshashmi

 

I would suggest doing it with the following measure

 

Total = sum('table1'[Column1])

Open & Unresolved = CALCULATE([Total],'Table1'[Column2] = "Open" && 'Table1'[Column2] ="Unresolved")

Closed & Resolved = CALCULATE([Total],'Table1'[Column2] = "Closed" && 'Table1'[Column2] ="Resolved")

And you can then use those two measures on your clustered column chart.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

@GilbertQ Thanks

 

It worked perfectly

@mshashmi,

 

Just to correct it. In this case, we'll use the OR operator (||), not the AND operator (&&).

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-chuncz-msft Thanks

 

I figured it out though

Glad to help out.




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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