Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Bidirectional Relationships crossfilter?

Hello! 
I need some help with my model. 
This is how it looks:

I need to be able to make a calculation with values from the accidents table and then slice it by using slicers from the BO_FACTORY...-table and the Calendar-table. 
How do I do that?
This is the message I get when I try to make the relationship active:



Thank you for helping me!

UPDATE:
I tried this:

 

But it still didn't solve my problems. I get the same value on en each entity

  • Hi Anonymous ,

     

    There's a problem with the relationship between the tables, as you said you want to slice it by using slicers from the BO_FACTORY...-table.

    Then there needs to be a relationship between BO_FACTORY table and accidents table. But there may be something wrong with your model design. It is recommended that you filter the values by creating conditions.

    For example:

    Measure = IF(MAX(accidents [entitycode]) in VALUES(BO_FACTORY[entity]),1,0)

    Create such a measure and put it in the visual level filter to filter the values through the slicer.

     

    Best Regards,
    Liang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

3 Replies

    • Anonymous's avatar
      Anonymous
      Not applicable

      I'm sure it works but is the only way I can achieve this to create 4 more date tables? Seems like there should be a simpler way

  • V-lianl-msft's avatar
    V-lianl-msft
    Icon for Community Support rankCommunity Support

    Hi Anonymous ,

     

    There's a problem with the relationship between the tables, as you said you want to slice it by using slicers from the BO_FACTORY...-table.

    Then there needs to be a relationship between BO_FACTORY table and accidents table. But there may be something wrong with your model design. It is recommended that you filter the values by creating conditions.

    For example:

    Measure = IF(MAX(accidents [entitycode]) in VALUES(BO_FACTORY[entity]),1,0)

    Create such a measure and put it in the visual level filter to filter the values through the slicer.

     

    Best Regards,
    Liang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.