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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
vjnvinod
Impactful Individual
Impactful Individual

Cumulative total

Hi Experts,

 

i am looking for a cumulative sum based on combination on Period and Week for example 

 

vjnvinod_0-1713623343497.png

this is the output i am looking for

 

vjnvinod_1-1713623530656.png

 

My Current DAX is 

 

YTD Charged Hours =
CALCULATE(
    SUM('YTD Timesheet'[Hours]),
    'YTD Timesheet'[H Category] = "Chargeable"
)
 
i want to modify this pls note that 
i am using a Calendar table  with one to many relationship with Charged Hours table using Week Coloumn
 
vjnvinod_2-1713623734345.png

 

 
1 ACCEPTED SOLUTION
ThxAlot
Super User
Super User

This is the scenario where WINDOW functions come into play. Tweak the measure accordingly.

ThxAlot_0-1713627105024.png



Expertise = List.Accumulate(


        {Days as from Today},


        {Skills and Knowledge},


        (Current, Everyday) => Current & Day.LeanAndPractise(Everyday)


)



View solution in original post

2 REPLIES 2
ThxAlot
Super User
Super User

This is the scenario where WINDOW functions come into play. Tweak the measure accordingly.

ThxAlot_0-1713627105024.png



Expertise = List.Accumulate(


        {Days as from Today},


        {Skills and Knowledge},


        (Current, Everyday) => Current & Day.LeanAndPractise(Everyday)


)



Sergii24
Super User
Super User

Hello @vjnvinod, you might find useful this blog post to solve your problem - link.

Good luck!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.