Forum Discussion
Filtering data based on last 7 days aggregate
- 3 years ago
Hi mlmchilli ,
Is this the result you want?
Best regards,
Yadong Fang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello Yadong,
We are trying to apply this to our model. Could you please explain what EARLIER does?
Thanks
- v-yadongf-msft3 years agoCommunity Support
Hi mlmchilli ,
EARLIER returns the current value of the specified column in an outer evaluation pass of the mentioned column.
EARLIER is useful for nested calculations where you want to use a certain value as an input and produce calculations based on that input. In Microsoft Excel, you can do such calculations only within the context of the current row; however, in DAX you can store the value of the input and then make calculation using data from the entire table.
EARLIER is mostly used in the context of calculated columns.
Please refer to:EARLIER function (DAX) - DAX | Microsoft Learn
Best regards,
Yadong Fang