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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
AhmedMousa
Frequent Visitor

use relationship More than once

hello 

i want use this function more than once can 

Tdr_net11 = calculate (
sum (Append_CR_gndtndr[TDR_AMOUNT]) / VALUE(1.15),
USERELATIONSHIP(Append_CR_gndtndr[TDR_DOB], Append1[INVD_DOB] ),
USERELATIONSHIP(Append_CR_gndtndr[TDR_STR_ID] ,Stores[STR_NO]))
2 REPLIES 2
v-xulin-mstf
Community Support
Community Support

Hi @AhmedMousa,

 

You can set these two relationships to be active in the Model view.
Then you can call the relationship multiple times and do not need to use the userrelationship function.

vxulinmstf_0-1631003602832.png

For more information, you can refer:

https://docs.microsoft.com/en-us/power-bi/guidance/relationships-active-inactive#active-relationship...

 

If you still have some question, please don't hesitate to let me known.‌‌

 

Best Regards,

Link

 

Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!

lbendlin
Super User
Super User

yes, that should be possible (assuming these relationships exist and they have the right filter direction).  Do you get an error?

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors