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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Powerbipatronus
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!

 

2 REPLIES 2
johnt75
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.

Pragati11
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

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.