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
liz_dooley
Regular Visitor

Make a Date Function

Hey guys, so I am trying to create a static date. We take snapshots of our data every quarter and I need to create a date for the day the snapshot was taken. We use age and have age groups and I would need to determine someone's age by their birthday AND the quarterly reporting date. We have thousands of people in this data set so cannot look at this dynamically or it will change on a daily basis due to birthdays.

 

I have worked in Tableau for a while and I am use to the Make A Date function. Is there an equivalent?

 

Thanks!

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

There is the DATE function. If you want January 2nd, 2018 it would be:

 

MyDate = DATE(2018,1,2)


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

View solution in original post

3 REPLIES 3
popov
Resolver III
Resolver III

Hello,

Equivalent of MAKEDATE function in DAX is DATE.

 

Greg_Deckler
Super User
Super User

There is the DATE function. If you want January 2nd, 2018 it would be:

 

MyDate = DATE(2018,1,2)


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

Thank you!

 

Of course it was that simple 🙂

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.