cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
QS7
Frequent Visitor

LOOKUPVALUE - Check if Column A value exist in Column B

Hi,
I'm trying to create a new DAX measure in which I need to check for each row of my table if the value from column A exists in column B.

If it exists, then True or a value should be returned else an empty field should be returned.
Currently i have this dax formula :

 

IF(
    NOT ISBLANK(
        (   
            CALCULATE(
                LOOKUPVALUE(
                    'Sales'[ID_Ref],
                    'Sales'[ID_Ref],
                    VALUES('Sales'[ID_Ticket])
                ) 
            )
        )
    ),"Yes","No")

 

 As long as i'm filtering on one ticket the measure is working, but if i extend the filter on multiple tickets i have this error : 

"A table of multiple values was supplied where a single value was expected". 

Thank you for help.

1 REPLY 1
Anonymous
Not applicable

Helpful resources

Announcements
Power BI Show Episode 10 Recap

The Power BI Community Show

Watch the playback when Amit Chandak, a Power BI Super User, demos how to use Field Parameters to make reports more dynamic.

Power BI Dev Camp Session 26

New Date - Check it Out!

Mark your calendars and join us on Thursday, October 6 at 11a PDT for a great session with Ted Pattison!

Health and Life Sciences Power BI User Group

Health and Life Sciences Power BI User Group

Power BI specialists at Microsoft have created a community user group where customers in the provider, payor, pharma, health solutions, and life science industries can collaborate.

Ignite 2022

What's Next at Microsoft Ignite 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Top Solution Authors
Top Kudoed Authors