Forum Discussion

Arjan_w's avatar
Arjan_w
Frequent Visitor
3 years ago
Solved

Getting "First" from column without sorting

I have a big dataset which contains of a couple of columns, but the interesting ones are:  - Datetime (YYYY-MM-DD HH:MM:SS) (every row is approximately 10 seconds apart)  - WeekdayName (Monday/Tues...
  • johnt75's avatar
    3 years ago

    Try

    First Weekday =
    SELECTCOLUMNS (
        INDEX ( 1, 'Table', ORDERBY ( 'Table'[Datetime], ASC ) ),
        "@value", 'Table'[Weekday Name]
    )