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.
Long time scroller, first time poster.
I have two tables related by order number. Table1 orders have no duplicates, and table2 orders have as many duplicates as there are items on the order. I want to create a calculated column in Table1 that populates a value based on the existence of a certain item in Table2.
In the example below, Calc_Column says Yes if Table2[Order] has Item x.
Table1 Table2
Order Calc_Column Order Item
1 Yes 1 x
2 No 2 a
3 Yes 3 b
4 No 3 x
5 Yes 3 z
6 No 4 a
5 a
5 x
6 b
Thanks everyone!
Solved! Go to Solution.
The calculated column would be like this.
Calc_Column =
IF (
ISBLANK ( CALCULATE ( COUNTROWS ( Table2 ), Table2[Item] = "x" ) ),
"No",
"Yes"
)
This worked beautifully. Thank you.
The calculated column would be like this.
Calc_Column =
IF (
ISBLANK ( CALCULATE ( COUNTROWS ( Table2 ), Table2[Item] = "x" ) ),
"No",
"Yes"
)
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 |
---|---|
97 | |
96 | |
82 | |
74 | |
66 |
User | Count |
---|---|
121 | |
105 | |
102 | |
82 | |
72 |