Forum Discussion
ashleylarsen
7 years agoFrequent Visitor
Use the most recent available value in forecasting formula with future dates
Hello, I am trying to use the most recent value (date is 2017) in a formula to obtain a forecast for 2018, 2019 and 2020. Right now, the only way I am able to get the forecast to work is to cr...
- 7 years ago
You may try using TOPN.
https://community.powerbi.com/t5/Desktop/Dax-Measure-Fill-Down-Value/m-p/594415#M282232
v-chuncz-msft
Community Support
7 years ago
You may try using TOPN.
https://community.powerbi.com/t5/Desktop/Dax-Measure-Fill-Down-Value/m-p/594415#M282232
ashleylarsen
7 years agoFrequent Visitor
Thanks v-chuncz-msft ,
This worked well with my measures. It took me a while to understand what's being done. It's that first line,
VAR y = SelectedValue(DATE) combined into the Filter, FILTER(ALLSELECTED(DATES), DATES <= y), which means that the date changes dynamically.
Great help!