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
Kanxeskis
New Member

Suma acumulada por columnas (total acumulado debajo del total)

Hola,

Alguien sabría como poner el cálculo acumulado debajo de los totales mensuales tal y cómo se muestra en el ejemplo?.

Gracias

 

 22 de octubre22 de noviembredic-22ene-2323 de febreromar-23TOTAL
ingresos102030405060210
Gasto-18-15-7-19-34-55-148
Total-85232116562
Total Acum.-8-320415762 

 

 

1 ACCEPTED SOLUTION
v-luwang-msft
Community Support
Community Support

Hi 

Create measure like the below(use the new measure as value):

TEST = 
IF (
    HASONEVALUE ( 'Table'[Type1] ),
    MAX ( 'Table'[value] ),
    CALCULATE ( MAX ( 'Table'[value] ), FILTER ( 'Table', 'Table'[Type1] = "A" ) )
        - CALCULATE ( MAX ( 'Table'[value] ), FILTER ( 'Table', 'Table'[Type1] = "B" ) )
)

 

vluwangmsft_0-1666688839939.png

 

 

Best Regards

Lucien

View solution in original post

2 REPLIES 2
v-luwang-msft
Community Support
Community Support

Hi 

Create measure like the below(use the new measure as value):

TEST = 
IF (
    HASONEVALUE ( 'Table'[Type1] ),
    MAX ( 'Table'[value] ),
    CALCULATE ( MAX ( 'Table'[value] ), FILTER ( 'Table', 'Table'[Type1] = "A" ) )
        - CALCULATE ( MAX ( 'Table'[value] ), FILTER ( 'Table', 'Table'[Type1] = "B" ) )
)

 

vluwangmsft_0-1666688839939.png

 

 

Best Regards

Lucien

Thanks Lucien,

 

Pero necesito que el cálculo del "CF ACUM" esté bajo "CASH FLOW" es decir en una fila y no me deja, sólo me deja añadir la medida en la columna.

 

Kanxeskis_2-1667921117475.png

 

 

 

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.