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
Buenos días, necesito hacer un grafico de suma de ventas diarias de mes actual comparativa con el año anterior, pero necesito que solo me muestre hasta el día en curso del mes actual y no me repita el valor de la suma hasta el ultimo día.
Este es el código que uso.
Intente usar la siguiente medida:
Cumulative 2022 =
CALCULATE (
[TOTAL my 2022],
FILTER (
ALLSELECTED ( '412 - DIARIES' ),
'412 - DIA'[DIA] <= MIN ( TODAY (), MAX ( '412 - DIA'[DIA] ) )
)
)
Gracias por la respuesta, aparece de la misma manera usando ese codigo.
¿Quieres que el valor esté en blanco cuando es más alto que hoy, es eso?
Pruebe el código siguiente:
Cumulative 2022 =
IF (
SELECTEDVALUE ( '412 - DIA'[DIA] ) <= TODAY (),
CALCULATE (
[TOTAL my 2022],
FILTER (
ALLSELECTED ( '412 - DIARIES' ),
'412 - DIA'[DIA] <= MAX ( '412 - DIA'[DIA] )
)
)
)
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.