Forum Discussion
First/earliest Date
- 1 year ago
Hello maurcoll
Us this DAX to create calculated column
Ordered =
VAR EarliestDate =
CALCULATE(
MIN('customer'[Order Date]),
ALLEXCEPT('customer', 'customer'[Customer Number])
)
RETURN
IF('customer'[Order Date] = EarliestDate, "First", BLANK())
Thanks,
Pankaj Namekar | LinkedInIf this solution helps, please accept it and give a kudos (Like), it would be greatly appreciated.
Hello maurcoll
Us this DAX to create calculated column
Ordered =
VAR EarliestDate =
CALCULATE(
MIN('customer'[Order Date]),
ALLEXCEPT('customer', 'customer'[Customer Number])
)
RETURN
IF('customer'[Order Date] = EarliestDate, "First", BLANK())
Thanks,
Pankaj Namekar | LinkedIn
If this solution helps, please accept it and give a kudos (Like), it would be greatly appreciated.