Forum Discussion

mike_asplin's avatar
mike_asplin
Helper V
5 months ago
Solved

MAX datetime truncates to date???

Wasnt expecting this. I have single cell table for the refesh time which is dd/mm/yyyy 00:00:00 format     to use it on a card I converted it to a measure but it comes out just dd/mm/yyyy???...
  • grazitti_sapna's avatar
    grazitti_sapna
    5 months ago

    Hi mike_asplin,

     

    When you use MAX('Refresh Time'[Refresh Time])

     

    Power BI returns a DateTime value internally, but:

    • The Card visual auto-formats it
    • And often defaults to showing only the date part

    To avoid this 

    Select your column 'Refresh Time'[Refresh Time], change format to dd MMM yyyy HH:mm:ss

    now you can use it in MAX and you should get the correct results.

     

    If not then Use Format

     

    If the issue is fixed, Mark it as accepted solution