cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
rkumar Regular Visitor
Regular Visitor

Extract Month and date from DateTime field to get mm/dd

How can we extract MM/DD from date format yyyy/mm/dd in direct query mode.

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Extract Month and date from DateTime field to get mm/dd

Hi @rkumar,


You can write a measure to format date value to mm/dd:

Date(MM dd) = FORMAT(MAX(DateVal[Value]),"mm/dd")

8.PNG

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin Sheng
If this post helps, please consider Accept it as the solution to help the other members find it more quickly
Learning resources: Power BI

View solution in original post

2 REPLIES 2
rkumar Regular Visitor
Regular Visitor

How to enter special character in DAX query

how can we use / symbol in a formulae so that output format can look like 11/12.

 

 

Community Support Team
Community Support Team

Re: Extract Month and date from DateTime field to get mm/dd

Hi @rkumar,


You can write a measure to format date value to mm/dd:

Date(MM dd) = FORMAT(MAX(DateVal[Value]),"mm/dd")

8.PNG

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin Sheng
If this post helps, please consider Accept it as the solution to help the other members find it more quickly
Learning resources: Power BI

View solution in original post

Helpful resources

Announcements
Exclusive LIVE Community Event #3 – Ask Arun Anything

Exclusive LIVE Community Event #3 – Ask Arun Anything

Join us in the third Triple A event!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

January 2020 Community Highlights

January 2020 Community Highlights

Make sure you didn't miss any of the things that happened in the community in January!

Top Solution Authors
Top Kudoed Authors