Forum Discussion

NewtoPQ25's avatar
NewtoPQ25
New Member
6 months ago
Solved

Powe query repeating merge and name handling

Here is my task. I have created a calendar table then want to 1. merge with a only selected column a time from a number of large data set. 2. I already loaded each data set a query and have standard ...
  • BA_Pete's avatar
    6 months ago

    Hi NewtoPQ25 ,

     

    If, when you refer to 'new queries' and 'new query names' you mean the actual Power Query queries i.e. tables/table queries, then I don't think you're going to be able to do what you want to do here. As far as I'm aware, M code in Power Query CAN NOT spawn new table queries dynamically, nor can it edit table query objects, such as renaming them etc. M code works only within the query to which it relates, it can not perform actions outside of that query (within the scope of your request, anyway).

     

    What (I think) you're describing is some sort of robotic process automation task which, though technically feasible I guess, certainly would not be something I'd be aiming at Excel or Power BI Desktop query editors to be honest.

     

    ...or, if I've completely misunderstood that bit, then probably the merge operation in List.Accumulate? If so, I'll leave it to jgeddes . They're a pro and they were also here first 🙂

     

    Pete