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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.