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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
adeeln
Post Patron
Post Patron

How to change format(dd/mmm/yyyy) for date field with DAX expression while get data as direct query

I want change format for date with DAX expression while direct query in Power BI. I have tried with format function in DAX but getting error like "Function 'FORMAT' is not allowed as part of calculated column DAX expressions on DirectQuery models." Date format that i wants DD/MMM/YYYY.

1 ACCEPTED SOLUTION

Hi @adeeln ,

 

Isn't this format?

mm1.PNG

mm2.PNG

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

View solution in original post

5 REPLIES 5
v-lionel-msft
Community Support
Community Support

Hi @adeeln ,

 

Has your problem been solved?

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@adeeln , you see an option under format for that

Data Format New Rib.png

 @amitchandak In Power Bi Date format show (d mmmm yyyy).But I Need this Format dd-mmm-yyyy.e.g 01-Mar-2020.

Hi @adeeln ,

 

Isn't this format?

mm1.PNG

mm2.PNG

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

harshnathani
Community Champion
Community Champion

@adeeln ,

 

https://community.powerbi.com/t5/Desktop/Change-date-format-in-DIRECT-Query-Mode-not-on-list-of/td-p...

 

https://community.powerbi.com/t5/Desktop/Direct-Query-transform-Date-TIme-to-Date/td-p/614651

 

Please check if this helps.

 

Regards,

Harsh Nathani

Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!!

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.