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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
amien
Helper IV
Helper IV

map field from other table without having a relation, multiple hits and default value if not found

product

value

1

155

2

160

3

170

4

100

product

code

1

A

1

B

2

C

3

D

 

As you can see. Where product = 1, there are two results and where product = 4 there is not hit.

 

I would like to have this result:

 

product

value

code

1

155

A

2

160

C

3

170

D

4

100

Unknown

 

Is it possible to create the code field in the first table within the Query editor?

 

 

1 REPLY 1
ChrisMendoza
Resident Rockstar
Resident Rockstar

Seems to be a duplicate of https://community.powerbi.com/t5/Desktop/Is-it-possible-to-map-field-values-and-return-only-1-result.... See response and attachment.






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!



Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Fabric Monthly Update - May 2024

Check out the May 2024 Fabric update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.