The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have 2 tables, the first table with the value of a product per store, and in the second the number of the first week of the year x month, and also the index.
Store | Product | Value |
1 | A | 1000 |
1 | B | 500 |
2 | A | 300 |
2 | B | 200 |
index | year | month | week |
1 | 2021 | 1 | 1 |
2 | 2021 | 2 | 5 |
3 | 2021 | 3 | 9 |
And I need to add these three columns to the first table, but only the one with index 1 as shown. How can I select a row by index?
Store | Product | Value | year | month | week |
1 | A | 1000 | 2021 | 1 | 1 |
1 | B | 500 | 2021 | 1 | 1 |
2 | A | 300 | 2021 | 1 | 1 |
2 | B | 200 | 2021 | 1 | 1 |
Solved! Go to Solution.
Hi @nicolasvc
Try to add 3 new columns with below codes:
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Hi @nicolasvc
Try to add 3 new columns with below codes:
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
User | Count |
---|---|
77 | |
76 | |
36 | |
31 | |
29 |
User | Count |
---|---|
93 | |
79 | |
57 | |
48 | |
48 |