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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
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] )
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.