Forum Discussion
How to summarize data in multiple columns
I have 15 columns named [event1] through [event15]. In each column, the user selected an item from a dropdown (in the database). The list of items is exacly the same for every event. So, [event1] , [event4] and [event14] can all have "approved" selected. I need to find all instances of "approved" (and all the other options one at a time) counted up. Here is my desired outcome:
Sum columns [event1], [event2],[event3]...etc... WHERE the event = "Approved"
Sum columns [event1], [event2],[event3]...etc... WHERE the event = "Waiting"
Sum columns [event1], [event2],[event3]...etc... WHERE the event = "Done"
With the result of:
Approved = 10 (accross all 15 columns)
Waiting = 15
Done = 12
- Anonymous7 years ago
Hi Anonymous ,
Maybe you can consider to use unpivot columns feature to merge these fields, then you can simply use formula to summary multiple attribute fields based on condition
Unpivot Data Using Excel Power Query
Regards,
Xiaoxin Sheng
5 Replies
- AnonymousNot applicable
Hi Anonymous ,
Can you please provide some sample data with expected result to help us clarify your requirement?
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
- AnonymousNot applicable
Thank you. I added more information. I don't think I do very well explaining the set up. Basically, instead of being able to create instances of "phases" and being able to add as many phases as needed per document, the company has set up the database with 15 different "event" fields and lets the user fill in as many as are needed per document. It's fine I guess but it makes it really hard to sum up information like, "How many documents are in this particular phase at the moment?" because each "event" can be a different "phase". Does that help at all?
- AnonymousNot applicable
Hi Anonymous ,
Maybe you can consider to use unpivot columns feature to merge these fields, then you can simply use formula to summary multiple attribute fields based on condition
Unpivot Data Using Excel Power Query
Regards,
Xiaoxin Sheng