Forum Discussion

EaglesTony's avatar
EaglesTony
Post Prodigy
2 years ago
Solved

How do I get a grand total in PowerQuery M

Hi,     I have this table   ID      TotalNumberofItems 1       5 2       2 3       4   What I need is a grand total, something like   ID    TotalNumberofItems    Grand Total 1      5     ...
  • Syk's avatar
    2 years ago

    Duplicate your table > Highlight the column you want to get the grand total from > Transform > Statistics > Sum

    Rename 'Table (2)' into something more useful like 'Grand_Total'

    Go back to original table > Add Column > Custom Column > enter in whatever you just named the grand total

     

    All done!