Forum Discussion
Combine Multiple Fields in a Slicer
Hello,
I am quite to Power BI. Consider the below Excel where we have 4 employees and their monthly/weekly work status. I am trying to create a dashboard as seen in the second image. I have a problem with the entries where a person is working on multiple projects in a week.
I took the Projects column and split it based on a comma delimiter in Power BI. Now, I need all 4 projects (number of projects may vary) to reflect as a single list in a slicer to control all other graphs.
Please also suggest if there is a better way to get Projects worked on inputs from users in the Excel or perhaps a better data format to manage weekly and monthly reports.
| Employee | Work Hours | Leave Hours | Week Number | Projects | Project Hours |
| John | 34 | 8 | 1 | Project A, Project B | 20+14 |
| Derek | 42 | 0 | 1 | Project C | 42 |
| Michael | 42 | 0 | 1 | Project B, Project C | 30+12 |
| William | 42 | 0 | 1 | Project C, Project D | 20+22 |
| John | 42 | 0 | 2 | Project D | 42 |
| Derek | 34 | 8 | 2 | Project A, ProjectB | 30+4 |
| Michael | 42 | 0 | 2 | Project B, Project C | 20+22 |
| William | 42 | 0 | 2 | Project A, Project B, Project C, Project D | 10+10+10+10+2 |
| John | 42 | 0 | 3 | Project C, Project D | 30+12 |
| Derek | 42 | 0 | 3 | Project B, Project C, Project D | 10+10+22 |
| Michael | 26 | 16 | 3 | Project D | 26 |
| William | 42 | 0 | 3 | Project D | 42 |
| John | 42 | 0 | 4 | Project A, ProjectB | 30+12 |
| Derek | 34 | 8 | 4 | Project C, Project D | 20+14 |
| Michael | 42 | 0 | 4 | Project D | 42 |
| William | 42 | 0 | 4 | Project B, Project C | 20+22 |
10 Replies
- AnonymousNot applicable
Nobody wants to manually create your data set and play with it. Please supply ready-to-copy data. Thanks.
- AnonymousNot applicable
Added, thanks
- AnonymousNot applicable
OK, what does it mean that a person has worked 42 hours on this "Project A, Project B, Project C, Project D"? How do you want to allocate 42 hours to the individual projects? If there are no weights assigned to the projects, then the only sensible allocation is just a simple division of the hours among all the projects. Right?