Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
12Bowers12
Helper V
Helper V

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

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.