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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
TECPZR_1
Frequent Visitor

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

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

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

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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