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
Anonymous
Not applicable

userelationship question

Hi everyone

I am trying to use the userelationship function in order to use an inactive relationship.

i only need to return an location so i do no want to use an aggregation.

i tried using values function but it return a table of multple values was supplied where a single value was expected.

Productielocatie View = CALCULATE(VALUES(ProductieLocatie[ProductieLocatie Naam]);USERELATIONSHIP(ProductieLocatie[BK_DYN_ProductieLocatieid];NormAfwijkingsTaken[DYN_ProductielocatieID]))



1 ACCEPTED SOLUTION
v-cherch-msft
Employee
Employee

Hi @Anonymous 

The error is caused by too many different values in name column.To solve it, you may use MAX,MIN or other function like CONCATENATEX function.For further,please refer to below sample.

Column = CALCULATE(CONCATENATEX(VALUES(Table1[name]),Table1[name],","),USERELATIONSHIP(Table1[id],Table2[id]))
Column = CALCULATE(MAX(Table1[name]),USERELATIONSHIP(Table1[id],Table2[id]))

1.png

Regards,

Community Support Team _ Cherie Chen
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

1 REPLY 1
v-cherch-msft
Employee
Employee

Hi @Anonymous 

The error is caused by too many different values in name column.To solve it, you may use MAX,MIN or other function like CONCATENATEX function.For further,please refer to below sample.

Column = CALCULATE(CONCATENATEX(VALUES(Table1[name]),Table1[name],","),USERELATIONSHIP(Table1[id],Table2[id]))
Column = CALCULATE(MAX(Table1[name]),USERELATIONSHIP(Table1[id],Table2[id]))

1.png

Regards,

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

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.