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
Syndicate_Admin
Administrator
Administrator

Expresión DAX para filtrar los números de pieza con más de un proveedor

Hola a todos, tengo una mesa como esta.

Número de piezaProveedorCantidad
#001A1000
#001B2000
#002B1000
#003A500
#004C100
#004D800

Me gustaría incluir una instrucción DAX (filtro) para mostrar solo los números de pieza con más de un proveedor (por ejemplo, el número de pieza #001 y #004). Hasta ahora estoy usando esta declaración, pero no está funcionando.

FILTRO('PartNumberTable', CALCULAR(DISTINCTCOUNT(SupplierTable[Nombre del proveedor]) > 1))
Gracias.
2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

@samurai_jack ,

Aquí una medida que podría usar en el panel de filtros:

tomfox_1-1657700452984.png

Aquí el código DAX para la medida:

MultipleSupplierMeasure = 
IF ( 
    CALCULATE ( 
        DISTINCTCOUNT ( Table[Supplier] ), 
        REMOVEFILTERS ( Table[Supplier] ) 
    ) > 1, 
    1, 
    BLANK() 
)

Hágame saber si esto ayuda 🙂

/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/

Eso funcionó perfectamente, ¡gracias! 🙂

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.