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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Kpham
Resolver I
Resolver I

role playing dimension for non date scenario's

Dear experts, I'm want to use role playing for an other purpose then role playing date's. I have a FactSales table that contains 2 keys that describes the relation to a DimensionCustomer table. Let's see one is the ship-to-party(SHP) and the other one is the sold-to-party(SDP). So the fact table has two keys KeySHP and KeySDP. I can create one active relation to the Customer Dimension and one inactive one. Now I want to create to measures to be able to create a visual with: Sales Amount; Ship-to-Party, Sold-to-Party I assume I need to make two measure to be able to use Ship-to-Party and Sold-to-Party and I believe it should look like: Ship-to-Party = Calculate(Max(DimensionCustomer[Ship-to-Party]), USERELATIONSHIP(DimensionCustomer[KeySHP], FactSales[KeySHP]) Is it correct to use role playing dimensions in this way?
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Kpham , USERELATIONSHIP is used for this purpose. Hope this one was inactive. As for active you can skip this.

 

The approach is correct. Use in measures only.

 

https://radacad.com/userelationship-or-role-playing-dimension-dealing-with-inactive-relationships-in...

 

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Kpham , USERELATIONSHIP is used for this purpose. Hope this one was inactive. As for active you can skip this.

 

The approach is correct. Use in measures only.

 

https://radacad.com/userelationship-or-role-playing-dimension-dealing-with-inactive-relationships-in...

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.