Fabric is Generally Available. Browse Fabric Presentations. Work
towards your Fabric certification with the Cloud Skills Challenge.
I need to combine data from two tables.
Table A looks like this where Index Start and Index Stop map to Index in Table B.
Table B looks like this. The Index column lists only the values that span from Index Start to Index Stop for the records in Table A. The last index number is 62.
I want to combine these data to look like this.
The total record count in this example would be 52.
This is all in an effort to use PBI to read a structured report of user configurations (xlsx) and re-organize the data.
The data source looks like this.
Go to Solution.
Hi @Anonymous ,
I think you can add a custom column in Table A by this code in Power Query Editor.
[Index End] = null
Then expand Index in Table A.
And then merge Table A and Table B by Index columns.
For reference: merge-queries-overview
Best Regards,Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
View solution in original post
You will need to pivot table A to then join to table B, so the results look like this:
I have seen this done in Power Query, but my Google-Foo failed me for an example.
Your biggest challenge will be getting the right # of records to fill in for table A.
After you get the right num of columns, go to 'column by example' to figure it out how to fill in the missing values for the index.
Power BI- Column From Example. In this article, we learn about the… | by Vaishali Goilkar | Medium
I hope this helps. Good luck.
Check out the November 2023 Power BI update to learn about new features.
130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.