This is a DAX question and this is a Power Query forum. You can write a custom time intelligence function like this
Total Lifetime ToDate =
CALCULATE(sum(table[value]),FILTER(ALL(Calendar),Calendar[date] <= max(Calendar[date])))
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello,
I am looking for to use a function to aggregate a stock value but on a time period that goes on several years. To have the total value for each date I can use TOTALYTD but there is a limitation when I switch years. Is it possible to extend this type of function to evaluate the stock each day (with new entries and new outs) on several years?
For example, for the material 10396025, The stock from december is not displayed as I wish it would.
Thanks for your help
This is a DAX question and this is a Power Query forum. You can write a custom time intelligence function like this
Total Lifetime ToDate =
CALCULATE(sum(table[value]),FILTER(ALL(Calendar),Calendar[date] <= max(Calendar[date])))