Skip to main content
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.

New Member

DAX or Power Query for dates?

I'm new to Power BI and DAX, so any help would be greatly appreciated.

I'm working on a report where I need to see the months (MMMYY) where a new purchase was made. I've made variables for first and last purchase order. I've tried DATESDIFF, calculated columns, and measures. I know it's more complicated than my brain is ready for, but I'd really like to be able to solve this problem. Thanks!


Super User
Super User

You need to set up a proper date table and mark it as a date table, there are lots of articles and videos about it. Once you've done that and linked the date table to your fact table then you can use columns from your date table in your visuals and your measures will automatically show the numbers for the appropriate period.

Super User
Super User

Hi @Powerbipatronus ,


I think you will need to add more details here like what calculations did you create? What is working and what is not? Some sample data, etc.


Best Regards,

Pragati Jain

MVP logo

LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Helpful resources

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


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.