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.
Hi guys,
i have these tables:
Inventory 1:
Item number | Quantity | ... |
1022 | 10 | ... |
2022 | 20 | ... |
3033 | 30 | ... |
Inventory 2:
Item number | Quantity | ... |
1022 | 10 | ... |
2022 | 20 | ... |
1111 | 30 | ... |
I need a column that shows me wheater 'Inventory 2'[Item number] contains the Item numbers of 'Inventory 1'[Item number] or not.
So for example like a new column in Inventory 1:
Inventory 1:
Item number | Quantity | Comparison |
1022 | 10 | true ( exists also in Inventory 2) |
2022 | 20 | true |
3033 | 30 | false |
All item numbers are strings.
Any solutions for this?
Thank you 🙂
Solved! Go to Solution.
you can use LOOKUPVALUE that Greg suggested or you can also try this
Column = if(MAXX(FILTER('inventory2',inventory2[itmenumber]=inventory1[itemnumber]),inventory2[qty])=inventory1[qty],"True","False")
Proud to be a Super User!
you can use LOOKUPVALUE that Greg suggested or you can also try this
Column = if(MAXX(FILTER('inventory2',inventory2[itmenumber]=inventory1[itemnumber]),inventory2[qty])=inventory1[qty],"True","False")
Proud to be a Super User!
@iiomarioii - In general, use LOOKUPVALUE. You can also use techniques such explained here: https://community.powerbi.com/t5/Quick-Measures-Gallery/Lookup-Min-Max/m-p/985814#M434 and here: https://community.powerbi.com/t5/Quick-Measures-Gallery/LOOKUPVALUE-Range/m-p/974201#M430
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 | |
60 |
User | Count |
---|---|
150 | |
115 | |
104 | |
89 | |
65 |