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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
YonghunLee
Helper I
Helper I

How to get User Info

I want to make sale view from Sale Table and User Table

As you can see, Sale Table can refer to User Table for User Name with ID

To do that, what should I do?

 

11.png

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @YonghunLee ,

You can create one calculated column in table Sale as below, please find the details in this sample PBIX file. The precondition is creating the relationship between Sale(Buyer_ID) and user(UserID).

How to get User Info.JPG

 

Seller =
VAR s = 'Sale'[Seller_ID]
VAR n =
    CALCULATE ( MAX ( 'User'[Name] ), FILTER ( 'User', 'User'[UserID] = s ) )
RETURN
    n
 

Best Regards

Rena

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @YonghunLee ,

You can create one calculated column in table Sale as below, please find the details in this sample PBIX file. The precondition is creating the relationship between Sale(Buyer_ID) and user(UserID).

How to get User Info.JPG

 

Seller =
VAR s = 'Sale'[Seller_ID]
VAR n =
    CALCULATE ( MAX ( 'User'[Name] ), FILTER ( 'User', 'User'[UserID] = s ) )
RETURN
    n
 

Best Regards

Rena

amitchandak
Super User
Super User

@YonghunLee 

You can join it with both columns and you will get one active and one inactive join. You can use that in the formula(using userelation) to active. But in this case, it might work out. Still refer example

 

You can create one more version of this table and use

Buyer Table = user table

Or

Buyer Table = summarize (user table , user table[Userid],user table [name])

 

Or you can populate name is sales table like this

 

seller_name = minx(filter('Sales Table','Sales Table'[seller_id]='User table'[UserID]),'User table'[Name])

buyer_name = minx(filter('Sales Table','Sales Table'[buyer_id]='User table'[UserID]),'User table'[Name])

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
Winner-Topper-on-Map-How-to-Color-States-on-a-Map-with-Winners , HR-Analytics-Active-Employee-Hire-and-Termination-trend
Power-BI-Working-with-Non-Standard-Time-Periods And Comparing-Data-Across-Date-Ranges

Connect on Linkedin

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors