Reply
TECPZR_1
Frequent Visitor
Partially syndicated - Outbound

Slicer not filtering a card

I am working with power bi. I have a simple model with two tables with the same columns except one. The first one has the following columns: id, cicle, year and prod. The second one: id, cicle, year and res. When I include two cards to show: res and prod and I have a filter with one slicer, the slicer only change one card. The onde that is linked with the table.

 

TECPZR_1_0-1697122138637.png

 

 

IdCicleYearprod
1Dic202040
1DIc202020
1Jun202130

 

 

IdCicleYearRes
1Dic20201
1DIc20202
1Jun20213
1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Syndicated - Outbound

Hi @TECPZR_1 
In order for a slicer to work properly, the tables need to be linked by a unique value, which is not currently the case. Therefore, you need to create a 'years' table that will link the two tables and use it for the slicer.

Ritaf1983_1-1697124938892.png

Link to the file with an example 

more information about modeling:

https://learn.microsoft.com/en-us/power-bi/guidance/star-schema

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

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

1 REPLY 1
Ritaf1983
Super User
Super User

Syndicated - Outbound

Hi @TECPZR_1 
In order for a slicer to work properly, the tables need to be linked by a unique value, which is not currently the case. Therefore, you need to create a 'years' table that will link the two tables and use it for the slicer.

Ritaf1983_1-1697124938892.png

Link to the file with an example 

more information about modeling:

https://learn.microsoft.com/en-us/power-bi/guidance/star-schema

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

 

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
avatar user

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

Check out the March 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)