Forum Discussion
Dynamically change xaxis time interval
Hello wise people, relative PBI beginner here.
I've set a MTD/QTD/YTD slicer to drive all my data in various tables on the page per this method:
Trying to now apply that slicer time interval to xaxis of a line chart on the page, i.e. xaxis shows 1 month, 3 months or YTD range depending on slicer selection. Feel like I'm almost there but can't get it. Can I somehow use the same "switch measure" method as for my tables, or do I need to maybe use parameters? Thanks for any help.
RedLectroid ,Not very clear
You can use field parameters or an independent table approach
Power BI Field Parameters — A Quick way for Dynamic Visuals: https://amitchandak.medium.com/power-bi-field-parameters-a-quick-way-for-dynamic-visuals-fc4095ae9afd
Power BI Field Parameters- Measure Slicer and Axis/Dimension slicer: https://youtu.be/lqF3Wa1FllE
Switch TOPN with Field Parameters: https://amitchandak.medium.com/switch-topn-with-field-parameters-299a0ae3725fNeed of an Independent Date Table:https://www.youtube.com/watch?v=44fGGmg9fHI
The information you have provided is not making the problem clear to me. Can you please explain with an example.
Appreciate your Kudos.
1 Reply
- amitchandakSuper User
RedLectroid ,Not very clear
You can use field parameters or an independent table approach
Power BI Field Parameters — A Quick way for Dynamic Visuals: https://amitchandak.medium.com/power-bi-field-parameters-a-quick-way-for-dynamic-visuals-fc4095ae9afd
Power BI Field Parameters- Measure Slicer and Axis/Dimension slicer: https://youtu.be/lqF3Wa1FllE
Switch TOPN with Field Parameters: https://amitchandak.medium.com/switch-topn-with-field-parameters-299a0ae3725fNeed of an Independent Date Table:https://www.youtube.com/watch?v=44fGGmg9fHI
The information you have provided is not making the problem clear to me. Can you please explain with an example.
Appreciate your Kudos.