Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

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:

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...

 

All the details are in this PBIX File.

 

Any ideas on how to handle this problem?

Thanks in advance!

  • 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.

1 Reply

  • sturlaws's avatar
    sturlaws
    Icon for Resident Rockstar rankResident 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.