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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
AllanBerces
Post Patron
Post Patron

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
Responsive Resident
Responsive Resident

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)

 

 

View solution in original post

2 REPLIES 2
SachinNandanwar
Responsive Resident
Responsive Resident

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)

 

 

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

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.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

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

August Carousel

Fabric Community Update - August 2024

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