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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
JSturgeon
New Member

Sales this week

In my dataset, I have 2 years of data by day. I am being asked to produce sales for the current week and need help getting that for the active week I am in. 

 

Can anyone help me with a simple solution for this?

1 REPLY 1
VahidDM
Super User
Super User

Hi @JSturgeon 

 

You need to add a Date/Calendar table to your model and add a connection between youe tables and Date table:

To create a Date Table see this: https://www.vahiddm.com/post/creating-calendar-table-with-3-steps

 

then you need to use WEEKNUM Dax function to find the Week Number of Today:  WEEKNUM(Today())
after that write a dax code to filter the Date table based on the WeekNum and sum the Sale.

 

Can you Share sample of your data our PBIX file [after removing sensetive data]?

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.

Appreciate your Kudos!!

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.