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
Mattpar
Frequent Visitor

Cómo dejar de mostrar valores de línea 'acumulativos reales' para semanas futuras.

Hola

A continuación se muestra mi problema.. y gracias de antemano por cualquier solución!

La línea siguiente representa el presupuesto acumulado frente a las cifras reales del año-semana.

Estoy mostrando el pronóstico del presupuesto futuro de 4 semanas en el gráfico (línea roja) pero no quiero ver una línea real (azul) acumulativa plana para las semanas futuras. Dado que este es un gráfico actualizado semanalmente estoy buscando en una solución en movimiento no sólo un total en ejecución hasta 2020-31. También para tener en cuenta que mis valores de la semana del año se almacenan como texto.

Actualmente mi medida total de ejecución es como la siguiente. Comienza a partir de la semana 2020-19 y sube al número máximo de la semana.

Corriente acumulada: CALCULATE([Actual Spent],FILTER('Combined'[Año-Semana] > "2020-19" && 'Combinado'[Año-Semana] <-MAX('Combinado'[Año-Semana])))

Capture.JPG

Capture2.JPG

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

Hola @Mattpar ,

Actualice la fórmula de su medida "Realidad acumulativa" como se muestra a continuación y compruebe si puede obtener el resultado deseado:

Cumulative Actual =
VAR _CumActual =
    CALCULATE (
        [Actual Spent],
        FILTER (
            'Combined',
            'Combined'[Year-Week] >= "2020-19"
                && 'Combined'[Year-Week] <= MAX ( 'Combined'[Year-Week] )
        )
    )
RETURN
    IF ( NOT ( ISBLANK ( [Actual Spent] ) ), _CumActual, BLANK () )

Saludos

Rena

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yiruan-msft
Community Support
Community Support

Hola @Mattpar ,

Actualice la fórmula de su medida "Realidad acumulativa" como se muestra a continuación y compruebe si puede obtener el resultado deseado:

Cumulative Actual =
VAR _CumActual =
    CALCULATE (
        [Actual Spent],
        FILTER (
            'Combined',
            'Combined'[Year-Week] >= "2020-19"
                && 'Combined'[Year-Week] <= MAX ( 'Combined'[Year-Week] )
        )
    )
RETURN
    IF ( NOT ( ISBLANK ( [Actual Spent] ) ), _CumActual, BLANK () )

Saludos

Rena

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@yingyinr Eso es todo lo que necesitaba. ¡Funciona perfectamente!

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.