Forum Discussion

D92's avatar
D92
Frequent Visitor
4 years ago

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

  • 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]
    
    ))
      • ryan_mayu's avatar
        ryan_mayu
        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