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.
Table 1 | |||
ID | Parent ID | Month | Year |
1_1_2018 | 1 | 1 | 2018 |
2_1_2018 | 2 | 1 | 2018 |
2_2_2018 | 2 | 2 | 2018 |
2_3_2018 | 2 | 3 | 2018 |
2_4_2018 | 2 | 4 | 2018 |
Table 2 | |||
ID | Parent ID | Month | Year |
3_1_2018 | 3 | 1 | 2018 |
2_4_2018 | 2 | 4 | 2018 |
2_5_2018 | 2 | 5 | 2018 |
2_6_2018 | 2 | 6 | 2018 |
2_7_2018 | 2 | 7 | 2018 |
Result | |||
ID | Parent ID | Month | Year |
1_1_2018 | 1 | 1 | 2018 |
2_1_2018 | 2 | 1 | 2018 |
2_2_2018 | 2 | 2 | 2018 |
2_3_2018 | 2 | 3 | 2018 |
2_4_2018 | 2 | 4 | 2018 |
2_4_2018 | 2 | 4 | 2018 |
2_5_2018 | 2 | 5 | 2018 |
2_6_2018 | 2 | 6 | 2018 |
2_7_2018 | 2 | 7 | 2018 |
Solved! Go to Solution.
Hi @Anonymous,
New a calculated table with DAX.
Table3 = UNION ( Table1, FILTER ( Table2, LOOKUPVALUE ( Table1[Parent ID], Table1[Parent ID], Table2[Parent ID] ) <> BLANK () ) )
Best regards,
Yuliana Gu
Hi @Anonymous,
New a calculated table with DAX.
Table3 = UNION ( Table1, FILTER ( Table2, LOOKUPVALUE ( Table1[Parent ID], Table1[Parent ID], Table2[Parent ID] ) <> BLANK () ) )
Best regards,
Yuliana Gu
Thank you so much @v-yulgu-msft. This works well!
To others reading this, i got another suggestion as well that also works:
Res= UNION (test1; filter(test2; test2[ParentID] IN DISTINCT(test1[ParentID])))
Cheers
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 |
---|---|
113 | |
100 | |
78 | |
76 | |
52 |
User | Count |
---|---|
144 | |
109 | |
108 | |
88 | |
61 |