Forum Discussion
Inventory Aging - dynamicaly calculated inventory aging
Hi,
I'm trying figure out, how dynamicaly calculate inventory age to some date in the past.
I want see in my report in January 2019 was inventory age 200 days, in February 228 days atc.
I have table with all inventory transactions where is TransactionDate and DateOfReceipt so for each transaction I'm able calculate age as TransactionDate - DateOfReceipt
It's no problem calculate with weighted average inventory age to actual date, but problem (for me) is calculate it for previous periods and see inventory age trend
first I'm trying calculate Maximum date (for calculated period)
next is
and last one but with wrong results (for me) 🙂
see picture
bix file is here https://1drv.ms/u/s!AoIu5I4KBoBIyyQaE20m4Y3qJGIz?e=V3Fmwq
can someone help me please calculate it correct way?
Thanks
marek
1 Reply
- v-chuncz-msft
Community Support
You may Use performance analyzer in Power BI Desktop to check query and take a look at https://www.sqlbi.com/?s=evaluation+context.