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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
tuncay
Helper III
Helper III

Slicer: Slice two tables with the same column values

I have two tables:

 

Table 1: IDs with actual KPI data sorted by month

Table 2: IDs with plan KPI data sorted by month

 

These two tables are conntected by a MonthNum column.

 

If I add a slicer to my dashboard, it only slices one table, but not the other.

I tried adding another table only with ID, but I can't connect both tables two the same column, it says two many active relations.

 

slice.PNG

1 ACCEPTED SOLUTION

Unfortunately the way you have done things is not the best one so please think of exploring the nature of the relations between tables before you implement your model. A many-to-many model is not a good design, it is rather a lazy and unthought design. Essentially you would be using it because you don't want to have to spend the time thinking about the true relationship between the two entities. There are a significant number of relationships between real-world entities that are always one-to-many. If you make all of your relationships many-to-many, this means the following downsides just off the top of my head:

  1. You are adding a number of unnecessary tables to your database to act as intersection entities.
  2. Querying data from your database will require more table JOIN operations, which will impact performance.
  3. Additional code/logic is required to maintain the intersection entities.
  4. In cases where the relationship between two entities *is* one-to-many, you have just created a potential error condition (i.e. a child mistakenly having two parents).

The proper answer is to spend due diligence during the design process. Please try doing so in the future!

View solution in original post

8 REPLIES 8
tuncay
Helper III
Helper III

can anybody else help?

goncalogeraldes
Super User
Super User

Hello there @tuncay ! Is the Cross-filter direction set to "Both"? Nevertheless I think you need to either create a calcuted table for the month table or a date table in Power query and connect both tables to this existing new table. 

 

Here's a good example of how to do it:

 

https://radacad.com/create-a-date-dimension-in-power-bi-in-4-steps-step-1-calendar-columns

 

Hope this answer solves your problem! If you need any additional help please tag me in your reply.
If my reply provided you with a solution, pleased mark it as a solution ✔️ or give it a kudoe 👍
Thanks!

Best regards,
Gonçalo Geraldes

No, I need to continue like I've done already. And yes the cross-filter direction is set to "both"...

Unfortunately the way you have done things is not the best one so please think of exploring the nature of the relations between tables before you implement your model. A many-to-many model is not a good design, it is rather a lazy and unthought design. Essentially you would be using it because you don't want to have to spend the time thinking about the true relationship between the two entities. There are a significant number of relationships between real-world entities that are always one-to-many. If you make all of your relationships many-to-many, this means the following downsides just off the top of my head:

  1. You are adding a number of unnecessary tables to your database to act as intersection entities.
  2. Querying data from your database will require more table JOIN operations, which will impact performance.
  3. Additional code/logic is required to maintain the intersection entities.
  4. In cases where the relationship between two entities *is* one-to-many, you have just created a potential error condition (i.e. a child mistakenly having two parents).

The proper answer is to spend due diligence during the design process. Please try doing so in the future!

As you said, I tried this now:

 

relationship.PNG

But, still it doesn't work..

Hi, @tuncay 

Have you edited the interactive behavior of visuals? What is the field used in your current slicer?

Try setting the cross-filter to a single direction of one-to-many and then apply the "ID" from the "unit&id" table to the slicer.

16.png

 

If it doesn't work ,please share a sample file for further research.

 

Best Regards,
Community Support Team _ Eason

amitchandak
Super User
Super User

@tuncay , share relationship diagram, I doubt one relation is inactive.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Yes, since there is already a relation between actual and plan because of MonthNum column, the relation between ID and plan gets inactive.

 

relations.PNG

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.