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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 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.