Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
=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 |
Hi,
This calculated column formula works
Column = if(CALCULATE(COUNTROWS(Company),FILTER(Email,Email[Company_ID]=EARLIER(Company[Company_ID])&&Email[Response]="Yes"))>0,"Yes","No")
Hope this helps.
is this what you want?
Column =
IF(MAXX(FILTER(Email,'Email'[Company_ID]='Table (2)'[Company ID]&&'Email'[Response]="Yes"),'Email'[Response])="","No","Yes")
pls see the attachment below
Proud to be a Super User!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
99 | |
83 | |
70 | |
61 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |