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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
HopeThomas456
Frequent Visitor

Summing Area and creating a stacked bar chart based on category during a data range.

Hi! I have been working on creating a deterministic forecast for a case study and running into some issues. I have data with each item having area, program, shop, Category, start and end date. I want to create a stacked bar chart in Power BI that sums that area that is present during that month and has a legend of category. Is there a way to do this in power query or power BI. Below is the data I am trying to represent. The program and shop would be filters I can select that will change the graph output 

HopeThomas456_0-1698696993601.png

 

2 REPLIES 2
HopeThomas456
Frequent Visitor

Thank you @amitchandak for the advice! I have watch the content and a bit confused on how I would get the categories in a stacked bar chart. Do you have a demonstration with data similiar to mine above? I would also need a slicer for the program and shop. Thanks! 

amitchandak
Super User
Super User

@HopeThomas456 , Refer

Between Dates - Dates between
Measure way
Power BI Dax Measure- Allocate data between Range: https://youtu.be/O653vwLTUzM


Tables way
https://amitchandak.mediumcom/dax-get-all-dates-between-the-start-and-end-date-8f3dac4ff90b
https://amitchandak.medium.com/power-query-get-all-dates-between-the-start-and-end-date-9ad6a84cf5f2

 

 

Measure way

Power BI: HR Analytics - Employees as on Date : https://youtu.be/e6Y-l_JtCq4
https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...
Power BI HR Active Employee Tenure Bucketing, and Hired, Terminated, and Active employees: https://youtu.be/fvgcx8QLqZU

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

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.

Top Solution Authors