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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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