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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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