Forum Discussion

CongPham's avatar
CongPham
Icon for Helper I rankHelper I
6 years ago
Solved

Convert a text measure to a date time measure

Hi all,   I have a problem with my calendar table. I create a max_date measure, and POWER BI undrestand it is a datetime value. Same when I create a same_max_date_last_week = max_date - 7, and PO...
  • amitchandak's avatar
    amitchandak
    6 years ago
    try like
     
    CALCULATE( MAXx( ALLSELECTED( 'calendar'[Date] ), DATEADD('calendar'[Date_with_end_time_of_day],-1,MONTH) ) )