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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
cecitorresHF
Helper I
Helper I

Total Acumulado

Hola, estoy intentando crear una columna con totales acumulados para la columna 'Prioritised Jobs' por semana. Esta es mi tabla actual. (40, 41, 42, etc son semanas)

 

cecitorresHF_0-1635194698647.png

 

1 ACCEPTED SOLUTION

Hi @cecitorresHF 

Try sumx funtcion to calculate the sum of measure. 

Here is my sample.

1.png

Measure:

M_Prioritised Jobs = SUM('Table'[Prioritised Jobs])
Cumulative Total =
SUMX (
    FILTER (
        ALL ( 'Table' ),
        'Table'[Month] = MAX ( 'Table'[Month] )
            && 'Table'[level1] <= MAX ( 'Table'[level1] )
    ),
    [M_Prioritised Jobs]
)

Result is as below.

1.png

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
cecitorresHF
Helper I
Helper I

Thanks, but this is not working because all the columns are measuremets 

Hi @cecitorresHF 

Try sumx funtcion to calculate the sum of measure. 

Here is my sample.

1.png

Measure:

M_Prioritised Jobs = SUM('Table'[Prioritised Jobs])
Cumulative Total =
SUMX (
    FILTER (
        ALL ( 'Table' ),
        'Table'[Month] = MAX ( 'Table'[Month] )
            && 'Table'[level1] <= MAX ( 'Table'[level1] )
    ),
    [M_Prioritised Jobs]
)

Result is as below.

1.png

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

VahidDM
Super User
Super User

Hi @cecitorresHF 

 

Try this to add a column to your table:

Column = calculate(sum([Prioritised Jobs]),filter(all(table),[Prioritised Jobs]<=earlier([Prioritised Jobs]))))

 

Or this, measure:

Column = calculate(sum([Prioritised Jobs]),filter(all(table),[Prioritised Jobs]<=Max([Prioritised Jobs]))))

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.

Appreciate your Kudos!!

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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