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
shakirkhanani
Helper I
Helper I

How to convert SQL syntax to Dax

Is it possible to convert following command into Dax, in order to convert Georgian date into Hijri:

With respect to SQL Server 2012:

SQL Serverer 2012 introduces a new Format function that used to achieve the same result.

SELECT FORMAT ( GETDATE(), 'dd/MM/yyyy', 'ar-SA' )

Output

16/08/1435

 

Ref: https://blog.devoworx.net/2014/06/14/how-to-convert-gregorian-dates-to-hijri-date-in-sql-server-2008...

 

Thanks in advance.

 

Regards,

M Shakir

1 ACCEPTED SOLUTION

HI @v-xjiin-msft,

 

Thank you for taking part in my small request.  

 

I will definitely share under IDEA.

 

My work around was simillar as suggested by yourself and other participant.  Under excel, in one column I entered dates, convered them in Hijri and format them as Text, and connected this table to my Power BI Desktop, and relate them with the Date table. 

Capture.PNG

Capture.PNG
This help me get the desired results.

View solution in original post

11 REPLIES 11

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.