Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Dynamic X-axis

Hi,

 

I have a simple dataset with two attributes:

  1. date
  2. number of transactions

 

I would like to have a bar chart with 'number of transactions' on Y-axis and 'date' on X-axis.
I need a slicer with three options:

  1. years - when selecting this it will show my data in years. So the X-axis only shows years.
  2. 13 months - when selecting this it will show the data of the last 13 months. The X-axis show year and month
  3. 31 days - when selecting this it will show the data of the last 31 days. The X-axis shows month and daynumber

I have been breaking my head in thinking, also in field parameters, but don't know how to do it.

Is there someone that can help me, give me a direction or is there a blog or youtube video that explains something like this in detail?

Thanks
Ron

  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi Anonymous ,

     

    Consider designing three visuals, using bookmarks to switch their visibility and visual filters.

    Output:

    Please check the pbix file.

     

    Best Regards,
    Gao

    Community Support Team

     

    If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

    How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

4 Replies