Forum Discussion

vjnvinod's avatar
vjnvinod
Impactful Individual
4 years ago
Solved

Dax help

Hi,

 

I have 2 tables

GDS TNR data

Portfolio FY22

 

I am using the below dax to get the name from TNR data,

 

Name modified = LOOKUPVALUE('Portfolio report FY22'[Engagement Partner],'Portfolio report FY22'[Engagement ID],'GDS TNR Data'[EngID],"")
 

But in TNR Data I have a column called "Visible data, which has the value (True, False)

before the above function does a Lookup, it needs to filter the data which is "True" using the Visible Data column

 

and the tables are not connected as well

 

How to achieve this?

 
  • Hi vjnvinod ,

     

    You can try like this:-

    Column =
    CALCULATE (
        MAX ( 'Portfolio report FY22'[Engagement Partner] ),
        FILTER (
            'Portfolio report FY22',
            'Portfolio report FY22'[Engagement ID] = 'GDS TNR Data'[EngID]
                && 'GDS TNR Data'[EngID] = TRUE()
        )
    )
    

    If its not worked then please share the sample data with expected output 🙂

     

    Thanks,

    Samarth 

4 Replies

  • Samarth_18's avatar
    Samarth_18
    Community Champion

    Hi vjnvinod ,

     

    You can try like this:-

    Column =
    CALCULATE (
        MAX ( 'Portfolio report FY22'[Engagement Partner] ),
        FILTER (
            'Portfolio report FY22',
            'Portfolio report FY22'[Engagement ID] = 'GDS TNR Data'[EngID]
                && 'GDS TNR Data'[EngID] = TRUE()
        )
    )
    

    If its not worked then please share the sample data with expected output 🙂

     

    Thanks,

    Samarth 

  • vjnvinod's avatar
    vjnvinod
    Impactful Individual

    I tried

    something like below, but its throwing error

     

  • moizsherwani's avatar
    moizsherwani
    Continued Contributor

    vjnvinod if you are getting the name from the GDS TNR Data can you please tell me why you have the "Result ColunmName" which is the first parameter of the LOOKUPVALUE function "Engagement Partner" from the "Portflolio FY22 Table? From the formula is seems like you are looking up data from Portfolio FY22 and pulling it into the GDS TNR Data table