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

Total en ejecución para la medida distinta de la cuenta

Estoy tratando de contar valores distintos en una fecha por y crear una nueva medida que calcula la suma acumulada de los recuentos distintos a medida que avanza el período de tiempo: La tabla de la izquierda es representativa de mi tabla de datos. La mesa de la derecha es lo que me gustaría que mis cuentas se vieran.

pbaba_1-1598139524702.png

Cualquier ayuda que usted puede proporcionar es apreciado!!

1 ACCEPTED SOLUTION

Suponiendo que tiene una tabla de calendario

https://exceleratorbi.com.au/power-pivot-calendar-tables/

algo así

Productos distintos:DISTINCTCOUNT(data[product])

Total de ejecución: CALCULATE(sumx(values(calendar[date]),[Distinct Products]),Filter(All(calendar),calendar[date] <-max(calendar[date])))

use la columna de fecha del calendario en el objeto visual.



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.

View solution in original post

4 REPLIES 4
Icey
Community Support
Community Support

Hola @pbaba ,

¿Está resuelto este problema?

Si se resuelve, por favor acepte siempre las respuestas que tengan sentido como solución a su pregunta para que las personas que puedan tener la misma pregunta puedan obtener la solución directamente.

Si no, por favor hágamelo saber.

Saludos

Icey

pranit828
Community Champion
Community Champion

Hola @pbaba

Usé lo de abajo para obtener el total de carreras.

CALCULATE (
    SUM ( 'Table'[Count Distinct Product] ),
    ALL ( 'Table' ),
    'Table'[Date] < EARLIER ( 'Table'[Date] )
)





PBI_SuperUser_Rank@1x.png


Hope it resolves your issue? 
Did I answer your question? Mark my post as a solution!

Appreciate your Kudos, Press the thumbs up button!!
Linkedin Profile

Suponiendo que tiene una tabla de calendario

https://exceleratorbi.com.au/power-pivot-calendar-tables/

algo así

Productos distintos:DISTINCTCOUNT(data[product])

Total de ejecución: CALCULATE(sumx(values(calendar[date]),[Distinct Products]),Filter(All(calendar),calendar[date] <-max(calendar[date])))

use la columna de fecha del calendario en el objeto visual.



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
Anonymous
Not applicable

¡Gracias! Esto funcionó.

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.