This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowThe Fabric community is upgrading! Read all of the details including the timeline and what you can expect. Learn more
Hello,
I want merge two query in Power Query. For that i have two same query. The query are sorted by UniqueNumer and Time and was grouped whit a Index. So far so good.
After merging, the index has shifted and no longer matches the sort order. Thus also wrong results are delivered.
| UniqueNumber | Time | Step | Index | Index - 1 | --> Merge | My favorite Solution |
| 12 | 10:02 | A | 1 | 0 | B | |
| 12 | 10:14 | B | 2 | 1 | C | |
| 12 | 10:26 | C | 3 | 2 | D | |
| 12 | 10:38 | D | 4 | 3 | ||
| 18 | 18:04 | A | 1 | 0 | B | |
| 18 | 18:23 | B | 2 | 1 | C | |
| 18 | 18:42 | C | 3 | 2 | D | |
| 18 | 19:01 | D | 4 | 3 |
Does anyone know this problem and can help me? Thanks in advance!
Simon
the Problem is solved. So this question is answered.
Greetings Simon
Thx for the respons. I have creat a new Power BI whit only two query from excel. This functionality whitout problems. But my Story basicly on a Azure Platform. Is this posibly a Problem?
Hi @Simon_Br ,
Just add a full table index before merging.
Then after merging, sort your table according to the full table index
is it possible to share the pbix file with the sample data?
or
can you share the struture for both of the tables
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.