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
vjnvinod
Impactful Individual
Impactful Individual

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?

 
1 ACCEPTED SOLUTION
Samarth_18
Community Champion
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 

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

View solution in original post

4 REPLIES 4
Samarth_18
Community Champion
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 

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

moizsherwani
Continued Contributor
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

Thanks,

Moiz
Was I able to answer your question? Mark my post as a solution to help others. Kudos if you liked the solution.
vjnvinod
Impactful Individual
Impactful Individual

I tried

something like below, but its throwing error

vjnvinod_0-1646290255496.png

 

@vjnvinod the solution provided by @Samarth_18 is what I would recommend too

Thanks,

Moiz
Was I able to answer your question? Mark my post as a solution to help others. Kudos if you liked the solution.

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.