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
Anonymous
Not applicable

Filter two different databases - Real x Forecast

Hi,

 

I need to create two filters containing "Company" and "Type". The filter needs to reflect on my graph as show below:

ccgbalarin_0-1654115729840.png

When I try to filter by "Type" one of those two values remains the same.

I've tried to create a relation between the two aswell, but no success...

ccgbalarin_1-1654115865109.png

 

All the details are in this PBIX File.

 

Any ideas on how to handle this problem?

Thanks in advance!

1 ACCEPTED SOLUTION
sturlaws
Resident Rockstar
Resident Rockstar

Hi,

 

you are trying to filter two different fact tables by using fields within one of them, this is usually not a good idea.

 

Create dimensions/tables for each of the columns the two tables have in common, connect these two new tables to both of the fact tables, and change the slicers to use type and company from these two new tables

pbix

 

Cheers,
Sturla

If this post helps, then please consider Accepting it as the solution. Kudos are nice too.

View solution in original post

1 REPLY 1
sturlaws
Resident Rockstar
Resident Rockstar

Hi,

 

you are trying to filter two different fact tables by using fields within one of them, this is usually not a good idea.

 

Create dimensions/tables for each of the columns the two tables have in common, connect these two new tables to both of the fact tables, and change the slicers to use type and company from these two new tables

pbix

 

Cheers,
Sturla

If this post helps, then please consider Accepting it as the solution. Kudos are nice too.

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.