cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
12Bowers12
Resolver II
Resolver II

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] )

   )

 

1 ACCEPTED SOLUTION

@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.

View solution in original post

6 REPLIES 6
amitchandak
Super User
Super User

@12Bowers12 , what are you summarizing here?

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

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin
Want To Learn Power BI
Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
Proud to be a Super User!
!! Subscribe to my youtube Channel !!

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

@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.

Thank you, do you know how to change to English? DL

@12Bowers12 

https://community.powerbi.com/t5/Desktop/activate-relationship-for-summarize/td-p/1319694

 

This link? There are English and Spanish version forums they are synchronized.

 

Regards
Paul

Thank you, Paul. It works now.

Helpful resources

Announcements
Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

charticulator_carousel_with_text (1).png

Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through May 31st!

Power BI Dev Camp Session 22 768x460.jpg

Check it out!

Mark your calendars and join us on Thursday, May 26 at 11a PDT for a great session with Ted Pattison!