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
Anonymous
Not applicable

Filtrar en un ID basado en la selección de otro ID

Hola

Me gustaría hacer un filtro de página en casos excluidos. En mi ejemplo, hay dos tablas. Clientes y eventos. Ahora quiero excluir a los clientes que están registrados para eventos específicos (uno o varios eventos).

Por ejemplo. Selecciono eventID 1 de una lista de eventos. El resultado será que se establecerá un filtro de página y los datos relacionados con el cliente 3 y 4 se mostrarán en la página (ya que el cliente 1 y 2 se registran en el evento 1). Si selecciono el evento 3, se mostrarán los datos del cliente 2 y 4.

¿Es esto posible? ¿O ve alguna solución alternativa? ¡Gracias de antemano!

selections.jpg

3 REPLIES 3
V-lianl-msft
Community Support
Community Support

Hola @HNO ,

Cree una tabla no relacionada y utilice la event_id como segmentación de datos.

A continuación, cree la medida y aplíquela al filtro de nivel visual.

Measure 2 =
CALCULATE (
    SUM ( events[customers_id] ),
    FILTER (
        ALLEXCEPT ( events, events[customers_id] ),
        events[Event_id] IN VALUES ( 'Table'[Event_id] )
    )
)

test_Filter on an ID.PNG

Muestra .pbix

Saludos
Liang
Si este post ayuda, por favor considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

Anonymous
Not applicable

¡Muchas gracias por esta solución! ¡Funciona bien!

Saludos

Henrik

amitchandak
Super User
Super User

@HNO

No probado, trate como

Añadir medida con customer-id


Medida ?
var _exp á allexcept(distinct(customer[customer_id]),summarize(event,customer_id))
devolución
calculate(count(Customer[customer_id]),filter(all(Customer),customer[customer_id] en _exp))

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.