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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount 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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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