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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
schans11
Frequent Visitor

calculation in matrix

Hi,

 

I am currently trying to calculated weeks of supply in a Power BI matrix. This goes well for the lowest level (green, 201/7), but not for the aggregate level (red, 35828/2461). 

 

Which function should I use to do this?

 

I am currently using the below function.

 

schans11_1-1680255407672.png

 

 

 

schans11_0-1680255137176.png

 

1 REPLY 1
FreemanZ
Super User
Super User

hi @schans11 

why not using the [weeks supply] measure in the last column of your second screeshot ?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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