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
paris
Helper V
Helper V

Transfer Japanese date to western date

Hi All,

I want to change Japanese date to western date format.  Could you please help. (9 is 1 digit while 10 is 2 digits ... so I could not use left function) 

 

21年9月限 → 1/9/2021

21年10月限→ 1/10/2021

 

Month          Price

21年9月限     5

21年10月限   2

21年11月限   4

21年12月限   3

22年1月限     7

22年2月限     6

 

All the best,

Paris

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

@paris Was able to get day or month? with this:

MonthNum = MID([Month],4,SEARCH("限",[Month])-5)

@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

3 REPLIES 3
Greg_Deckler
Super User
Super User

@paris Was able to get day or month? with this:

MonthNum = MID([Month],4,SEARCH("限",[Month])-5)

@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Thank you very much! It really helped me to save my time. 

Greg_Deckler
Super User
Super User

@paris Have you tried using Use Locale in Power Query? Right-click column, Change Type, Use Locale. I will give this a shot in an Enter Data query and see what happens, haven't really messed with Japanese language much.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

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.