Forum Discussion
How to convert SQL syntax to Dax
- 8 years ago
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.
This help me get the desired results.
Hi shakirkhanani,
As I know, currently we are using Georgian date format in Power BI Desktop no matter which region you are in. And it is unable to convert Georgian date into Hijri date within DAX. For the Hijri date format in Power BI, I would suggest you to submit an Idea here for a feature request.
Then in your scenario, if you still want to convert the date I would suggest you to do the work at SQL Server side and import the data into Power BI. But please be noticed that after converting, it is a text type value and is no longer a date type value.
Thanks,
Xi Jin.
- shakirkhanani8 years agoHelper I
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.
This help me get the desired results.- v-xjiin-msft8 years agoSolution Sage
Hi shakirkhanani,
Thanks for shareing us your solution. Please kindly mark it as answer. It will benefit others with the relevant issue. :smileyhappy:
Thanks,
Xi Jin.