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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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)


Follow on LinkedIn
@ 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!:
Power BI Cookbook Third Edition (Color)

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)


Follow on LinkedIn
@ 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!:
Power BI Cookbook Third Edition (Color)

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.



Follow on LinkedIn
@ 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!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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