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
Yazdanifard
Frequent Visitor

convert date gregorian to SOLAR hijri (Live Connection to SSAS)

HI,

I use Power BI SQL server reporting server edition, and my data source is Analysis Services.

The problem is that I have a column that is based on Gregorian (Default type of date in SQL Server) and I want to have a column that includes Hijri date. 

How can I solve this problem?

Can I build a calculated column in SSDT?

Thanks in advance

Mostafa

www,powerbi-tricks.com
8 REPLIES 8
Greg_Deckler
Super User
Super User

https://raresql.com/tag/sql-server-how-to-convert-gregorian-dates-to-hijri-date-with-formatting/


@ 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...

HI @Greg_Deckler

Thanks for your reply.

In fact, I am not allowed to edit Database.

I want to create a calculated column instead in SSAS. Do you understand what I mean?

Thanks

www,powerbi-tricks.com

So, are you using Power BI Desktop at all or is this entirely SQL Server?


@ 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...

Power bi (SQL server reporting services) connected to live connection (SSAS)
I need to build a calculated column I think. Don't I?
www,powerbi-tricks.com

Hi @Yazdanifard,

When you connect live to SSAS in Power BI SQL Server reporting server edition, it doesn’t allow you to create calculated column. You would need to convert gregorian date to hijri date firstly in  the data source(SSAS database), then connect to the SSAS database in Power BI SQL Server reporting server edition.

Thanks,
Lydia Zhang

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

Hi @v-yuezhe-msft

Thanks for your help.

I knew that and my question is that how to convert them to Solar hirji in SSAS. 

Regards

Mostafa

www,powerbi-tricks.com


@Yazdanifard wrote:

Hi @v-yuezhe-msft

Thanks for your help.

I knew that and my question is that how to convert them to Solar hirji in SSAS. 

Regards

Mostafa


Hi @Yazdanifard,


About the above issue, please post the question in SSAS forum to get dedicated support.

Regards,
Lydia Zhang

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

Thanks a Lot! @v-yuezhe-msft

 

www,powerbi-tricks.com

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.

Top Solution Authors