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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Jedahn
Frequent Visitor

Dax Formula

Hello PowerBI Community,

 

So I have two datasource in excel. First is the "Target" table which contains the names of the customers that the employees need to call. Second is the "Actual" table that contains all calls made by the employees to their customers. I want to know is if they called their target customers it will return a unique count as 1, if not then 0. 
I'm using this excel function when I want to have a result mentioned above.
=IFERROR(XLOOKUP(C2,'Target Table'!G:G,'Target Table'!I:I),0)

Thank you very much,

4 REPLIES 4
BrianConnelly
Resolver III
Resolver III

I would probably start with the lookup function and add rules as needed...

LOOKUPVALUE(
    <result_columnName>,
    <search_columnName>,
    <search_value>
    [, <search2_columnName>, <search2_value>]…
    [, <alternateResult>]
)
FreemanZ
Super User
Super User

hi @Jedahn 

please provide your sample data tables, it is easier for all. 

Hello. I was trying to but i can't find it. Where can i find the attach file button?

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.