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
craftbeer
Regular Visitor

Dynamic Shortdate based on region/language

Hi, 

 

i'm building a report for german (dd.mm.yyyy) and en/us (m/d/yyyy) users. The slicer is the only visual which will switch the syntax of the shortdate on its own. the card and table visual will not switch the syntax. if i use datetime instead of the short date it will work. 

is this a bug or how do i work around? i'm on january 2021.
attached a picture of my system with english and german settings

 

regards

 

 

language powerbi.png

2 REPLIES 2
v-yiruan-msft
Community Support
Community Support

Hi @craftbeer ,

Please change the type of the related date field Using Locale in Power Query Editor, you can refer the content in the following links to get it.

Fix errors when importing or converting date columns in Power BI

4 Ways to Fix Date Errors in Power Query + Locale & Regional Settings

In addition, there is a blog here about using a slicer to switch different date formats, you can review and check if it can also achieve your needs.

Custom Date Formats in Power BI Using a Slicer

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
craftbeer
Regular Visitor

Just found this article which describes the same problem. Due to internal IT regulations i am not allowed to use a newer version than January 2021. Can someone tell me of this was solved in a later version?

Unfortunately, this post comes with a caveat, at the time of writing it would seem there is a bug in Power BI.
Hopefully once this issue is addressed, the use of regionally dynamic date formats will be available for both long and short formats.

 

https://www.purplefrogsystems.com/blog/2021/05/dynamic-date-formats-in-power-bi/

 

 

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.