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
Anonymous
Not applicable

Help with Lookup values and filling in blanks in dataset

I am newer to Power Bi and I need help with on how to look up a value and if it exist in the dataset take a value and from that row and copy it into a blank value. For the example below i am trying to look up a material number that wasn't entered in that row however i have the document number of all line items and the Material number is the same for that document number. So i just want to lookup that document number and take the Material number and copy it to the blank spot that is missing a material number.  

 

eddie_arambula_0-1644438849925.png

 

1 ACCEPTED SOLUTION

Hi @Anonymous ,

 

I use group by and remove duplication to get MR_ NUM of each DOC_NUM in the copy table, and then use the merge query.

Please refer to the sample pbix.

Vlianlmsft_0-1644997200777.png

 

Best Regards,
Liang
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

5 REPLIES 5
Anonymous
Not applicable

Hello,

try this button

 

Morizot_0-1644440412178.png

 

Anonymous
Not applicable

The issue with using this option is it may fill incorrectly, there may not be another line item under that document number and if that's the case i need it to stay blank. I should have mentioned that in the post. 

Hi @Anonymous ,


The issue with using this option is it may fill incorrectly, there may not be another line item under that document number and if that's the case i need it to stay blank. I should have mentioned that in the post. 


Sorry, could you describe this in more detail.show a picture to make us more clear what you expect.

 

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

Anonymous
Not applicable

I was able to do this in excel using the formula below in the screen shot. However the auto fill does not always work, for example if you see the 2nd screen shot below you can see that sometimes a document number does not have an "MR number" assigned. If this is the case we need to leave it blank or this can cause errors in calucations . As you can see that document number 90058336 does not have an MR_Number anywhere so it would be blank but document number 90058322 has a blank so we need to assign it the same MR_Number that appears with with this document number from another "item of document". excelformula.pngpowerbiMrnumber.png

Hi @Anonymous ,

 

I use group by and remove duplication to get MR_ NUM of each DOC_NUM in the copy table, and then use the merge query.

Please refer to the sample pbix.

Vlianlmsft_0-1644997200777.png

 

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

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors