Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago

Power BI Measure without relationship between tables

Hi,

 

I have a problem with a measure I found in a customer's report because it works but I don't understand how. Basically we have two tables, one fact table and one dimension table, the measure performs a count of the rows of the fact table under some specific filters. The problem is it uses a column of the dimension table in order to filter, but there is no active relationship between these two tables and it is not specified inside the DAX formula. There is an inactive relationship between these two tables but it a many to many relationship with no real usage. I don't understand how the results that the measure gives are correct and actually filtered without an explicit nor implicit relationship. 

Thank you in advance 

4 Replies

  • Anonymous 

     

    Probably they are using the formulan "USERELATIONSHIP" that allow you o activate a unactive relationship just for the dax formula calculation

    • Anonymous's avatar
      Anonymous
      Not applicable

      No, they are not. There is only a FILTER function inside the CALCULATE.

      • Uspace87's avatar
        Uspace87
        Icon for Resolver III rankResolver III

        if the relationship is not active it's not gonna filter anything. Maybe they are using "TREAT AS"?