Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
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
Solved! Go to Solution.
Hi @Flammie ,
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
Hi @Flammie ,
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
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?
Hi @Flammie ,
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
@v-shex-msft wrote:Hi @Flammie ,
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
I actually was able to do the Unpivot in Power Bi. It works like a charm! Thank you so much!
That is EXACTLY what I needed! Thank you so much!
User | Count |
---|---|
141 | |
113 | |
104 | |
78 | |
64 |
User | Count |
---|---|
136 | |
125 | |
107 | |
70 | |
61 |