Forum

How to add a new qu...
 
Notifications
Clear all

How to add a new query for each cell of a column

6 Posts
2 Users
0 Reactions
141 Views
(@mgbsher)
Posts: 35
Trusted Member
Topic starter
 

Hi,

After finishing all steps, I want to create a new query for each cell in a column, like the following image:

Eachcell-to-new-query-2023-03-14-09-13-53.png

2023-03-14-09-26-21.png

How to add a new query for each cell of a column instead of creating the query manually using the right click and command Add as New Query?

For the current example, I want to create 12 new queries, so imagine if it is 20 or 100, I hope if there is a way to do it in one step.

Thanks 🙂

 
 
Posted : 15/03/2023 3:25 am
Philip Treacy
(@philipt)
Posts: 1629
Member Admin
 

Hi MGB,

I don't understand what you are trying to do.  Maybe if you actually explain what your desired end result is - and supply a file with that example - I'd understand what you want.

I don't get why you want/need to create a query for each cell in the column.  This doesn't sound like an efficient way to achieve a result.  What are you trying to do with each cell?

The images you supplied are too small for me to see - please supply your file.

Regards

Phil

 
Posted : 16/03/2023 7:48 pm
(@mgbsher)
Posts: 35
Trusted Member
Topic starter
 

Thanks a lot, @PhilipTreacy for your valuable time helping me.

I am sorry that I did not realize that my thread had a reply, please accept my apology for the late response as you and other staff and members here are extremely helpful.

The original issue or story was in this thread here:

https://www.myonlinetraininghub.com/excel-forum/power-query/importing-multiple-tables-from-multiple-excel-files

If you do not have time to explore it, these are the files you thankfully asked for.

I can make a quick video of the steps I've followed.

Thanks a lot for your valuable help.

 
Posted : 27/03/2023 7:57 am
(@mgbsher)
Posts: 35
Trusted Member
Topic starter
 

Hi,

Here is the video for detailed steps I've followed.

Also, the power bi file is attached.

Please, if your time allows to watch the video and play it at high speed as it turned out to be 13:49 minutes (I am sorry).

https://www.youtube.com/watch?v=S9JzoT3btLE

Also, please, may you tell me if there is anything wrong I am doing?

Or if there are any steps I've done that are not required.

The idea for the original post regarding creating a new query or referencing a new query for records on a table or a cell in a column was to save some steps and time.

Because when I read about the records in several places I thought that I may make use of record functions and consider a cell in a column as a record and then create or reference the records all at once for a column.

These are the links I've read:

https://ssbi-blog.de/blog/technical-topics-english/records-in-power-query-how-when-and-why/

https://learn.microsoft.com/en-us/powerquery-m/record-functions

Thanks a lot for your valuable time reading my thread and helping me.

 
Posted : 28/03/2023 5:58 am
(@mgbsher)
Posts: 35
Trusted Member
Topic starter
 

Hi,

I hope you or any other member may help me.

Thanks,

Mohamed

 
Posted : 31/03/2023 9:53 pm
Philip Treacy
(@philipt)
Posts: 1629
Member Admin
 

Hi Mohamed,

I watched the whole video and I think what you want to do is find a quick way of duplicating a query?

In the video you right click the query and then reference it.  To make things quicker, you can create a new query that references the first one.  Then click on the new referencing query and just use CTRL+C and CTRL+V top copy/paste a new copy.

Also, to rename a column or query, double click it and then type the new name.

Regards

Phil

 
Posted : 14/04/2023 6:34 am
Share: