Forum Discussion
How to group fields
- 7 years ago
hi, Anonymous
After my research, I'm afraid it couldn't achieve that have a slicer with three columns as you want on your original data structure in Power BI for now. You may try to use three slicers like this:
Also, if you want them in one slicer, you may try to use this way:
In Edit Queries, select accessibility, booking, experience then click Transform-> Unpivot columns
then drag field Attribute and Values into slicer like this
By the way, This method will turn your this data table three times as large.
and here is demo pbix, please try it.
Best Regards,
Lin
That's a good idea but I need the heading of the field to show on the drop down list. The slicer only shows the values of the fields, whereas I need the header.
Any thoughts?
Thanks
Sara
hi, Anonymous
The slicer only shows the values of the fields, whereas I need the header.
Do want to just select the header that like select "year" then show all year, but in power bi, when you don't select any value in slicer, it will like select all, show all values. It doesn't make sense.
If I get it wrong, Can you explain to me according to the sample data and expected output?
Best Regards,
Lin
- v-lili6-msft7 years agoCommunity Support
hi, Anonymous
After my research, I'm afraid it couldn't achieve that have a slicer with three columns as you want on your original data structure in Power BI for now. You may try to use three slicers like this:
Also, if you want them in one slicer, you may try to use this way:
In Edit Queries, select accessibility, booking, experience then click Transform-> Unpivot columns
then drag field Attribute and Values into slicer like this
By the way, This method will turn your this data table three times as large.
and here is demo pbix, please try it.
Best Regards,
Lin
- affan7 years agoSolution SageHi Anonymous
Do you want to show or hide the whole column based on the filter selection or the values? - Anonymous7 years agoNot applicable
Hi Lin,
If you look at the fields these are:
- accessibility
- booking
- experience
I want to show these in the dashboard, so people can select whether to see comment for each of the topics. So, I'd like to have a slicer with the following:
- accessibility
- Positive
- Negative
- booking
- Positive
- Negative
- experience
- Positive
- Negative
Does that make sense?
- Anonymous7 years agoNot applicable
Hi Affan,
If you look at the fields these are:
- accessibility
- booking
- experience
I want to show these in the dashboard, so people can select whether to see comment for each of the topics. So, I'd like to have a slicer with the following:
- accessibility
- Positive
- Negative
- booking
- Positive
- Negative
- experience
- Positive
- Negative
Does that make sense?
- Anonymous7 years agoNot applicableThank you Lin!
I'll try it tomorrow when I get back to work and share results :)
Regards
Sara - v-lili6-msft7 years agoCommunity Support
hi, Anonymous
Could you please tell me if your problem has been solved? If it is, could you please mark the helpful replies as Answered?
Best Regards,
Lin
- Anonymous7 years agoNot applicable
Hi there,
It is definitely a good way around it, although I don't think it's gonna work for me as I have 20 different attributes with multiple entries for each, so I feel the data set gets simply too long.
But I'll marke the solution as such
Thanks,
Sara