Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have a very useful excel formula I use to check if a Company ID exists in another sheet with a value of "Yes", and if so, to return "Yes", but if not, to return "No". How can I create this exact same calculation in DAX?
The objective is to check if there is a Company ID, AND that the "Response" column is "Yes", because there can be multiple CompanyID. Both tables are in Power Pivot, if that helps.
=IF(COUNTIFS(Vendor_List, [@[Company_ID]], Email_List, "Yes")>0,"Yes","No")
Company_Table:
Company_ID | Response of Yes? |
123 | =IF(COUNTIFS(Vendor_List, [@[Company_ID]], Email_List, "Yes")>0,"Yes","No") |
124 | =IF(COUNTIFS(Vendor_List, [@[Company_ID]], Email_List, "Yes")>0,"Yes","No") |
Email_Table:
Company_ID | Response | |
123@aol.com | 123 | No |
123@aol.com | 123 | Yes |
124@aol.com | 124 | No |
124@aol.com | 124 | No |
124@aol.com | 124 | Yes |
@analyst31233 CO-CU Excel to DAX Translation - Microsoft Power BI Community
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
22 | |
10 | |
10 | |
9 | |
7 |