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

Next 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

Reply
Anonymous
Not applicable

Que grafico de suma acumulativa no muestre valor si no corresponde

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. 

francogh_0-1648638228183.png

Este es el código que uso. 

 

Spoiler
Acumulativo 2022 = CALCULATE([TOTAL mes 2022],
FILTER(ALLSELECTED('412 - DIARIOS'),'412 - DIARIOS'[DIA] <= MAX('412 - DIARIOS'[DIA]
)))

 

3 REPLIES 3
Syndicate_Admin
Administrator
Administrator

@francogh ,

Intente usar la siguiente medida:

Cumulative 2022 =
CALCULATE (
    [TOTAL my 2022],
    FILTER (
        ALLSELECTED ( '412 - DIARIES' ),
        '412 - DIA'[DIA] <= MIN ( TODAY (), MAX ( '412 - DIA'[DIA] ) )
    )
)
Anonymous
Not applicable

Gracias por la respuesta, aparece de la misma manera usando ese codigo. 

francogh_0-1648644483401.png

 

@francogh ,

¿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] )
        )
    )
)

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.

Top Kudoed Authors