Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Change date format on cards

Hi,

 

Im currently working on a report where i would like to show the Earliest Refresh Date. I've used a custom query to get there:

#"Added Refresh Date" = Table.AddColumn(#"03fe857e-f8df-4d61-800f-fa039735deda_Table", "Refresh Date", 
        each DateTimeZone.FixedLocalNow(), type datetimezone)

This works, and it creates a new column with the date formatted and I later removed the timezone by changing the data type to Date/Time. The column looks like this:

 

Unfortuniatly in the Card it shows it like:

Besides that i also tried to set the locale to the Netherlands, since thats where im from, this didnt work.

Also i tried changing the format in the Model designer to the format i would like to see in the card, also did not work.

 

The best format would be;

20-05-2019  10:33
And then a 24h notation like:

20-05-2019  14:25

 

If anybody could help me with this problem that would be awesome!
Thanks in advance.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

In the model creater i used the date format (G). When i switched it to (DD-MM-YYYY HH:mm:ss) it worked. 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

In the model creater i used the date format (G). When i switched it to (DD-MM-YYYY HH:mm:ss) it worked. 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.