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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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