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!View all the Fabric Data Days sessions on demand. View schedule
Dear All, Before I start, sorry for my English.
Here is my Data Source
And I want to create a DAX to get SUM of revenue of the prevoius week with all Pack, QouteNum, and Team.
Here is my DAX
Is there a way to do this and how?
Thank you.
Solved! Go to Solution.
Hi @nutdiablo
Could you please try the measures below:
Revenue = SUM ( Sheet1[Revenue] )Previous Week Revenue =
VAR _prev = SELECTEDVALUE ( DimWeek[WeekNumber] ) - 1
RETURN
CALCULATE ( [Revenue],
REMOVEFILTERS ( DimWeek[WeekNumber] ),
DimWeek[WeekNumber] = _prev
)
Create formatting measures:
Revenue (0) := COALESCE ( [Revenue], 0 )Prev Week (0) := COALESCE ( [Previous Week Revenue], 0 )
Data :
Outcome :
Hi @nutdiablo
Could you please try the measures below:
Revenue = SUM ( Sheet1[Revenue] )Previous Week Revenue =
VAR _prev = SELECTEDVALUE ( DimWeek[WeekNumber] ) - 1
RETURN
CALCULATE ( [Revenue],
REMOVEFILTERS ( DimWeek[WeekNumber] ),
DimWeek[WeekNumber] = _prev
)
Create formatting measures:
Revenue (0) := COALESCE ( [Revenue], 0 )Prev Week (0) := COALESCE ( [Previous Week Revenue], 0 )
Data :
Outcome :
It work! Thank you very much.
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 |
|---|---|
| 18 | |
| 11 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 31 | |
| 25 | |
| 21 | |
| 14 | |
| 12 |