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
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
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.