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.
Hola a todos
Tengo una columna acumulativa trabajando usando medida rápida:
Importe acumulado: CALCULATE (
ORDER_DATE | Cantidad | Importe acumulado |
Enero | 10 | 10 |
Febrero | 5 | 15 |
Marzo | 5 | 20 |
Sin embargo, cuando agredo otra columna (tipo de cliente), los totales mensuales se duplican en la columna acumulativa.
¿Cómo obtengo totales acumulados por tipo de cliente por mes?
ORDER_DATE | TIPO DE CLIENTE | Cantidad | Importe acumulado |
Enero | A | 2 | 10 |
Enero | B | 5 | 10 |
Enero | C | 3 | 10 |
Febrero | A | 1 | 15 |
Febrero | B | 3 | 15 |
Febrero | C | 1 | 15 |
Marzo | A | 3 | 20 |
Marzo | B | 1 | 20 |
Marzo | C | 1 | 20 |
Así que me gustaría esto:
ORDER_DATE | TIPO DE CLIENTE | Cantidad | Importe acumulado |
Enero | A | 2 | 2 |
Enero | B | 5 | 5 |
Enero | C | 3 | 3 |
Febrero | A | 1 | 3 |
Febrero | B | 3 | 8 |
Febrero | C | 1 | 4 |
Marzo | A | 3 | 6 |
Marzo | B | 1 | 9 |
Marzo | C | 1 | 5 |
Solved! Go to Solution.
@jp2020 , Trate si esto puede ayudar
Importe acumulado: CALCULATE (
SUM('Tabla'[Importe] ),
FILTER (ALLSELECTED('Table'),'NT Transactions'[Client_Type] ?max('NT Transactions'[Client_Type] ) &&
'Transacciones NT'[ORDER_DATE] <- MAX( 'Transacciones NT'[ORDER_DATE] )
)
)
@jp2020 , Trate si esto puede ayudar
Importe acumulado: CALCULATE (
SUM('Tabla'[Importe] ),
FILTER (ALLSELECTED('Table'),'NT Transactions'[Client_Type] ?max('NT Transactions'[Client_Type] ) &&
'Transacciones NT'[ORDER_DATE] <- MAX( 'Transacciones NT'[ORDER_DATE] )
)
)
¡Eso funcionó perfectamente, gracias!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |
User | Count |
---|---|
2 | |
2 | |
2 | |
2 | |
1 |