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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Jaxidian
Frequent Visitor

How do I link two data fields that aren't foreign keys to synchronize filtering?

Let's say I have two tables that look like this:

 

Sales:

IdLocationIdAmount($)DateOfTransactionYearNumberMonthNumberDayNumber
14212345.672012-10-2220121022
242234562012-11-2320121123
345987.122012-10-2220121022
4455002012-11-2320121123

 

Projections:

IdLocationIdAmount($)DateOfTransactionYearNumberMonthNumberDayNumber
142100002012-10-2220121022
242200002012-11-2320121123
345150002012-10-2220121022
44510002012-11-2320121123

 

I'd like to have two bar charts such that the numbers are initially aggregated by Location ID, which is fine. But when I drill into that Location, I want to then aggregate by Year-Month (I have a computed column that shows "2012-10" and "2012-11") then next drill-down level into the Day. I'd also like the filtering on one visualization to drive the filtering on the other visualization. This is fine for Location ID but this is problematic when I'm in a drilled-down view aggregated by Month and Day. When I click on the Month in one chart, it doesn't filter by month in the other one since these Month values are in two different tables.

 

How can I get these to drive one another?

1 ACCEPTED SOLUTION

You should make a separate date table that you can link both fact tables to. Then use the year-month field from the date table for the axis in your two charts.

View solution in original post

4 REPLIES 4
Sean
Community Champion
Community Champion

When you enable drill down on one chart all interactions with other charts are disabled!

 

Why don't you plot both Actual and Projected in the same bar chart? (At least I think that's what you are trying to do)

and you can drill down and see both amounts in the same chart

 

Bar Chart with Drilldown.png

 

Good Luck! Smiley Happy

Jaxidian
Frequent Visitor

Hi Sean,

 

I can't put them in the same chart because the dates are in different tables. I would reall love to be able to do that but it doesn't seem to be an option given how the data is structured.

You should make a separate date table that you can link both fact tables to. Then use the year-month field from the date table for the axis in your two charts.

I was afraid that was the answer but I think you're right. Thanks!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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