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
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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel

Power BI Monthly Update - May 2024

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