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.
Good night
They could help me with the next problem
I want to find the values in the quantity column of table 2 and bring them only once to table 1, so the key is repeated.
""RESULT =LOOKUPVALUE (TABLE2[QUANTITY],TABLE2[SKU],TABLE1[SKU])""
TABLA1 | ||
SKU | Product | RESULT |
1234a | A1 | 10 |
1234a | A1 | - |
1234a | A1 | - |
5555c | B1 | 20 |
6666b | B2 | 30 |
7777d | B3 | 40 |
TABLA2 | |
SKU | Quantity |
1234a | 10 |
5555c | 20 |
6666b | 30 |
7777d | 40 |
Here's what it delivers
TABLA1 | ||
SKU | Product | RESULT |
1234a | A1 | 10 |
1234a | A1 | 10 |
1234a | A1 | 10 |
5555c | B1 | 20 |
6666b | B2 | 30 |
7777d | B3 | 40 |
Solved! Go to Solution.
Hi @DADAZA1032 ,
Sorry for my missunderstanding, here I updated my reply.
1.Add an index column group by [Product] in Power Query. You can refer to the detailed steps:
How to create group index with Power Query or R - (example in Power BI) (datacornering.com)
And pay attention to convert the index column to number type.
2.Create a calculated column to get the results in Desktop.
RESULT = IF([Index]=1,RELATED(Table2[Quantity]))
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @DADAZA1032 ,
Sorry for my missunderstanding, here I updated my reply.
1.Add an index column group by [Product] in Power Query. You can refer to the detailed steps:
How to create group index with Power Query or R - (example in Power BI) (datacornering.com)
And pay attention to convert the index column to number type.
2.Create a calculated column to get the results in Desktop.
RESULT = IF([Index]=1,RELATED(Table2[Quantity]))
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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 | |
99 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
88 | |
63 |