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.
Hello Community - This is a new thread for the same topic. Previously I was trying a different formula, but ultimately I think SWITCH might be better as I have two variable that I need to check (different columns, but same table).
First, I need to check if the Product Code fits a certain criteria. Second, I need to check if the ITEM description contains (anywhere) the text "-1".
This formula below only works if I do not include the IN statements. All I get returned is "NA". Just trying to figure out how to include the IN statment, or some other formula that gets to the result below.
The goal would be to return this result, if the row item met the criteria.
Product Code Item SKU Type
CODE123 AB-23-45-1-X Standard SKUs
Solved! Go to Solution.
@Anonymous ,
Try to use Search or Find DAX:
have you checked your data? i have run this on some test data and your code works fine, maybe your data doesn't support your condition?
see attached
Proud to be a Super User!
@Anonymous ,
Try to use Search or Find DAX:
@Tahreem24 Thanks Tahreem, but I am getting the following error:
The search Text provided to function 'SEARCH' could not be found in the given text
@Anonymous ,
There is a simplied version of DAX. I've created same sample like you and also attached the screen shot below with DAX and expected output.
Hope it may help you.
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 |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |