Forum Discussion
make slicer for multiple columns with binary data structure?
hi, I have columns that correspond to a region coded like below, and would like a slicer that would have this structure
Filter by region:
Northeast
Midwest
South
West
National
Other/Not specified
How would I go about doing this if the values are true/false?
| Northeast | Midwest | South | West | National | Other/Not specified |
| FALSE | FALSE | FALSE | FALSE | FALSE | TRUE |
| FALSE | FALSE | FALSE | FALSE | FALSE | TRUE |
| TRUE | FALSE | TRUE | FALSE | FALSE | FALSE |
| FALSE | TRUE | TRUE | TRUE | FALSE | FALSE |
| FALSE | FALSE | FALSE | FALSE | TRUE | FALSE |
| FALSE | TRUE | FALSE | TRUE | FALSE | FALSE |
- Anonymous4 years ago
I figured out that I just needed to unpivot the columns https://support.microsoft.com/en-us/office/unpivot-columns-power-query-0f7bad4b-9ea1-49c1-9d95-f588221c7098
4 Replies
- amitchandakSuper User
Anonymous , the second table should have some columns in the row. seems incomplete
- AnonymousNot applicable
Hello, I just have this one table as an example:
Northeast Midwest South West National Other/Not specified FALSE FALSE FALSE FALSE FALSE TRUE FALSE FALSE FALSE FALSE FALSE TRUE TRUE FALSE TRUE FALSE FALSE FALSE FALSE TRUE TRUE TRUE FALSE FALSE FALSE FALSE FALSE FALSE TRUE FALSE FALSE TRUE FALSE TRUE FALSE FALSE
- v-yanjiang-msftCommunity Support
Hi Anonymous ,
Sorry I'm not very clear about your expected result, do you want to get a table contains all the above column names?
Then filter the columns by the column name slicer?
Best Regards,
Community Support Team _ kalyj - AnonymousNot applicable
I figured out that I just needed to unpivot the columns https://support.microsoft.com/en-us/office/unpivot-columns-power-query-0f7bad4b-9ea1-49c1-9d95-f588221c7098