Forum Discussion
aswiniharidas19
6 years agoNew Member
Create table based on value from existing table using power query
Hi All,
I have two tables.
Table A:
| Date | Name | Value |
| 27-07-2020 | AP | 123 |
| 27-07-2020 | AS | 456 |
| 27-07-20220 | SK | 345 |
| 26-07-2020 | AP | 789 |
| 26-07-2020 | SK | 320 |
| 25-07-2020 | AS | 145 |
Table B:
| Name |
| AP |
| AS |
| SK |
I want my output table as below:
| Date | Name | Value |
| 27-07-2020 | AP | 123 |
| 27-07-2020 | AS | 456 |
| 27-07-20220 | SK | 345 |
| 26-07-2020 | AP | 789 |
| 26-07-2020 | SK | 320 |
| 26-07-2020 | AS | 0 |
| 25-07-2020 | AS | 145 |
| 25-07-2020 | AP | 0 |
| 25-07-2020 | SK | 0 |
How to achive this in power query ?
Thanks,
Aswini
Please see the attached solution that will return the below result
Best Regards,
Mariusz
If this post helps, then please consider Accepting it as the solution.
Please feel free to connect with me.
LinkedIn
2 Replies
- aswiniharidas19New Member
Hi Mariusz,
Thank you for the solution. This is what exactly I was looking....