Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
LeboeufHarry
Helper I
Helper I

Reference guaranteed same order ?

Hello,

We have a Table fetching records from a Azure Synaps Database, the table has a added index in PowerQuery.

We need to CROSSJOIN in DAX the table, but as the table contains over 25 columns we would create a 2nd table that reference this one and then drop all columns that are not needed.

But when I use a reference i've noticed that the data is fetched twice from the Source (at least that's what fething the records shows).

Problem is that with a parralel server you have no guarantee that the records will be in the same order, so it might be that certain records have a different Index in the big table than in the reduced table.

Is this thought correct or does the 2nd table only starts when Table1 is build and starts on the PowerQuery data to continue ?

1 ACCEPTED SOLUTION
edhans
Super User
Super User

Not 100% sure of your question, but Power Query works bottom up, not top down. So if you have Query 1 that is referenced by Query 2 and 3, and 3 is referenced by 4 and 4 and 2 are loaded, PQ will start processing 2 and 4 and work backwards independently back to 1.

 

You can attempt to force the order not to change by wrapping the last statement in Query 1 with Table.Buffer() in my example. It will break any query folding



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

View solution in original post

1 REPLY 1
edhans
Super User
Super User

Not 100% sure of your question, but Power Query works bottom up, not top down. So if you have Query 1 that is referenced by Query 2 and 3, and 3 is referenced by 4 and 4 and 2 are loaded, PQ will start processing 2 and 4 and work backwards independently back to 1.

 

You can attempt to force the order not to change by wrapping the last statement in Query 1 with Table.Buffer() in my example. It will break any query folding



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors