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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
AllanBerces
Post Partisan
Post Partisan

Cumulative sum base from 2 to 3 filter

Hi good day can anyone amend correct my cumulative calcualted column.

 

CUM_Plan = VAR CurrentDate = 'Table'[Plan Date_Main]
                              VAR CurrentSubTask = 'Table'[Location]
                              VAR Filteredtable = FILTER('Table','Table'[Plan Date_Main]<=CurrentDate && 'Table'[Location]= CurrentSubTask)

                              return

                              CALCULATE(SUM('Table'[Plan Hrs]), Filteredtable)

 

AllanBerces_0-1722668711181.png

 

Output

AllanBerces_1-1722668754029.png

Thank you

1 ACCEPTED SOLUTION
SachinNandanwar
Impactful Individual
Impactful Individual

Hi,
Is this what you are looking for ?

 

CUM_Plan =                    
                              VAR CurrentDate = 'Table'[Plan Date_Main]
                              VAR CurrentSubTask = 'Table'[Location]
                              VAR CurrentGroup = 'Table'[Group]
                              VAR Filteredtable = 
                                  FILTER('Table',
                                  'Table'[Plan Date_Main] <=CurrentDate 
                                  && 'Table'[Location]= CurrentSubTask 
                                  && 'Table'[Location]=CurrentGroup)

                          RETURN  CALCULATE(SUM('Table'[Plan Hrs]), Filteredtable)

 

 



Regards,
Sachin
Check out my Blog

View solution in original post

2 REPLIES 2
SachinNandanwar
Impactful Individual
Impactful Individual

Hi,
Is this what you are looking for ?

 

CUM_Plan =                    
                              VAR CurrentDate = 'Table'[Plan Date_Main]
                              VAR CurrentSubTask = 'Table'[Location]
                              VAR CurrentGroup = 'Table'[Group]
                              VAR Filteredtable = 
                                  FILTER('Table',
                                  'Table'[Plan Date_Main] <=CurrentDate 
                                  && 'Table'[Location]= CurrentSubTask 
                                  && 'Table'[Location]=CurrentGroup)

                          RETURN  CALCULATE(SUM('Table'[Plan Hrs]), Filteredtable)

 

 



Regards,
Sachin
Check out my Blog

Hi @SachinNandanwar thank you very much for the reply, all good.

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!

December 2024

A Year in Review - December 2024

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