Forum Discussion

CasaMoreira's avatar
CasaMoreira
New Member
2 years ago

How to surpass single filter direction?

Hello everyone
I have the below datamodel:

I have a table visualization with the content of table 4, and a slicer with the content of table

Selecting a value of table1, I want to see the related values of table 4

This is not working because of the relationship direction from table 2 and table 3.

Using a bi-directional filter is not an option (ambiguity).

How can I accomplish this?


9 Replies

  • CasaMoreira 

    You can use CROSSFILTER dax function and tweak the directionality for that one particular calculation to 'BOTH' instead of SINGLE.

    https://dax.guide/crossfilter/


    If the post helps please give a thumbs up


    If it solves your issue, please accept it as the solution to help the other members find it more quickly.


    Tharun



    • CasaMoreira's avatar
      CasaMoreira
      New Member

      Thank you.

      can you give me an example? Where should I create the measure with the CROSSFILTER?

      • tharunkumarRTK's avatar
        tharunkumarRTK
        Icon for Super User rankSuper User

        CasaMoreira 

         

        Assuming your related table1_2 and table 2 with value2id columns

         

        CALCULATE (
                    MAX(table4[value2id]),
                    CROSSFILTER ( table1_2[value2id], table2[value2id], BOTH )
                )

         


        Your model is deviating from the principles of star schema, and it is not a good practice 🙂


        If the post helps please give a thumbs up


        If it solves your issue, please accept it as the solution to help the other members find it more quickly.


        Tharun