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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anupal
Frequent Visitor

Need to Get the Running Total from Current week Onwards

Hello,

 

I am trying to create a measure which will give me the running total from Current Week till last week(want to capture for entire year).

 

However the catch is that I dont want to include the revenue value from Week 1 to 4(assuming week 5 is my current week).

 

How can I get the right numbers-, this is what I am using right now-

Running Total=

IF(CALCULATE(MAX(' (Fiscal Calendar)'[Quarter Week Aging])>=0),
CALCULATE(
'[Revenue ],
FILTER(
ALLSELECTED('Fiscal Calendar'[Quarter Week Num], 'Fiscal Calendar'[Quarter Month Num]),
ISONORAFTER('Fiscal Calendar'[Quarter Week Num], MAX('Fiscal Calendar'[Quarter Week Num]), DESC)
)
))

 

Anupal_1-1703067281648.png

 

above is what i am getting right now, however what i need is running total rev in week 5 should be 44M, in week 6 it should be (44M+66M=110M)..But right now in Week 5 i am getting the commulative revenue from wk 1to 5, which is not what i want.

 

TIA

AP

1 REPLY 1
Dangar332
Super User
Super User

Hi, @Anupal 

try below measure 

measure =

SUMX(
  FILTER(
     ALL(re),re[week num]<=MAX(re[week num]) && re[week num]>4),
  re[revenue]
)+0

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.