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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

How to Lookup Value From 2 different tables into 1 single column

I have a full sets of (overall) sum value from quote - Table A

I have full sets of line item value from quote - Table B, (currently empty)

 

Is there any measure or custom conditional collumn or DAX code that I can lookup value in Table B from Table A, by using quote number?

It is a little unusual, but the idea behind was to reduce the number of datasets from source file.

 

Which means after lookup, the visual result will be in 1 combined table.

 

Shown below screenshot.

 

LookUp Value to Combine table.jpg

5 REPLIES 5
SivaMani
Resident Rockstar
Resident Rockstar

Please do have a look at the below link,

 

https://msdn.microsoft.com/en-us/query-bi/dax/lookupvalue-function-dax

 

This function will help you.

vanessafvg
Super User
Super User

@Anonymous why dont you merge them in power query?  or append creating 2 separate columns, create a conditional column to combine them and then remove the other columns?





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Anonymous
Not applicable

Hi @vanessafvg @SivaMani,

 

I tried both approach, but it don't seemed to work.

I can share the PBIX file, but please allow me to remove all the confidential information first.

 

The merge queries duplicates all the final model pricing and does not shows sum pricing of all the line item when visualed on table.

LookupValue can only be exact match, my quote# is a running number.

 

Seems like the simplest way is to import more datasets.

@Anonymous feel free to send it to me





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Sure

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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