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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
HKInd
Helper I
Helper I

Need Help with Last 3 Weeks Total Calculation in Report Slicer

Hi All,

Please help..!

 

Need help with calculating "last3WeeksTotal" based on the selected Weekending date in the slicer. The formula I provided is showing blank results:

 

I have applied below DAX but it showing blank result :- 

3Wkstotal =
CALCULATE(
    SUM('Date_set'[Revenue]),
    FILTER('Date_set',
    'Date_set'[Order Stage] = "Ordered"
    &&'Date_set'[Scope] = "Order"
    ),FILTER('CalendarDate','CalendarDate'[Date]>=[Selected_date]-27 && 'CalendarDate'[Date]<=[Selected_date]-7))

 

Report link below:

https://www.dropbox.com/s/6jvwyryae34ormg/3Weeks%20Total%20issue.pbix?dl=0 

HKInd_0-1690136549051.png

Any suggestions or corrections are welcome!

3 REPLIES 3
aj1973
Community Champion
Community Champion

hI @HKInd 

here 3 weeks of 21 days

aj1973_0-1690151006105.png

20 days

aj1973_1-1690151144568.png

22 days

aj1973_2-1690151185470.png

 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Please see below screenshot of what help i need, I have two columns Dates and Sale and at the bottom i have written start date of the week and end date of the week and total is 1675 from 3July to 23July when 30July Weekending date is selected. 

HKIndia_0-1690177945976.png

 

@aj1973  Thanks for your reply, But It should work on slicer basis, If i selected date in slicer it should change date calculation accordigly. You have removed selectedvalue feature in solution.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.

Top Solution Authors
Top Kudoed Authors