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

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

Reply
Anonymous
Not applicable

Monthly View from Weekly Data

Hi Everyone,

 

I've got stuck with a problem in converting from weekly data view to monthly.

 

I have a file that when on excel will work due to cell reference possibilities but not sure how to manage this on PowerBI.

 

The Formula weekly would be

([Stock for this week]/(([Sales for this week]+[Sales for Week+1])/2))*7

I created this by this measure in PowerBI

Week Calc. DOI = sum(Data[Stock])/
(sum(Data[Deliveries])+CALCULATE(sum(Data[Deliveries]),filter(all(Data[Week #]),Data[Week #]=(SELECTEDVALUE(Data[Week #])+1)))/2)*7
 
The Formula for the Monthly view is similar but would be
([Starting Stock for Month]/(([Total Sales for this Month]+[Total Sales for Month+1])/2))*30
 
The Issue I run into with this formula is that I only need the Stock from the 1st Week of the month, not the sum of all stock as its always weekly starting stock which adds onto each other. The total Sales for this Month and Month + 1 can be a sum of thie first row and the next row.
 
Can anyone help and give me advice on how to tackle this?
 
EDIT - Find the Data and PBIX file here
0 REPLIES 0

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.