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

Dax para la suma acumulada de una medida en el gráfico de líneas

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.

2 ACCEPTED SOLUTIONS

Cambie MAX(Datedim[Fecha]) a MAX(Test_table[fecha]))

View solution in original post

Hola

Puede descargar mi archivo PBI desde aquí.

Espero que esto ayude.

Untitled.png


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

View solution in original post

5 REPLIES 5
camargos88
Community Champion
Community Champion

Hola @ExcelPBI ,

Pruebe esta medida:

M2 = CALCULATE(DISTINCTCOUNT(Test_table[Client id]), FILTER(ALL(Datedim[Date]), Datedim[Date] <= MAX(Datedim[Date])), Test_table[Served?] = "Y")

Capture.PNG



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



Anonymous
Not applicable

@camargos88 gracias funciona! Si usted puede responder a esto para mí voy a estar muy agradecido- ¿Cómo puedo limitar esta suma acumulada al mes actual en el gráfico, por lo que muestra la suma acumulada sólo hasta octubre 2020 no para el resto de los meses en el año-nov, dec.

Hola

Puede descargar mi archivo PBI desde aquí.

Espero que esto ayude.

Untitled.png


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

@ExcelPBI ,

Puede cambiar la medida para ello:

M2 = CALCULATE(DISTINCTCOUNT(Test_table[Client id]), FILTER(ALL(Datedim[Date]), Datedim[Date] <= MAX(Test_table[date])), Test_table[Served?] = "Y")

o cambiar que fechado a la fecha máxima de test_table.

Datedim - CALENDAR(DATE(2020,1,1), MAX(Test_table[date]))


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!



Cambie MAX(Datedim[Fecha]) a MAX(Test_table[fecha]))

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.