Forum Discussion
Help with a Date Question
- 4 years ago
JakeJack , use this inplace of today
var _today = max(allselected(DailyProd), DailyProd[pdate])
Hi JakeJack
MAX : Returns the largest value in a column, or the larger value between two scalar expressions. Ignores logical values. Strings are compared according to alphabetical order.
MAXX : Returns the largest value that results from evaluating an expression for each row of a table. Strings are compared according to alphabetical order.
ALLSELECTED : Removes context filters from columns and rows in the current query, while retaining all other context filters or explicit filters.
You can get a detail understanding through these links below .
https://docs.microsoft.com/en-us/dax/maxx-function-dax
https://docs.microsoft.com/en-us/dax/max-function-dax
https://docs.microsoft.com/en-us/dax/allselected-function-dax
Best Regard
Community Support Team _ Ailsa Tao