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
Ramesh-iTalent
Administrator
Administrator

Segmentaciones múltiples dinámicas

¡Hola a todos!

Estoy atascado con el siguiente asunto:

En mi modelo tengo 3 tablas:

Modelo:

Ventas:

PRODUCT_IDVENDOR_IDCANTIDAD(o)Fecha
123Aaaaa207/13/2020
221Bbbbb5

07/13/2020

Productos:

PRODUCT_IDCategoríaSubcategoría
123DeportesFútbol
221DormirZapatos

Proveedor:

VENDOR_IDSHOP_TYPEUbicación
AaaaagrandeItalia
BbbbbSupermercadoAlemania

Estas tablas (proveedor y productos) están conectadas por ID a la tabla de ventas.

¿QUÉ QUIERO HACER?

Me gustaría tener en el informe, dos rebanadoras.

1) Para seleccionar la "visión" que desea: Producto o proveedor. (Seleccione la segmentación en la imagen)

2) Seleccione los detalles, es decir: Producto seleccionado y la categoría del producto. (Cortadora de PRODUCTO en la imagen)
Ejemplo:


Capture.PNG

Si cambio a proveedor, debería cambiar en lugar de mostrar productos (sueño y deportes) debería ser capaz de seleccionar "SHOP_TYPE"

Muchas gracias por su ayuda! 🙂

5 REPLIES 5
amitchandak
Super User
Super User
Greg_Deckler
Super User
Super User

@PowerPowerBI_20 - Vea si esto ayuda: https://community.powerbi.com/t5/Quick-Measures-Gallery/Dynamic-EVERYTHING-measures-axis-legend-titl...


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Gracias por su respuesta, el enlace es genial, pero sólo está trabajando con una mesa y aplicando filtros a ella. En mi caso, tengo varias tablas, y PowerBI debe mostrar información de una tabla u otra.

@PowerPowerBI_20 - Un pensamiento en esto, usar botones en lugar de rebanadoras para su "visión". A continuación, podría aprovechar los objetos visuales y marcadores apilados.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Hola @PowerPowerBI_20 ,

Cree una tabla con ambas tablas que necesite:

Valor de tipo

Producto Deportes
Producto Dormir
Proveedor Aaaaa
Proveedor Bbbbb

Ahora haga la siguiente medida:

Sum Sales =
VAR SelectedType =
    SELECTEDVALUES ( Slicer[Type] )
VAR Selected_Value =
    VALUES ( Slicer[Value] )
RETURN
    SWITCH (
        SelectedType ;
        "Vendor"; CALCULATE ( SUM ( Sales[QUANTITY(€)  ] ); Vendors[VENDOR_ID  ] IN Selected_Value);
        CALCULATE ( SUM ( Sales[QUANTITY(€)  ] ); Products[CATEGORY  ] IN Selected_Value)
    )

Ahora utilice la medida como sus valores en los gráficos como se puede ver en adjuntar archivo altough que estoy seleccionando en productos y proveedor una de las visualizaciones se hace en subcategoría.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



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.