Forum Discussion

Matjo's avatar
Matjo
Advocate I
8 years ago
Solved

Transform multiple queries at once

Hi, 

I have 60 queries for different tables. I want to apply the function Table.FirstN to all of them. 
I tried selecting all and using the function Keep Rows but it only affected one query. 

Is there an easy way to add an additional step to all of the queries that keeps the first 100 rows.

Best regards,
Mattias

6 Replies

    • Anonymous's avatar
      Anonymous
      Not applicable

      Thanks ImkeF this is great. Is there a way to output the db-tables to different tables in power query? i.e. having one pquery query per db table

      • ImkeF's avatar
        ImkeF
        Community Champion

        Not with this additional transformation, unfortunatly.

        The only way to create one query per table is through the steps via the manual UI where you click each table and one query will be created for each of them.