Forum Discussion

navafolk's avatar
navafolk
Helper IV
7 years ago
Solved

Cannot active relationship, 2 columns to 1 column

I try to connect cash outflows and inflows from Funding table to Daily CF table.

My tables are something like this:

- Column From  in Funding is date of inflow (+ Amount)

- Column To in Funding is date of outflow (- Amount)

- Column Date in Daily CF is just series of whole days in a period

Both From and To should have relationship to Date in Daily CF but I cannot do this in Power BI. I would like to show up Funding inflow/outflow on Daily CF with related information from Funding table (matched by date).

Any suggestion? Please help. Thank you.

 

 

Funding

Drawdown nameAmountFromTo
A202/02/201902/03/2019
B203/03/201903/05/2019
C304/04/201904/07/2019

 

Daily CF

DateOpex outSales outCollection in
02/02/2019   
03/02/2019   
04/02/2019   
05/02/2019   
06/02/2019   
07/02/2019   
08/02/2019   
09/02/2019   
10/02/2019   
11/02/2019   
12/02/2019   
  • Anonymous's avatar
    Anonymous
    7 years ago

    You can't have two relationships, active at the same time, between two tables. Just one can be active, the other(s) needs to be inactive. That's the way Powerbi works. You have two solutions

    - you set one inactive and you activate them when needed using CROSSFILTER and USERELATIONSHIPS

    - or you duplicate your date table and have two different,identical, tables,with two relationships (which will be now on two tables)

  • Anonymous's avatar
    Anonymous
    7 years ago

    Well, unfortunately that's the way it works. Unless you use USERELATIONSHIP and CROSSFILTER.
    What you could do is to remove columns from the duplicated table that are not necessary.

3 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    You can't have two relationships, active at the same time, between two tables. Just one can be active, the other(s) needs to be inactive. That's the way Powerbi works. You have two solutions

    - you set one inactive and you activate them when needed using CROSSFILTER and USERELATIONSHIPS

    - or you duplicate your date table and have two different,identical, tables,with two relationships (which will be now on two tables)

    • navafolk's avatar
      navafolk
      Helper IV

      Thank you, adetogni. I currently use the second way. It works but makes my file pretty large.

      • Anonymous's avatar
        Anonymous
        Not applicable

        Well, unfortunately that's the way it works. Unless you use USERELATIONSHIP and CROSSFILTER.
        What you could do is to remove columns from the duplicated table that are not necessary.