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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Michie_24
Frequent Visitor

Filtering Table with different relationships

Michie_24_0-1726651015626.png

Hi, I am using 2 different date columns for each bar visual (Forecast e6 date, e6 achieved date). I connect both of the date columns to a Dimcalendar table, and use CALCULATE...USERELATIONSHIP in the measures to calculate the count of each bars in both charts shown. I am struggling to get the bottom table to filter accordingly.

 

Example: I would like it to show the relevant job when I click on one of the weeks on the top barchart, and vice versa that it shows the relevant job when I click on the bottom bar chart. 

 

Thank you!

1 ACCEPTED SOLUTION
v-linhuizh-msft
Community Support
Community Support

Thanks for the reply from lbendlin.

 

Hi @Michie_24 ,

 

According to your description, the two bar charts cannot interact with the table. I tried to reproduce your problem.

vlinhuizhmsft_0-1727080529307.png

vlinhuizhmsft_1-1727080564353.png

 

The model is as follows:

vlinhuizhmsft_2-1727080606639.png

 

This is due to the fact that the current relationship is inactive. Even when using the USERELATIONSHIP function, the function only activates the relationship when performing a summation calculation. It is recommended that both relationships be set as active to ensure that the bar chart and table can interact properly.

 

The new model is as follows:

vlinhuizhmsft_3-1727081111222.png

 

Result:

vlinhuizhmsft_4-1727081151211.png

 

Best Regards,
Zhu
Community Support Team

 

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

View solution in original post

3 REPLIES 3
v-linhuizh-msft
Community Support
Community Support

Thanks for the reply from lbendlin.

 

Hi @Michie_24 ,

 

According to your description, the two bar charts cannot interact with the table. I tried to reproduce your problem.

vlinhuizhmsft_0-1727080529307.png

vlinhuizhmsft_1-1727080564353.png

 

The model is as follows:

vlinhuizhmsft_2-1727080606639.png

 

This is due to the fact that the current relationship is inactive. Even when using the USERELATIONSHIP function, the function only activates the relationship when performing a summation calculation. It is recommended that both relationships be set as active to ensure that the bar chart and table can interact properly.

 

The new model is as follows:

vlinhuizhmsft_3-1727081111222.png

 

Result:

vlinhuizhmsft_4-1727081151211.png

 

Best Regards,
Zhu
Community Support Team

 

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

Hi Zhu, 

Thanks for your confirmation that the two bar charts cannot interact with the table by using USERELATIONSHIP. The reason that I am using inactive relationships is because the dates are from the same table. So, at least now i know that in order for me to get the right filters on the table, I need to split the dates to different tables and have active relationships for both. 

Thanks again. 

lbendlin
Super User
Super User

for better or for worse Power BI does support bidirectional search between tables (most often in a *:* relationship)

 

Please provide a more detailed explanation of what you are aiming to achieve. What have you tried and where are you stuck?

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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