Forum Discussion
MAX datetime truncates to date???
- 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
well that was dumb of me!!!
I only added the format because when I did MAX('Refresh Time'[Refresh Time]) I just got the date. Is that expected and you have to add the FORMAT bit?
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
- mike_asplin5 months ago
Helper V
Ok that odd as did have it formated as a datetime column, but seems ok now without the FORMAT added to the measure.
Thanks for your help