Hi
Have a table where I want to show the percentage that a value of the row is of the total for a field on the row.
The attached workbook shows clearly the final result I want from the Query.
Thank You
Kind Regards
Allister
Hi
Have a table where I want to show the percentage that a value of the row is of the total for a field on the row.
The attached workbook shows clearly the final result I want from the Query.
Thank You
Kind Regards
Allister
Hi,
Is this what you are looking for?
- Loaded your table as a source in the power query.
- Reordered columns according to your request.
- 1st grouping stage is to group by Employee and sum all values.
- 2nd stage, is to add the sum of Total For Employee.
- 3rd stage, is to collect all rows, Sum By Employee By Dept.
- Expand Sum By Employee By Dept column (Dept., and Value).
- Reorder and rename columns.
- Add a new column to do the divide.
- Finally load the result to the Excel table, and adjust the cell format to %
Last edited by MohamedGadAllah; 03-01-2024 at 04:13 AM. Reason: Adding steps
Thank,
Mohamed GadAllah
Administrative Note:
Where you have provided a workbook solution, please also include a clear explanation of what you've done and how (including formulae/code as approriate) in the post in question (for the benefit of members unable to download attachments).
This is about making your assistance accessible to all.
Thanks.
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
NB: as a Moderator, I never accept friendship requests.
Forum Rules (updated August 2023): please read them here.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks