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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Peter_23
Post Patron
Post Patron

Filtrado entre dos objetos visuales

Buen dia, tengo una consulta:  tengo una consulta con dos visualizes una grafico y una tabla, el modelo de datos se puede ver que el producto pc solo se tiene el id_tienda 2, asi que cuando realizo clic en la grafica me gustaria que filtrara la tabla ejemplo clic en PC solo debe mostrar el marker con  cantidad 5, pero al tratar de filtrar no se muestra nada porque lo que entiendo tiene diferentes filtros los visuales la tabla tipo 3 y la grafica tipo 2, ¿existe alguna manera de lograr ese filtrado dinamico? 

 

Peter_23_0-1721962431278.png

 

 

Gracias.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Peter_23 ,

 

According to your statement, I think the table visual and column chart are both create based on same table with different filters. In table visual you use filter tipo = 3 and in column chart you use filter tipo = 1 or 2.

As far as I know, it is not a good idea to filter your table visual by 'pc' in your column chart. The row filter in your data table will impact your result. So when you click on 'pc' in column chart, the table visual will return blank.

vrzhoumsft_0-1721977836191.png

Here I suggest you to create an unrelated Dimproducto table to achieve your goal.

 

Dimproducto = VALUES('Table'[producto])

 

Measure:

 

MEASURE =
VAR _Idtable =
    CALCULATETABLE (
        VALUES ( 'Table'[Id_tienda] ),
        FILTER (
            ALL ( 'Table' ),
            'Table'[producto] IN VALUES ( Dimproducto[producto] )
        )
    )
RETURN
    IF ( MAX ( 'Table'[Id_tienda] ) IN _Idtable, 1, 0 )

 

Add this measure into visual level filter of table visual and set it show items when value = 1.Result is as below.

vrzhoumsft_1-1721978578898.png

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

View solution in original post

2 REPLIES 2
Peter_23
Post Patron
Post Patron

thanks @Anonymous  I resolved with another solution, but you give me a hit, I  use an unrelated table. :)

Anonymous
Not applicable

Hi @Peter_23 ,

 

According to your statement, I think the table visual and column chart are both create based on same table with different filters. In table visual you use filter tipo = 3 and in column chart you use filter tipo = 1 or 2.

As far as I know, it is not a good idea to filter your table visual by 'pc' in your column chart. The row filter in your data table will impact your result. So when you click on 'pc' in column chart, the table visual will return blank.

vrzhoumsft_0-1721977836191.png

Here I suggest you to create an unrelated Dimproducto table to achieve your goal.

 

Dimproducto = VALUES('Table'[producto])

 

Measure:

 

MEASURE =
VAR _Idtable =
    CALCULATETABLE (
        VALUES ( 'Table'[Id_tienda] ),
        FILTER (
            ALL ( 'Table' ),
            'Table'[producto] IN VALUES ( Dimproducto[producto] )
        )
    )
RETURN
    IF ( MAX ( 'Table'[Id_tienda] ) IN _Idtable, 1, 0 )

 

Add this measure into visual level filter of table visual and set it show items when value = 1.Result is as below.

vrzhoumsft_1-1721978578898.png

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.