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
Jacklyn
Frequent Visitor

How do I SUM total production by month when i have hundreds of rows of production by daily date?

I have monthly budget production data, actual daily production data, prod category and prod location. I'm trying to compare budget vs actual production. The budget prod figure is in months whereas Actual production data is daily. 1) How do I sum up actual production by month so I can compare to budget prod figure?  2) Also I need to compare monthly budget to monthly actual by product category and also product factory (multiple locations). I'm 1 month-old new to Power Bi, and i'm struggling to produce a report for work. All help is appreciated!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Jacklyn ,

 

I have built a data sample:

Eyelyn9_0-1654656073000.png

1. Production by each month:

Monthly Production = CALCULATE(SUM('Table'[Actual production]),ALLEXCEPT('Table','Table'[Date].[Year],'Table'[Date].[Month]))

2. Production by each month , each category and each factory:

Monthly Production by category & factory = CALCULATE(SUM('Table'[Actual production]),ALLEXCEPT('Table','Table'[Date].[Year],'Table'[Date].[Month],'Table'[Product Category],'Table'[Product Factory]))

Eyelyn9_1-1654656119360.png

 

Best Regards,
Eyelyn Qin
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

4 REPLIES 4
Anonymous
Not applicable

Hi @Jacklyn ,

 

I have built a data sample:

Eyelyn9_0-1654656073000.png

1. Production by each month:

Monthly Production = CALCULATE(SUM('Table'[Actual production]),ALLEXCEPT('Table','Table'[Date].[Year],'Table'[Date].[Month]))

2. Production by each month , each category and each factory:

Monthly Production by category & factory = CALCULATE(SUM('Table'[Actual production]),ALLEXCEPT('Table','Table'[Date].[Year],'Table'[Date].[Month],'Table'[Product Category],'Table'[Product Factory]))

Eyelyn9_1-1654656119360.png

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you heaps Eyelyn!

ronrsnfld
Super User
Super User

In Power Query (Home=>Transform),

  • Add a column that returns the first day of each month from your date column
    • eg "=Date.StartOfMonth([Date])"
  • Group By that custom column and use the aggregations to return what you need.

Thank you too for this solution 😃

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.