Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi,
I have an employee database which consists information about his department, project name, Location from where he is working, number of hours worked in particular month(January, February, March....). I want to create a slicer for the months section where by just selecting the month, I would come to know how many hours an employee has worked in that month. But the main issue comes when I try to drag the data to "Field" section it allows me to add only one column(i.e. only April or May or June...). Can anyone help me with creating a slicer? Below is the sample data set.
I want to create a slicer(Output) like
Solved! Go to Solution.
The data sample you provided is already in a Pivot or Matrix layout. If you highlight ONLY your months columns when in Query Editor in Power BI. you can choose 'Unpivot Columns' under the 'Transform' tab. This will turn you data into something closer to my 2nd screen shot below.
Once you have the data in a Data Detail Level format, you can now easily choose 'Attribute' (or whatever you choose to rename this column after the un-pivot) as a slicer.
Thank You,
FOrrest
(Data in Pivot or Matrix format)
(Data Un-Pivoted in Raw Detail Level)
(Now you can create a slicer like normal.)
Proud to give back to the community!
Thank You!
Hi @fhill Your solution worked on this case since data set was months. In my problome i have category like Country, Job Title and not the months. Can you help me solve my issue. I have posted here my issue:
https://community.powerbi.com/t5/Desktop/Slicer-by-columns-name/m-p/472373/highlight/true#M219544
THanks in advance
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
65 | |
63 | |
52 | |
37 | |
36 |
User | Count |
---|---|
82 | |
66 | |
61 | |
46 | |
45 |