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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Rabur116
Frequent Visitor

Recuento distinto de objetopor tipo y fecha

Hola

Tengo esta tabla donde necesito contar el número total general de objetos por fecha:

Nombre del objetoTipo de objetoFecha
abcvm1Ahv3/26/2020
abcvm2Vmw3/26/2020
bcdvm1Ahv3/25/2020
bcdvm1Ahv3/25/2020
bcdvm1Ahv3/24/2020
bcdvm1Vmw3/24/2020
cdwvm1Ahv3/24/2020

Un objeto debe contarse solo una vez al día si es del mismo tipo de objeto. La respuesta debe ser:

FechaAhvVmwTotal
3/26/2020112
3/25/2020101
3/24/2020213
Grand Total6

Estoy usando una visualización de "Tarjeta" para mostrar el Grand Total mientras filtro las fechas. Por favor, hágamelo saber la medida correcta que puedo utilizar para la "tarjeta".

¡Gracias de antemano!

2 ACCEPTED SOLUTIONS
Ashish_Mathur
Super User
Super User

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

v-easonf-msft
Community Support
Community Support

Hola , @Rabur116

Pruebe los pasos como se indica a continuación:

1.crear una tabla de cálculo:

Table 2 = DISTINCT('Table'[Object Type])

2.crear una medida como abajo

value1 =
SUMX (
    GROUPBY (
        FILTER ( 'Table', 'Table'[Object Type] IN DISTINCT ( 'Table 2'[Object Type] ) ),
        'Table'[Date],
        'Table'[Object Type]
    ),
    IF (
        ISBLANK ( CALCULATE ( DISTINCTCOUNT ( 'Table'[Object Name] ) ) ),
        0,
        CALCULATE ( DISTINCTCOUNT ( 'Table'[Object Name] ) )
    )
) + 0

Se mostrará como se muestra a continuación:

58.png

Aquí hay una demostración

pbix unido

Saludos
Equipo de Apoyo Comunitario _ Eason
Si este post ayuda,entonces por favor considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

View solution in original post

6 REPLIES 6
v-easonf-msft
Community Support
Community Support

Hola , @Rabur116

Pruebe los pasos como se indica a continuación:

1.crear una tabla de cálculo:

Table 2 = DISTINCT('Table'[Object Type])

2.crear una medida como abajo

value1 =
SUMX (
    GROUPBY (
        FILTER ( 'Table', 'Table'[Object Type] IN DISTINCT ( 'Table 2'[Object Type] ) ),
        'Table'[Date],
        'Table'[Object Type]
    ),
    IF (
        ISBLANK ( CALCULATE ( DISTINCTCOUNT ( 'Table'[Object Name] ) ) ),
        0,
        CALCULATE ( DISTINCTCOUNT ( 'Table'[Object Name] ) )
    )
) + 0

Se mostrará como se muestra a continuación:

58.png

Aquí hay una demostración

pbix unido

Saludos
Equipo de Apoyo Comunitario _ Eason
Si este post ayuda,entonces por favor considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

Hola, tanto la solución de primera persona como su solución funcionan. Muchas gracias por la ayuda!

De nada.


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

@Rabur116

Trate como

Sumx(summarize(Table[Date],table,[ Object Type]"_dist",distinct(Table[Object Name])),[_dist])

Ashish_Mathur
Super User
Super User

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/

¡Tu solución funciona! Muchas gracias por la ayuda.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors