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

Get Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.

Reply
csummers
Regular Visitor

Recreate Stacked Chart from Excel

I have an Excel file that I have been working to recreate in PowerBI. One chart in particular is a stacked chart that was very simple to recreate but I have tried multiple things in PowerBI but keep ending up with a normal bar chart instead of a stacked chart. As you can see I just want to stack Employee and Contingent Headcount values, show a total, and a trendline on a monthly basis.

I suspect I am missing a measure or something but it is driving me crazy.... 😁 .

Thanks in advance for the help.

Excel VersionExcel Version

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@csummers , In power bi you need have data like

 

Date, user Type, Head count

 

 

a Measure = Sum(Table[Headcount])

 

You have used stacked visuals with the same measure for values and lines.

Axis as date. user type as legend - user Type

 

Unpivot the data, if needed, If the total is part of user type, create two-measure one only for total and one without total

 

https://radacad.com/pivot-and-unpivot-with-power-bi

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

3 REPLIES 3
csummers
Regular Visitor

Thank you for the quick reply. I will try this out over the weekend and advise if it worked or not.

amitchandak
Super User
Super User

@csummers , In power bi you need have data like

 

Date, user Type, Head count

 

 

a Measure = Sum(Table[Headcount])

 

You have used stacked visuals with the same measure for values and lines.

Axis as date. user type as legend - user Type

 

Unpivot the data, if needed, If the total is part of user type, create two-measure one only for total and one without total

 

https://radacad.com/pivot-and-unpivot-with-power-bi

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thank you for the help; i restructured the data in my source Excel file and that sorted it out!

2022-02-19 01_30_53-Headcount Tracker - Power BI Desktop.png

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.