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
Sylvine_Wyz
Helper IV
Helper IV

DISTINCTCOUNT Y SUM

Hola a todos

Me gustaría saber que el número de orden con el total de cantidad son superiores a 20 .

número de pedidoCantidadSupplier_idorder_date
AC1234551001/01/2020
AC12345151001/01/2020
BF64578613005/07/2020
GT51264234228/02/2020
TR7895226303/03/2020
AC12565221015/01/2020

Me gustaría hacer una mesa :

MesEneroFebreroMarzo
Proveedores
10200
130000
42010
63000

Gracias por tu ayuda

1 ACCEPTED SOLUTION

Hola @Sylvine_Wyz,

Puede crear un objeto visual de matriz con el identificador de mes y proveedor, y usar la siguiente fórmula de medida para calcular el recuento diferenciado del grupo de meses de identificador de proveedor.

Measure =
CALCULATE (
    DISTINCTCOUNT ( 'Table'[order number] ),
    FILTER ( ALLSELECTED ( 'Table' ), SUM ( 'Table'[quantity] ) >= 20 ),
    VALUES ( 'Table'[Supplier_id] )
) + 0

5.png

saludos

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

4 REPLIES 4
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/
amitchandak
Super User
Super User

@Sylvine_Wyz, no muy claro.

Inténtalo como

sumx(summarize(table, table[supplier], table[month], "_1", distinctcount(Table[quantity])),[_1])

Thnaks para tu retunr @amitchandak

Sólo quiero crear un DAX para calcular la sala de pedido con una cantidad a 20.

Conocer un pedido puede tener 2 líneas. (1a tabla en mi ejemplo)

Después de eso, sé crear la 2a tabla.

Hola @Sylvine_Wyz,

Puede crear un objeto visual de matriz con el identificador de mes y proveedor, y usar la siguiente fórmula de medida para calcular el recuento diferenciado del grupo de meses de identificador de proveedor.

Measure =
CALCULATE (
    DISTINCTCOUNT ( 'Table'[order number] ),
    FILTER ( ALLSELECTED ( 'Table' ), SUM ( 'Table'[quantity] ) >= 20 ),
    VALUES ( 'Table'[Supplier_id] )
) + 0

5.png

saludos

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

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.