Forum Discussion
Filter a map by year range
Hello everyone.
I have a file with data organized by year ranges. For example: number of parties per city in a range of years (2020-2025, 2026-2030). How can I show on a map the number of parties of each city in each range of years?
I tried to place a slicer with each range of years, but I get the data of each city and it is not filtered by range of years.
Thank you very much for your collaboration.
Regards
Anonymous the best is to unpivot your data:
transform data -> select first 3 columns -> right click -> Unpivot other columns
it will give you two new columns attribute and value, rename as you see fit, attribute will be your years.
close and apply
and now you can use the attribute column for the slicer and visualize the data the way you want.
✨ Follow us on LinkedIn and to our YouTube channel
Learn about conditional formatting at Microsoft Reactor
My latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.
2 Replies
- parry2kSuper User
Anonymous the best is to unpivot your data:
transform data -> select first 3 columns -> right click -> Unpivot other columns
it will give you two new columns attribute and value, rename as you see fit, attribute will be your years.
close and apply
and now you can use the attribute column for the slicer and visualize the data the way you want.
✨ Follow us on LinkedIn and to our YouTube channel
Learn about conditional formatting at Microsoft Reactor
My latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.
- AnonymousNot applicable
parry2k Thank you so much!