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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
kmoxley
Frequent Visitor

removing running totals

Anyone got a way to take a collum of running total (cumulitive collumn of weekly data) and make it show weekly totals 

2 REPLIES 2
v-caliao-msft
Employee
Employee

@kmoxley,

 

To get weekly running total, you can use the DAX expression below.
Create a calculated column.
WeekStartDate = DATEADD(Sales[Date],1-WEEKDAY(Sales[Date]),DAY)

WeeklyRunningTotal = CALCULATE(SUM(Sales[SaleAmount]),DATESBETWEEN(Sales[Date],LASTDATE(Sales[WeekStartDate]),LASTDATE(Sales[Date])))

Capture.PNG

Thanks, but I need the oposite.

I have a weekly running total already, I need the sales per week

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.