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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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