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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
D92
Frequent Visitor

Lookup Value from another Table

Hi Guys,

 

New to the forum and I would  really appreciate some help.

I have two data source , with different values, of of the data source contains calculated column to return the values from the second data source .For the sake of simplicity will call them A and B.Including sample data.

Table A Sample 

SoftwareManufacturerVulnerable Manufacturer Found Vulnerable Software found URL
biosdevnameOthers   
kpartxOthers   
libXtstOthers   
hwdataOthers   

Table B sample 

Entry IDManufacturerSoftwareVersionTypePlatformDate 
https://vuldb.com/?id.207465TOTOLINKempty4.1.2cu.5182_B20201026emptyempty08-29-09:20
https://vuldb.com/?id.207464TOTOLINKempty4.1.2cu.5185_B20201128emptyempty08-29-09:20
https://vuldb.com/?id.207463TOTOLINKempty4.1.2cu.5182_B20201027emptyempty08-29-09:20


Vulnerable Software Found and Vulnerable Manufacturer found , are calculated column , which return value from Table B respectively using the following formula :

 

 

 

MAXX (
    FILTER ( vuldb_id_report_no_version, SEARCH ( vuldb_id_report_no_version[Software], bov_software[Software], 1, 0 ) > 0 ),
    [Software] 
)

 

 

 

What i would like to achieve is return the value in the URL column , based on if vulnerable manufacturer or vulnerable software is true.

 

 

IF (ISBLANK(bov_software[Vulnerable Manufacturer Found] && bov_software[Vulnerable Software found] ),
MINX(
 FILTER ( vuldb_id_report_no_version, SEARCH ( vuldb_id_report_no_version[URL], 1, 0 ) > 0 ),
 [URL]

))

 

 

Your help is greatly appreciated

13 REPLIES 13
ryan_mayu
Super User
Super User

@D92 

maybe you can try this

 

IF (ISBLANK(bov_software[Vulnerable Manufacturer Found])) || isblank( bov_software[Vulnerable Software found] )),
MINX(
 FILTER ( vuldb_id_report_no_version, SEARCH ( vuldb_id_report_no_version[URL], 1, 0 ) > 0 ),
 [URL]

))




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




D92
Frequent Visitor

@ryan_mayu  

Thank you for the suggestion that did not work.

@D92 

I checked your sample data

1.PNG2.PNG3.PNG

we don't have the sample value for table A and table B, how can we create the relationship or get value from table B to table A?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




D92
Frequent Visitor

@ryan_mayu , can the data be extracted from table B to Table A if a value in the calculated columns exist ?

sry, i found a typo error in my last reply. We don't have same value in table A and table B. So I don't think we can get the value for last three colsumn in the first row of your sample data.

 

I think we can get from table B to table A by using the calculated value. could you pls provide update sample data or explain the detailed logics?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




could you pls provide the new sample data and the expected output?

based on the sample data you provided, i can't get the result since we can't use software to find the related info in table B





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




D92
Frequent Visitor

@ryan_mayu my post are getting deleted when I try to paste the sample.

I would like to have the calculated column in Table A URL , obtain the information from Table B Entry ID  only if value in Vulnerable Software Found or Vulnerable Manufacturer Found is populated.

Example from the expected outcome.

SoftwareManufacturerVulnerable Manufacturer Found Vulnerable Software FoundURL
Microsoft SilverlightMicrosoft CorporationMicrosoft SilverlightMicrosoft Corporationhttps://vuldb.com/?id.207623 

pls try if lookupvalue works for you

LOOKUPVALUE function (DAX) - DAX | Microsoft Docs

