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
BBHouston
Helper I
Helper I

¿Cómo puedo corregir esta medida específica para mi tabla (acumulativa por mes)?

Tengo la siguiente tabla visual (puede ignorar la columna "Recién registrado"):

Screenshot 2020-11-09 154003.png

Quiero que el total de "Running Count MONTH" sea acumulativo. Así que en lugar de 192-54-4, quiero que aparezca como 192-246-250. Aquí está mi medida actual que todavía me está dando el resultado anterior:

Correr Count MONTH ? CALCULATE(COUNTROWS('Table1'), FILTER(ALL('Table1'[Date]), MONTH('Table1'[Date]) <- MONTH(MAX('Table1'[Date])) && NOT(ISBLANK('Table1'[Date])))


¿Qué error hay en mi medida y cómo lo arreglo para obtener el resultado que quiero?

4 REPLIES 4
V-pazhen-msft
Community Support
Community Support

@BBHouston

El problema es la expresión de filtro, intente usar max([date].[ month.no]):


Running Count MONTH ? CALCULATE(COUNTROWS('Table1'), FILTER(ALLSELECTED('Table1'[Date]), [Date].[ Month.no] <-Max([Fecha].[ Month.no]) && NOT(ISBLANK('Table1'[Date]))))


Paul Zheng _ Equipo de apoyo de la comunidad
Si este post ayuda, por favor Acédárlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

Ashish_Mathur
Super User
Super User

Hola

Comparte el enlace desde donde puedo descargar tu archivo PBI.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

@Ashish_Mathur Gracias por la respuesta. Desafortunadamente, me está dando exactamente el mismo resultado. Supongo que tendría que añadir la función MES en algún lugar allí también?

jdbuchanan71
Super User
Super User

@BBHouston Pruébalo.

Running Count =
VAR _MaxDate = MAX ( 'Table1'[Date] )
RETURN
    CALCULATE (
        COUNTROWS ( 'Table1' ),
        FILTER (
            ALL ( 'Table1'[Date] ),
            'Table1'[Date] <= _MaxDate
                && NOT ( ISBLANK ( 'Table1'[Date] ) )
        )
    )

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.