Forum Discussion

daniyalmazhar5's avatar
daniyalmazhar5
Regular Visitor
4 years ago
Solved

TREATAS returns blanks but USERELATIONSHIP returns values

I have 3 tables: 1) Territories 2) Doctors 3) Visits Territories filters Doctors based on TerritoryCodes, and Doctors filters Visits based on DoctorKeys. There is an inactive relationship betwe...
  • AlexisOlson's avatar
    4 years ago

    First, the totals all being the same makes sense because, in the total line, there is no filtering happening related to territory. The filtering paths don't matter since they aren't being used.

     

    Now, what's up with TREATAS? In this measure, the Doctors table is still filtering Visits but now you've added an additional filter on top of that. In particular, Visits is still limited to the rows that match the Doctors table (which is why you don't see the 1,266 in the blank row). If you insert ALL ( Doctors ) into the TREATAS measure, then it'll probably match the USERELATIONSHIP measure.