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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
ncarrera
New Member

How to Create a Stacked Bar Chart for Task Progress with Multiple States?

Hi everyone,

I'm working on a project in Power BI (total newbie). I'm trying to make a bar chart to visualize the progress of tasks I'm working on.

I'll elaborate, here's how is my data structured:

 

Task           State1       State2       Staten

Task1          Done        Done     

Task2                    

Task3          Done        Done         Done   

Taskn          Done       

 

It's very simple, if the column Statex is not filled (normally is a Date format), the Task is not in Statex. 

 

This is the result I'm looking for (I was made in Excel, but I wanted to upgrade):

 

Sin título.png

I hope I explained myself sufficiently.

Thank you very much in advance!! 🙂

1 ACCEPTED SOLUTION
SamWiseOwl
Super User
Super User

Hi @ncarrera 

In the Query Editor highlight the columms you DONT want to unpivot (Task etc)

Then Right click the header and choose Unpivot OTHER columns.

This gives you a table with State in one column and Done in the other.

SamWiseOwl_0-1729688592359.png

Use this in your visuals 🙂

SamWiseOwl_1-1729688764576.png

 


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

View solution in original post

1 REPLY 1
SamWiseOwl
Super User
Super User

Hi @ncarrera 

In the Query Editor highlight the columms you DONT want to unpivot (Task etc)

Then Right click the header and choose Unpivot OTHER columns.

This gives you a table with State in one column and Done in the other.

SamWiseOwl_0-1729688592359.png

Use this in your visuals 🙂

SamWiseOwl_1-1729688764576.png

 


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.