Forum Discussion

wenners68's avatar
wenners68
Helper II
2 years ago
Solved

Static X-axis in stacked column chart

Hi,

I have a measure that calculates the Top 5 countries for a selected year. It works fine if I use a table or matrix, but I want to use it in a column chart. Is there a way to be able dynamically get the label in the X-axis to change when I filter the data?
If I was to select 2022, the table would show Japan at the top and the USA in 3rd place, but column chart will only change the total value, whereas I want those labels to change as well. 

 

 

6 Replies

  • Hi wenners68 

    The question is unclear, the graph and table, are using the same logic...

    Please share some dummy pbix to work with and more details about the problem ...

      • Ritaf1983's avatar
        Ritaf1983
        Super User

        Hi wenners68 

        It sounds like you are using a static top n functionality.
        Take a look at the linked tutorial about dynamic way :

        https://www.youtube.com/watch?v=vnqLb-IqLeQ

        it should help.

        If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.