Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hello community!
I have 3 table that are related to each other, always 1:n. The structure is like:
Table 1
Order Nr (Key) | Text | Text |
1 | ||
2 | ||
3 |
Table 2
Order Nr (Key) | Order Nr Level 2 (Key) | Text |
1 | 123 | dfg |
1 | 1273 | asd |
2 | 2352 | dsf |
Table 3
Order Nr Level 2 (Key) | Text 1 | Text 2 |
123 | OK_ | 1 |
123 | NOK_ | 1 |
1273 | OK_ | 1 |
Now I would like to add a calulcated column into talble 1 that counts how many rows are in Table 3, for the individual Order with the string "OK_"
Order Nr (Key) | Text | Text | Result Column |
1 | 2 | ||
2 | 0 | ||
3 | 0 |
How would you do that?
@tamerj1 : Yes, the tables are connected via the keys that are highlighted in the column header above
User | Count |
---|---|
57 | |
22 | |
21 | |
19 | |
16 |
User | Count |
---|---|
87 | |
87 | |
52 | |
37 | |
23 |