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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
FrankWeng
Frequent Visitor

How to count daily usage

Hi:

Please if someone can help, as below table I have to count materials daily stock Qty.

How to write a formula in BI to get each material daily usage?

Ex, Item A usage on 3/18 = 3000-2500=500

Capture.JPG

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Find the solution here:

https://1drv.ms/u/s!ApyQEauTSLtOgYM7dKfyqO1PXHHdew?e=aVPNdv

Inspect the data and the model thoroughly.

Best
D

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

Find the solution here:

https://1drv.ms/u/s!ApyQEauTSLtOgYM7dKfyqO1PXHHdew?e=aVPNdv

Inspect the data and the model thoroughly.

Best
D
az38
Community Champion
Community Champion

Hi @FrankWeng 

try a measure

Measure = 
calculate(MAX('Table'[daily stock Qty]),ALLEXCEPT('Table','Table'[Item],'Table'[Date])) 
- 
calculate(MIN('Table'[daily stock Qty]),ALLEXCEPT('Table','Table'[Item],'Table'[Date]))

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

@az38 

Thanks for help, but it's still not working.

Do you find any mistake from me?

Capture.JPG

az38
Community Champion
Community Champion

@FrankWeng 

in your screnshots I see the only row per day for each Item

Date field is the Date or Datetime?


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

@az38 

Hi, the date field is pure Date type. Would be possible I send you the .pbix file?

Capture.JPG

az38
Community Champion
Community Champion

@FrankWeng 

share pbix-file to cloud is always the best idea


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.