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
Anonymous
Not applicable

Suma acumulada de una medida en el gráfico de líneas

Hola

Tengo la siguiente medida que cuenta clientes distintos para una condición:

M1 - CALCULATE(DISTINCTCOUNT(table(client_id), filter(table,table[Served?] ?"Yes" ))

Quiero mostrar los valores de suma acumulada durante meses (tengo una tabla datedim) de esta medida en un gráfico de líneas.

Por favor, sugiera ¿cómo puedo hacerlo?

Mi archivo pbi de muestra: https://1drv.ms/u/s!Ag919_pO_UKrgQbUO5qfsTPxwfY8?e=gmwvsD

Gracias de antemano.

1 ACCEPTED SOLUTION
Syndicate_Admin
Administrator
Administrator

¡Esto está resuelto!. La solución es:

CALCULATE(DISTINCTCOUNT(clientid), FILTER(ALL(Datedim[Date]),Datedim[Date] <- MAX(testtable[date])), testtable[served]-"Yes" )

View solution in original post

7 REPLIES 7
Syndicate_Admin
Administrator
Administrator

¡Esto está resuelto!. La solución es:

CALCULATE(DISTINCTCOUNT(clientid), FILTER(ALL(Datedim[Date]),Datedim[Date] <- MAX(testtable[date])), testtable[served]-"Yes" )

AlB
Super User
Super User

Hola @ExcelPBI

Coloque YEar-Month en el eje del objeto visual y utilice esta medida:

M1 =
CALCULATE (
    DISTINCTCOUNT ( table[client_id)] ),
    FILTER ( table, table[Served?] = "Yes" ),
    FILTER ( ALL ( DateTable ), DateTable[Date] <= MAX ( DateTable[Date] ) )
)

Por favor, marque la pregunta resuelta cuando haya terminado y considere dar felicitaciones si las publicaciones son útiles.

Póngase en contacto conmigo de forma privada para obtener asistencia con cualquier necesidad de BI a gran escala, tutoría, etc.

Salud

SU18_powerbi_badge

Anonymous
Not applicable

@AlB Lo sentimos esta solución no proporciona suma acumulativa, sólo da el recuento distinto. Por favor, compruebe la muestra pbi que he proporcionado ahora en el post.

Anonymous
Not applicable

@ExcelPBI Encuentre un informe de muestra aquí

Apreciamos su felicitación!! Marque mi post como solución si esto funciona.

Anonymous
Not applicable

@NikhilKumar sentimos que no tengo acceso a la ubicación del archivo que compartiste. ¿Hay alguna otra forma de compartir el archivo?

Anonymous
Not applicable

@ExcelPBI Intente acceder a este enlace - PBIX

Apreciamos su felicitación!! Marque mi puesto como solución si esto ayuda.

Anonymous
Not applicable

@NikhilKumar gracias por volver a compartir el enlace. Pero no me proporciona la solución que estoy buscando. Necesito un dax para obtener la suma acumulada de una medida, no una columna. He adjuntado mi pbi de muestra.

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.