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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
rajulshah
Resident Rockstar
Resident Rockstar

Change date format in SSAS

Hello,

 

I want my date columns in dd/MM/yyyy format in SSAS.

 

As I format the column using the following dax, it's data type is changed to "Text".

Date = FORMAT(Date[dates],"dd/MM/yyyy")

But, I am unable to filter and sort after doing the above transformation.

 

Please guide me further on how to have format as dd/MM/yyyy and also should be filtered and sort by date.

 

Thanks in advance.

2 REPLIES 2
TomMartens
Super User
Super User

Hey,

 

the DAX function FORMAT(..., "<your format>") returns a value or creates a column of the data type text:
https://dax.guide/format/

This site

https://docs.microsoft.com/en-us/power-bi/desktop-directquery-about

describes some of the limitations if you use a live connection (I deduct this from: you explicitly mention SSAS).

 

I'm think you have to change the format in your SSAS database.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany
Anonymous
Not applicable

Hi rajulshah,

 

Change the type of your date column from Text to ShortDate in Properties and then apply format in your dax expression.

 

Regards,

Pradeep

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.