Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I have historical sales data that I want to create a "Last Week Sales" column for. I was able to add a "Last Week" column successfully, and am trying to get the Last Week Sales column to work correctly, which needs to be a "Sumif" type of formula that works within its own table. LOOKUPVALUE isnt an option here since there will be multiple results per week.
Any advice on how I can get this column to work? I tried using the below, but I can only get this type of formula to work if the data is on another table.
Last Week Sales = SUMX(FILTER(GRS, GRS[Week]=GRS[Last Week]),GRS[Sales])
Solved! Go to Solution.
Hi,
Please check the below picture and the attached pbix file.
EARLIER function (DAX) - DAX | Microsoft Learn
Last week sales CC =
SUMX ( FILTER ( GRS, GRS[Week] = EARLIER ( GRS[Last Week] ) ), GRS[Sales] )
Hi,
Please check the below picture and the attached pbix file.
EARLIER function (DAX) - DAX | Microsoft Learn
Last week sales CC =
SUMX ( FILTER ( GRS, GRS[Week] = EARLIER ( GRS[Last Week] ) ), GRS[Sales] )
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 104 | |
| 81 | |
| 66 | |
| 50 | |
| 45 |