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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Milan
Frequent Visitor

Prepare data for analyzing

Hello community, 

 

i have issue with preparing data for analyzing combination of them.

 

I have excel/csv table with 1 column and approximately 1500 rows. And would like to make table with two columns. It will be combination of all options. Thats 1500x1500 = 2 250 000 rows.

 

I make simple example with 3 rows, thats mean 9 combinations. 

 

I think so the best way to do that is in Power Query.


Does anybody have any idea how to do that?

 

Thanks for your help and time

 

Milan

 

 

Power Query prepare data.png

2 ACCEPTED SOLUTIONS
m13eam
Resolver III
Resolver III

Hi - yes, that is possible in PowerQuery:

 

  • Load your Excel file containing the 1500 rows into PowerQuery
  • At the end of that query, add a "Custom Column"
  • Enter a formula, referencing the previous step. For example, if the previous step in the query was "Changed Type", you would enter: 

 

 

= #"Changed Type"​

 

 

See my example, where my previous step was "Renamed Columns":m13eam_2-1666349966147.png

  • Expand the new column and you should now have all the combinations in a 2 column table!m13eam_3-1666350196077.png

     

I hope that helps. Let me know if any steps were unclear.

 

If this solved the issue, please mark my post as a solution.

 

Thanks!

View solution in original post

Yep. This is what MS documentation suggests too.

https://learn.microsoft.com/en-us/power-query/cross-join

 

@Milan Just FYI, this type of transformation is called a "cross join" or a "Cartesian product" of a table/list with itself.

View solution in original post

3 REPLIES 3
Milan
Frequent Visitor

Hello, guys. Thanks for your help.

m13eam
Resolver III
Resolver III

Hi - yes, that is possible in PowerQuery:

 

  • Load your Excel file containing the 1500 rows into PowerQuery
  • At the end of that query, add a "Custom Column"
  • Enter a formula, referencing the previous step. For example, if the previous step in the query was "Changed Type", you would enter: 

 

 

= #"Changed Type"​

 

 

See my example, where my previous step was "Renamed Columns":m13eam_2-1666349966147.png

  • Expand the new column and you should now have all the combinations in a 2 column table!m13eam_3-1666350196077.png

     

I hope that helps. Let me know if any steps were unclear.

 

If this solved the issue, please mark my post as a solution.

 

Thanks!

Yep. This is what MS documentation suggests too.

https://learn.microsoft.com/en-us/power-query/cross-join

 

@Milan Just FYI, this type of transformation is called a "cross join" or a "Cartesian product" of a table/list with itself.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

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
Top Kudoed Authors