LOOKUPVALUE(
TableB[URL],
TableB [vunlerable manufacuturer Found].
TableA [vunlerable manufacuturer Found].
TableB [Vulnerable Souftware Found].

Table A[[Vulnerable Souftware Found])





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




D92
Frequent Visitor

@ryan_mayu 

 

Not sure if this was your suggestion , here is what i have tried which did not return any value.

 

URL = 
LOOKUPVALUE(vuldb_id_report_no_version[URL],
vuldb_id_report_no_version[Manufacturer],bov_software[Vulnerable Manufacturer Found],vuldb_id_report_no_version[Software],bov_software[Vulnerable Software found]
)

 

Table A Sample

SoftwareManufacturerVulnerable Manufacturer Found Vulnerable Software FoundURL
Microsoft SilverlightMicrosoft Corporation   
Realtek High Definition Audio DriverRealtek Semiconductor Corp.   
Update for Windows 10 for x64-based Systems (KB4023057)Microsoft Corporation   
Microsoft Update Health ToolsMicrosoft Corporation   
Grammarly for WindowsOthers   
Microsoft Azure Information ProtectionMicrosoft Corporation   
Microsoft Visual C++ 2008 Redistributable - x86 9.0.30729.4974Microsoft Corporation   
Microsoft SQL Server 2008 R2 Management ObjectsMicrosoft Corporation   
Enterprise CommunicatorCA   
GNOME CORBA ORB and component frameworkOracle Corporation   
Xmanager 6NetSarang Computer, Inc.   
JDK 8.0 64-bit Runtime Env. (1.8.0_311)Oracle America, Inc   
Microsoft EdgeMicrosoft Corporation   
Nessus Agent (x64)Tenable, Inc.   
Oracle - OraClient19Home1Others   
Oracle - OraClient11g 11.2.0Others   

 Table B sample 

 

Entry IDManufacturerSoftwareVersionTypePlatformDate
https://vuldb.com/?id.207464TOTOLINKempty4.1.2cu.5185_B20201128emptyempty08-29-09:20
https://vuldb.com/?id.207463TOTOLINKempty4.1.2cu.5182_B20201027emptyempty08-29-09:20
https://vuldb.com/?id.207462TOTOLINKempty4.3.0cu.7647_B20210106emptyempty08-29-09:20
https://vuldb.com/?id.207461TOTOLINKempty4.1.2cu.5204_B20210112emptyempty08-29-09:20
https://vuldb.com/?id.207460TOTOLINKempty4.1.2cu.5137_B20200730emptyempty08-29-09:21
https://vuldb.com/?id.207459TOTOLINKempty4.1.5cu.532_B20210610emptyempty08-29-09:21

@D92 

let's clarify the logic

This is the first row of table A

Software Manufacturer Vulnerable Manufacturer Found  Vulnerable Software Found URL
Microsoft Silverlight Microsoft Corporation

 

 

 

How do you want to get the value for the last 3 columns from Table B?

 

in my opinion, based on the sample data you provided, we can't get the expected output below.

 

Software Manufacturer Vulnerable Manufacturer Found  Vulnerable Software Found URL
Microsoft Silverlight Microsoft Corporation Microsoft Silverlight Microsoft Corporation https://vuldb.com/?id.207623 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




D92
Frequent Visitor

@ryan_mayu 

 

Table A contains calculated values for Vulnerable software found and Vulnerable Manufacturer Found based on the following formula :

MAXX (
    FILTER ( vuldb_id_report_no_version, SEARCH ( vuldb_id_report_no_version[Software], bov_software[Software], 1, 0 ) > 0 ),
    [Software] 
)

 Therefore they are calculated values which are filtered from Table B and A.

What I want to achieve is if they are populated and not blank , get the Entry ID from table B and insert it in Table A .Hope this makes it more clear now.

 

Tried the bellow formula with no success.

URL = IF(NOT(ISBLANK(bov_software[Vulnerable Manufacturer Found] || bov_software[Vulnerable Software found])),
FILTER(vuldb_id_report_no_version,SEARCH(vuldb_id_report_no_version[URL],vuldb_id_report_no_version[URL]))

)

 

i tried your DAX and it returns null.

maybe you can try the pbix file attached or you can provide your pbix file based on the sample data.

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




D92
Frequent Visitor

@ryan_mayu 

I tried the proposed soluting however , the URL column didnt return a value. I was unable to upload the pbix file unfortunetly.

D92_0-1662126061766.png

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.