Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Hi,
I need help to fetch the results displayed in Table2 from Table1. Please suggest a query that matches the below conditions and update the data in Value_ column in Table2
Conditions:
Table1 | Table 2 | ||||
ID | Stage | Value | ID | Value_ | |
11206290 | SD | 1 | 11206290 | ||
11206290 | PD:SD | 2 | 20113299 | 4 | |
11206290 | SD | 3 | 20063390 | 5 | |
20113299 | SD | 1 | 20085555 | ||
20113299 | PD:SD | 2 | 20229876 | 6 | |
20113299 | SD | 3 | |||
20113299 | CC | 4 | |||
20063390 | CC | 1 | |||
20063390 | PD:SD | 2 | |||
20063390 | SD | 3 | |||
20063390 | SD | 4 | |||
20063390 | CC | 5 | |||
20085555 | SD | 1 | |||
20085555 | CC | 2 | |||
20229876 | SD | 1 | |||
20229876 | PD:SD | 2 | |||
20229876 | SD | 3 | |||
20229876 | PD:SD | 4 | |||
20229876 | SD | 5 | |||
20229876 | CC | 6 | |||
20229876 | CC | 7 |
Hi @Joe_adb
I have a doubt , how did you judge the value for “20063390” and “20229876” ? From the data you provided, the values are not in order . In this case, what is the logic to get the value ?
Best Regard
Community Support Team _ Ailsa Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Alisa,
Thanks for looking into this query. The "Value" column in Table1 is actually the ID group index number. Value for “20063390” and “20229876” was returned as 5 & 6 as it matches the below condition mentioned in the question.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
6 | |
4 | |
3 | |
3 |
User | Count |
---|---|
13 | |
11 | |
8 | |
8 | |
8 |