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,
I have what I think is a fairly straightforward question that I can't quite execute. I have criteria, in this case ingredient, that are shared across multiple items. I want to look up and return a value based on multiple criteria into another dataset.
So I have a dataset that has days worth of results with both Column A and Column C below. So the Ingredient 1 and Ingredient 2 info. I want to pull into that sheet the results from Column E "Output" below.
So when the info in my dataset equals "929062" and "926664" it returns 0.01. And then when it equals "929429" and "926664" it will return whatever is in column E "Output" even though the "92664" is shared between different values in Column A. In this case they're the same but typically they are different (if that helps).
Solved! Go to Solution.
Hi, @eburg
You can try the following methods.
Column =
IF (
[Ingredient 1] = 929062
&& [Ingredient 2] = 926664,
0.01,
IF (
[Ingredient 1] = 929429
&& [Ingredient 2] = 926664,
MAX ( 'Table'[Output] ),
BLANK ()
)
)
If the method I provided above can't solve your problem, what's your expected result? Could you please provide more details for it?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @eburg
You can try the following methods.
Column =
IF (
[Ingredient 1] = 929062
&& [Ingredient 2] = 926664,
0.01,
IF (
[Ingredient 1] = 929429
&& [Ingredient 2] = 926664,
MAX ( 'Table'[Output] ),
BLANK ()
)
)
If the method I provided above can't solve your problem, what's your expected result? Could you please provide more details for it?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @eburg
Try this to add a new column:
Column=
IF([Ingredient 1]=929062&&[Ingredient 2]=926664,0.01,[Output])
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
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 |
---|---|
47 | |
26 | |
19 | |
14 | |
10 |
User | Count |
---|---|
58 | |
50 | |
44 | |
19 | |
18 |