Forum Discussion

Stryfe24's avatar
Stryfe24
Copper Contributor
Jun 06, 2023
Solved

Counting across a dynamic range

Hi all,   I have a power query spllitting out columns of data that is automatically fed into my worksheet via power automate from sharepoint. There are several areas I need to count the unique ent...
  • OliverScheurich's avatar
    OliverScheurich
    Jun 07, 2023

    Stryfe24 

    I work with the german version of Excel. Since it's not translated when you open the attached file i've highlighted the steps of the query in the screenshots.

     

    In order to append the tables follow this step.

    Then you can add ("Hinzuf.." in the screenshot) the tables and confirm with ok.

     

    Then select all columns - all columns are green / selected and the unpivot then columns as indicated.

     

    Then you can remove the column without the names. I have not made a screenshot fot this step. You can select the column and right-click with the mouse and choose remove.

     

    Then group the column with the names as shown in the screenshot. "Zeilen zählen" is count rows.

     

    If you want you can rename the column. Doubleclick in the header and enter a new column title. 

     

    The query works in my file.

     

Resources