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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Sander1401
Helper I
Helper I

RunningSum in DAX, multiple bookingyears

Hi All,

 

I am struggling wioth RunningSum in DAX.
I want to conmstruct a linegraph with the RunningSum/RunningTotal for arrivalyear 2024.
As you can see in the excelfile I have multiple bookingyears for arrivalyear 2024, so it looks like I cannot use TOTALYTD.
Can anyone help me construct a formula which can help me out on this?
Please see the excelfile here:
RunningSum.xlsx

Thanks all!

1 ACCEPTED SOLUTION
Kishore_KVN
Super User
Super User

Hello @Sander1401 ,
Create running total measure as follows:

Running Total = 
CALCULATE(SUM('Table'[Sale]),
ALLSELECTED('Table'),
'Table'[Date booking] <=MAX('Table'[Date booking]))

Please refer attachment for details. 

 

If this post helps, then please consider accepting it as the solution to help other members find it more quickly. Thank You!!

View solution in original post

2 REPLIES 2
Sander1401
Helper I
Helper I

You are a live saver!

 

Kishore_KVN
Super User
Super User

Hello @Sander1401 ,
Create running total measure as follows:

Running Total = 
CALCULATE(SUM('Table'[Sale]),
ALLSELECTED('Table'),
'Table'[Date booking] <=MAX('Table'[Date booking]))

Please refer attachment for details. 

 

If this post helps, then please consider accepting it as the solution to help other members find it more quickly. Thank You!!

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.