Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
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!
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.