Forum Discussion
M_SBS_6
2 years agoHelper V
Column not recognised as a date
Hi,
I have created a new column using the dax below, however, whilst this outputs the correct date, it's not recognised as a date so I can use this when trying to create other columns like between dates.
The data type is a Date and formatted short hand but that doesn't change anything.
Is there anything I can do to change this please?
test[earliestdate] is a Column that has min(test[date]
Test =
Minx(
Index ( 1,
Apps,
Orderby (apps[earliestdate], asc),
,
Partitionby (test[id]),
Matchby (test[id], test[cat], test[earliestdate])),
Test[earliestdate])
enclose the result in DATEVALUE()
2 Replies
- lbendlinSuper User
enclose the result in DATEVALUE()
- Sahir_MaharajSuper User
Hello M_SBS_6,
A simplified version for each test[id], might look more like this:
Earliest Date = CALCULATE( MIN(test[date]), ALLEXCEPT(test, test[id]) )Hope this helps.