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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Charu
Post Patron
Post Patron

Custom date FORMAT measure/column in Direct query mode

Dear All,

 

is there any possibilities to write a DAX formula for Custom india date format like dd-mm-yyyy in a direct query mode?

 

1.In Calculated column FORMAT is not support in direct query mode

2.In Measure couldn't call the date column from the table.

Like Measure=FORMAT('Table1'[Created_Date],"dd-mm-yyyy")

 

Kindly please help me out on this.

 

 

Thanks in advance

 

1 ACCEPTED SOLUTION

Hi @BhaveshPatel

 

Thank you so much for your Idea.

The below calculated column worked fine.

 

Calculated Column = DAY('Table1'[Creation_Date]) & "/" & MONTH('Table1'[Creation_Date]) & "/" & YEAR('Table1'[Creation_Date])

View solution in original post

5 REPLIES 5
BhaveshPatel
Community Champion
Community Champion

You can try splitting your date column in query editor and then using the merge columns feature, combine as per the indian date format. "dd-mm-yyyy". 

 

In case, this step may not be supported then you can use combination of LEFT, RIGHT functions to extract dd, mm, yyyy and then concatenate all together.

 

 

 

Thanks

Bhavesh

Thanks & Regards,
Bhavesh

Love the Self Service BI.
Please use the 'Mark as answer' link to mark a post that answers your question. If you find a reply helpful, please remember to give Kudos.

Hi @BhaveshPatel

 

Thank you so much for your Idea.

The below calculated column worked fine.

 

Calculated Column = DAY('Table1'[Creation_Date]) & "/" & MONTH('Table1'[Creation_Date]) & "/" & YEAR('Table1'[Creation_Date])
Anonymous
Not applicable

Hi @Charu @RyanP @BhaveshPatel @v-cherch-msft 

 

What we need to do if we want to add 0 in prefix of jan to sep.

 

Thanks

Doesnt pad the zero for January through September 😕

Hi @Charu

 

Glad to hear you've solved it, kindly mark your answer as a solution.that way, other community members will easily find the solution when they get same issue.

 

Regards,

Cherie

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

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.