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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

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
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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