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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
bonjourposte
Helper V
Helper V

RELATEDTABLE

Hi,

 

I have a table of loan numbers, and I need to return a list of tenants for each address (CODE), so I'm trying to retrieve data from the Many side and bring it into the One.  When I use RELATEDTABLE, the error message it gives me is "The expression refers to multiple columns.  Multiple columns cannot be converted to a scalar value."  But I WANT those mulitple lines, at least (not columns).  How do I write my DAX for this measure?

 

This is the measure I've written:

 

NumberofTenants = FILTER(RELATEDTABLE(LEASMAST),LEASMAST[TENANT_NAME])
 
The One side where I've written this measure is LOANCOLL.  The Many side is LEASMAST.
 
How do I get that list?
2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

Share some data to work with and show the expected result.  Share data in a format that can be pasted in an MS Excel file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
elitesmitpatel
Solution Supplier
Solution Supplier

Try this 
1) TenantsList =
CONCATENATEX(
RELATEDTABLE(Tenants),
Tenants[TenantName],
", "
)

2) if above one fails try this 

TenantsPerAddress =
VAR Tenants =
SUMMARIZECOLUMNS(
'TenantTable',
"Tenant", [TenantName] -- Replace with actual tenant name column
)
RETURN
CONCATENATX(
Tenants,
Tenants[Tenant],
", " -- Adjust delimiter as needed
)

 

If it helps you please Aceept it as Solution so others can get the solution of this problem

Thank you

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.