Forum Discussion
Kumshan450
Helper III
6 years agoDAX function to replicate Excel Index Match and Count if Function
I have address data. I want to find whether certain keyword in address field matches with the list mentioned in the negative Area. I applied below formula in excel file: =IFERROR(INDEX(Sheet2!$C$2:...
- 6 years ago
Your DAX attempt is missing the PINCODE part.
I think this should work, but not sure it's the most efficient solution:
NegativeArea = CALCULATE(FIRSTNONBLANK(NegativeArea[Address],NegativeArea[Address]),FILTER (NegativeArea,CONTAINSSTRING(AddressData[Address],NegativeArea[Address]) && CONTAINSSTRING(AddressData[Address], NegativeArea[PINCode]))) - 6 years ago
Kumshan450
Helper III
6 years agoThe goal is to find whether my address data contains any Negative area with PINcode Keyword. This is used for analyzing total business and the number of loans booked in negative areas.
Yes, all addresses end with PIN code.
AllisonKennedy
Community Champion
6 years agoYour DAX attempt is missing the PINCODE part.
I think this should work, but not sure it's the most efficient solution:
NegativeArea = CALCULATE(
FIRSTNONBLANK(NegativeArea[Address],NegativeArea[Address]),
FILTER (
NegativeArea,
CONTAINSSTRING(AddressData[Address],NegativeArea[Address]) && CONTAINSSTRING(AddressData[Address], NegativeArea[PINCode])
))