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,
Hope someone can help me with the following.
I have 2 tables, see below.
I want to have a measure for table 1 which gives me the stock for each partnumber_sup from table 2.
As a joint is not advisable (the partnumber_sup gives a many to many relation and I have many other partnumbers in the same tables), I need some help.
Thanks!
table 1
warehouse | partnumber_sup |
0 | 003065J |
100 | 003065J |
204 | 003065J |
208 | 003065J |
212 | 003065J |
214 | 003065J |
216 | 003065J |
222 | 003065J |
224 | 003065J |
table 2
warehouse | partnumber_sup | stock |
0 | 003065J | 2 |
204 | 003065J | 1 |
208 | 003065J | 3 |
212 | 003065J | 0 |
214 | 003065J | 1 |
216 | 003065J | 3 |
222 | 003065J | 2 |
224 | 003065J | 1 |
417 | 003065J | 0 |
Solved! Go to Solution.
Hi @jwi1
try like a
Measure =
var _currentPartnumber = MAX(Table1[partnumber_sup])
RETURN
CALCULATE(DISTINCTCOUNT(Table2[stock]), FILTER(ALL(Table2), Table2[partnumber_sup] = _currentPartnumber) )
Hi @az38 , Thanks for yor quick reply.
Decided to use the advise from Greg, the LOOKUPVALUE function.
Will try your advise later.
have a good weekend, John
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 |
---|---|
110 | |
99 | |
80 | |
64 | |
57 |
User | Count |
---|---|
145 | |
110 | |
91 | |
84 | |
66 |