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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
BIBen
Helper I
Helper I

LOOKUPVALUE - Basic Functionality

The Goal

For each record, I want to display the name associated with each RosterKey.

In the following example, the oprange table is the join table, the blue table is the roster (LookUp) table and the black table represents the desired output in Power BI:

BIBen_2-1623083612320.png

This feels like a simple task, but is also presently beyond me.

 

The Situation

I have a table with multiple references to a roster table in each row. The columns where the RosterKey is being used are cra15_providerkey, cra15_chartauditorkey and cra15_divisiondirectorkey. I have constructred the fillowing formula, which does not work:

 

 

Provider Name = LOOKUPVALUE(cra15_ccadroster[cra15_fullname], cra15_ccadroster[cra15_rosterkey], cra15_ccadchart[cra15_providerkey])

 

 

I have created this measure in the cra_15ccadchart table.

 

The Error

BIBen_1-1623082214534.png

I believe this is saying that there is no unique value in CCADRoster that ncorresponds to the value being handed in by

 

 

cra15_ccadroster[cra15_rosterkey]

 

 

Of course, being a key balue, there are no repeated RosterKey values.

The Thanks

Thank you for your assistance in this matter. It is absolutely appreciated.

 

 

 
2 ACCEPTED SOLUTIONS


@BIBen wrote:

@amitchandak , ...

...I created this Measure:...


I believe it was intended you create 'Columns'.image.pngimage.png






Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

Proud to be a Super User!



View solution in original post

@ChrisMendoza,

I can't get mine to work like yours. One issue I uncovered is a data type mismatch. I addressed that with a FORMAT() function. Then, for some reason, I need a min(), too.

Here is the working solution:

Provider Name = 
LOOKUPVALUE(
    cra15_ccadroster[cra15_fullname], 
    cra15_ccadroster[cra15_rosterkey], FORMAT(min(cra15_ccadchart[cra15_providerkey]), "General Number")
)

If you could explain the reason I need a min() I would pre greatly appreciative and would award that with another solution.

 

Thank you for your help.

View solution in original post

5 REPLIES 5
BIBen
Helper I
Helper I

@amitchandak ,

In order to maintaina single source of truth for the roster, I'd like to create two new columns.

I tried swapping out my values for yours n your formulas, but got several errors, the first of which was "provide is not a function."

In the cra15_chart table, I created this Measure:

 

 

Provider Name = provide(Filter(cra15_roster, cra15_roster[cra15_rosterkey] = cra15_chart[cra15_providerkey]), cra15_roster[cra15_fullname])

 

 

 Would you please assist me through this next step?

amitchandak
Super User
Super User

@BIBen , Unless you want to name as new columns Join table. You need to have two copies of the Roster table. one join providerkey and other chartauditkey

 

Else create new columns

= provide(Filter(Roster,Roster[Rosterkey] = Join[ProvierKey] ), Roster[Roster name])

 

 

= provide(Filter(Roster,Roster[Rosterkey] = Join[chartauditkey ] ), Roster[Roster name])

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

@amitchandak ,

 

I am curious if you have had a chance to figure this out. I know we are very close!

As other people have seen you respond, I dont' think anyone else will touch this post.

 

Thank you again for your assistance.


@BIBen wrote:

@amitchandak , ...

...I created this Measure:...


I believe it was intended you create 'Columns'.image.pngimage.png






Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

Proud to be a Super User!



@ChrisMendoza,

I can't get mine to work like yours. One issue I uncovered is a data type mismatch. I addressed that with a FORMAT() function. Then, for some reason, I need a min(), too.

Here is the working solution:

Provider Name = 
LOOKUPVALUE(
    cra15_ccadroster[cra15_fullname], 
    cra15_ccadroster[cra15_rosterkey], FORMAT(min(cra15_ccadchart[cra15_providerkey]), "General Number")
)

If you could explain the reason I need a min() I would pre greatly appreciative and would award that with another solution.

 

Thank you for your help.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.