Hello,
Didn't find anything via the search function...
I'm running a query with the following source code:
let Quelle = Latest_Tickets, #"Gefilterte Zeilen" = Table.SelectRows(Quelle, each ([Status] = "In Process")), #"Gruppierte Zeilen" = Table.Group(#"Gefilterte Zeilen", {"Ticket Type", "Processor"}, {{"Latest_Ticket_By_Type_By_Processor", each Table.RowCount(_), type number}}), #"Zusammenführte Abfragen" = Table.NestedJoin(#"Gruppierte Zeilen", {"Ticket Type"}, Order_Ticket_Type, {"Type"}, "Order_Ticket_Type", JoinKind.LeftOuter), #"Erweiterte Order_Ticket_Type" = Table.ExpandTableColumn(#"Zusammenführte Abfragen", "Order_Ticket_Type", {"Reihenfolge"}, {"Order_Ticket_Type.Reihenfolge"}), #"Sortierte Zeilen" = Table.Sort(#"Erweiterte Order_Ticket_Type",{{"Order_Ticket_Type.Reihenfolge", Order.Ascending}}) in #"Sortierte Zeilen"
Within the marked code, the values change in the table. I don't konw how to describe it better:
Value at "Zusammengeführte Abfragen"
Value at "Erweiterte Order..."
Would anybody have an idea why this occurs?!
Solved! Go to Solution.
Hi @_n_MarianLein ,
there is no native sort order in Power Query and the joins do often reorder the rows.
If you want to keep a sort order from the original load, you have to add an Index-column right at the beginning after which you can sort later on, once PQ has changed the row.
But make sure to buffer the sort, as the sort order might not be kept otherwise: https://community.powerbi.com/t5/Community-Blog/Bug-warning-for-Table-Sort-and-removing-duplicates-i...
Imke Feldmann (The BIccountant)
If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!
How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries
Hi @_n_MarianLein ,
there is no native sort order in Power Query and the joins do often reorder the rows.
If you want to keep a sort order from the original load, you have to add an Index-column right at the beginning after which you can sort later on, once PQ has changed the row.
But make sure to buffer the sort, as the sort order might not be kept otherwise: https://community.powerbi.com/t5/Community-Blog/Bug-warning-for-Table-Sort-and-removing-duplicates-i...
Imke Feldmann (The BIccountant)
If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!
How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries
thank you this also helped me!
Hi @_n_MarianLein ,
Let me suggest that you reach out to @ImkeF who is a genius with queries!
Let me know if you have any questions.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel
Proud to be a Super User!
Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!
User | Count |
---|---|
119 | |
75 | |
66 | |
51 | |
49 |
User | Count |
---|---|
180 | |
96 | |
79 | |
77 | |
74 |