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
nuhasan
Helper IV
Helper IV

Lookup same value

Hi all,

 

Want to ask your opinion, how can I get the same value of "Next Inspection Date" into the 3rd row since the "Production Batch" are same.

 

I already try lookupvalue method: lookupvalue(next inspection date,production batch,production batch) but it show error.

 

nuhasan_0-1649668633867.png

 

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

Hi @nuhasan ,

According to your description, here's my solution.

1.Right-click the table, select Copy.

vkalyjmsft_0-1649904370193.png

2.Right-click in empty space in the Queries area, select Paste.

vkalyjmsft_1-1649904409144.png

3.In the new table, in Next inspection date column, select Remove Empty.

vkalyjmsft_2-1649904687047.png

4. Click Production Batch and Next inspection date columns at the same time (Ctrl+click), right-click and select Remove Duplicates.

vkalyjmsft_3-1649904824396.png

5.Select Table, then click Merge Queries.

vkalyjmsft_4-1649905045710.png

Set it like this:

vkalyjmsft_5-1649905126936.png

6.Expand the new column and only select Next inspector date.

vkalyjmsft_6-1649905184977.png

7.Get this table.

vkalyjmsft_7-1649905286256.png

Then remove the Next inspector date column and rename the Table(2).Next inspector date, get the expected result.

vkalyjmsft_8-1649905369509.png

I attach the sample below for reference.

 

Best Regards,
Community Support Team _ kalyj

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

2 REPLIES 2
v-yanjiang-msft
Community Support
Community Support

Hi @nuhasan ,

According to your description, here's my solution.

1.Right-click the table, select Copy.

vkalyjmsft_0-1649904370193.png

2.Right-click in empty space in the Queries area, select Paste.

vkalyjmsft_1-1649904409144.png

3.In the new table, in Next inspection date column, select Remove Empty.

vkalyjmsft_2-1649904687047.png

4. Click Production Batch and Next inspection date columns at the same time (Ctrl+click), right-click and select Remove Duplicates.

vkalyjmsft_3-1649904824396.png

5.Select Table, then click Merge Queries.

vkalyjmsft_4-1649905045710.png

Set it like this:

vkalyjmsft_5-1649905126936.png

6.Expand the new column and only select Next inspector date.

vkalyjmsft_6-1649905184977.png

7.Get this table.

vkalyjmsft_7-1649905286256.png

Then remove the Next inspector date column and rename the Table(2).Next inspector date, get the expected result.

vkalyjmsft_8-1649905369509.png

I attach the sample below for reference.

 

Best Regards,
Community Support Team _ kalyj

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

Hi @v-yanjiang-msft ,

 

Thank you for your solution. It solved my issue.

 

Regards,

Nuha

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.

Top Solution Authors
Top Kudoed Authors