This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreGet Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.
I have extracted data from my CRM with PowerBI and I have the following relationships between tables Leads an Users:
LEADS: USERS
CreatedBy (Userid) *--1 Id
ModifiedBy (Userid) *--1 Id
Owner (Userid) *--1 Id
I want to create a vizualization that shows the number of Leads / Owner NAME.
But If I create a new column in the Leads table with the formula OwnerName = concatenate(related(User[FirstName]),concatenate(" ",related(User[LastName]))) and I use OwnerName as axis it takes into consideration the first relationship (based on CreatedBy column. How do I get it to take into consideration the Owner column?
Thanks
Solved! Go to Solution.
Hi @adriansuteu,
According to your description, you want to get the related user name based on owner, right?
If this is a case, you can refer to below formulas to get related user name.
Calculate column:
USERELATIONSHIP Function: Owner Name = CALCULATE(CALCULATE(VALUES(User[Last Name])&" "&VALUES(User[First Name]),LEADS),USERELATIONSHIP(LEADS[Owner],User[User ID]),ALL(User)) LOOKUPVALUE Function: Owen Name 2 = LOOKUPVALUE(User[Last Name],User[User ID],LEADS[Owner])&" "& LOOKUPVALUE(User[First Name],User[User ID],LEADS[Owner])
Result:
Regards,
Xiaoxin Sheng
Hi @adriansuteu,
According to your description, you want to get the related user name based on owner, right?
If this is a case, you can refer to below formulas to get related user name.
Calculate column:
USERELATIONSHIP Function: Owner Name = CALCULATE(CALCULATE(VALUES(User[Last Name])&" "&VALUES(User[First Name]),LEADS),USERELATIONSHIP(LEADS[Owner],User[User ID]),ALL(User)) LOOKUPVALUE Function: Owen Name 2 = LOOKUPVALUE(User[Last Name],User[User ID],LEADS[Owner])&" "& LOOKUPVALUE(User[First Name],User[User ID],LEADS[Owner])
Result:
Regards,
Xiaoxin Sheng
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 22 | |
| 22 | |
| 21 | |
| 21 | |
| 16 |
| User | Count |
|---|---|
| 55 | |
| 54 | |
| 47 | |
| 26 | |
| 24 |