Forum Discussion

12Bowers12's avatar
12Bowers12
Helper V
6 years ago
Solved

activate relationship for summarize

Good morning, everyone,

In the following query, the relationship between table Policy and DateDimension is actitvated by using UserRelationship.

However, this argument does not filter Summarize.

Any ideas? 

Thank you. 

DL

 

   CALCULATETABLE (

       SUMMARIZE (Policy, Broker[BROKER],'DateDimension'[DateKey]),  

       USERELATIONSHIP( Policy[EFFECTIVE_DATE], 'DateDimension'[DateKey] )

   )

 

  • Anonymous's avatar
    Anonymous
    6 years ago

    12Bowers12 

    USERELATIONSHIP() only activates the inactive relationship between the tables, that is not a filtering expression. It would best best if you can provide short sample and describe how tables are related by which columns


    Paul Zheng _ Community Support Team
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

6 Replies

  • 12Bowers12 , what are you summarizing here?

    You are just taking a few columns. and using use relation, you might end getting entire data

    • 12Bowers12's avatar
      12Bowers12
      Helper V

      Thanks, I want to get the Broker and Date information from the two respective tables given any written policy.

      • Anonymous's avatar
        Anonymous
        Not applicable

        12Bowers12 

        USERELATIONSHIP() only activates the inactive relationship between the tables, that is not a filtering expression. It would best best if you can provide short sample and describe how tables are related by which columns


        Paul Zheng _ Community Support Team
        If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.