Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

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...
  • parry2k's avatar
    4 years ago

    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.