Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Recuento diferenciado acumulado

Hola a todos,

Estoy tratando de calcular el total acumulado de un estado distinto por fecha.

Tengo la siguiente tabla:

Fecha

Tipo

15/04/2020

A

15/04/2020

A

15/04/2020

A

15/04/2020

B

16/04/2020

A

16/04/2020

A

17/04/2020

A

17/04/2020

B

17/04/2020

B

20/04/2020

A

20/04/2020

A

20/04/2020

B

Lo que necesito es que la medida obtenga el siguiente resultado:

Fecha

Tipo

Acumulativo

15/04/2020

A

3

15/04/2020

B

1

16/04/2020

A

5

16/04/2020

B

1

17/04/2020

A

6

17/04/2020

B

3

20/04/2020

A

8

20/04/2020

B

4

¡Gracias!

3 REPLIES 3
Ashish_Mathur
Super User
Super User

Hola

Puede descargar mi archivo PBI desde aquí.

Espero que esto ayude.


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

Pruebe esta expresión en un objeto visual de tabla con las columnas Date y Type

Cumulative This Type =
VAR __thisdate =
    MAX ( Table[Date] )
RETURN
    CALCULATE (
        COUNTROWS ( Table ),
        ALLEXCEPT ( Table, Table[Type] ),
        Table[Date] <= __thisdate
    )

Si esto funciona para usted, márquelo como la solución. Los elogios también son apreciados. Por favor, avísame si no.

saludos

palmadita





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Anonymous
Not applicable

¡¡Gracias!! funciona perfectamente

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Fabric Monthly Update - May 2024

Check out the May 2024 Fabric update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors