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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ranggafirmansya
Regular Visitor

lookup value from table

Hello,
I am new to this forum and fairly new to Power BI


I am trying to lookup value from table service with a coloumn id_operation. relation of both table is coloumn vincode.

how to lookup value with category id_operation values "1" in coloumn data ?

Following is a table :

 

Untitled.pngUntitled2.png

 

please help for my case.

thanks.

1 ACCEPTED SOLUTION
v-lili6-msft
Community Support
Community Support

 

Hi@ ranggafirmansya 

When you add a column, It returns values must be one.

You need to add another condition:

SERVICE[ID_OPERATION]=1

data = LOOKUPVALUE(SERVICE[date],SERVICE[VINCODE],CUSTOMER[VINCODE],SERVICE[ID_OPERATION],1)

Result:

3.png4.png

 

Best Regards,

Lin

 

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-lili6-msft
Community Support
Community Support

 

Hi@ ranggafirmansya 

When you add a column, It returns values must be one.

You need to add another condition:

SERVICE[ID_OPERATION]=1

data = LOOKUPVALUE(SERVICE[date],SERVICE[VINCODE],CUSTOMER[VINCODE],SERVICE[ID_OPERATION],1)

Result:

3.png4.png

 

Best Regards,

Lin

 

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

thanks for your answer Mr. Lin Smiley Very Happy

mmace1
Impactful Individual
Impactful Individual

LOOKUPVALUE is the function you probably want. 

 

I think it's easiest to just start typing data = LOOKUPVALUE(  and follow the tooltips, but in the end you will use something like this: 

 

Data =LOOKUPVALUE(Service[ID_OPERATION],Service[VinCode],WhateverThisTableNameIs[Vincode])

 

 

 

 

 

I have tried according to your suggestion, but I found the following error:

 

data2.png

 

what's the solution ?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.