Forum Discussion

askspepsi's avatar
askspepsi
Helper II
6 years ago
Solved

Extract AM / PM from Datetime format in direct query

hi all,   Greetings,   Is the way to Extract AM or PM from Datetime format in direct query without changing to Import storage. Or is there any another way to create another table or colume to ex...
  • dax's avatar
    dax
    6 years ago

    Hi askspepsi , 

    You could try to refer to Greg_Deckler 's measure, and change it  and apply this in table visual like below

    Measure = IF(RIGHT(MAX('Table1'[date]) & "",2)=SELECTEDVALUE('Table'[time]), 1,0)

    Best Regards,
    Zoe Zhi

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.