Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Change x-axis when i change my filter

Hello everyone !

 

I got 2 filters in my bi :

- mois (month)

- BO (Place)

 

florian245_0-1688975121653.png

 

 

I would like to have 1 unical graph which displays :

- the number of PST (Npst is a value : see below on the histogram) by place (BO) when month is filtered

- the number of PST by month (mois) when BO is filtered.

 

The result is this but i would like to gather it on the same graph.

florian245_1-1688975284121.png

 

If someone has tips or solution i take 🙂

 

Thanks !!!

1 ACCEPTED SOLUTION

Hi , @Anonymous 

According to your description, you want to dynamicly change the x-axis in your visual by your slicer.

First of all, the current method of dynamically switching the X-axis dimension in Power BI is "Field parameter".

We can create the field parameter like this:

vyueyunzhmsft_0-1689143520217.pngvyueyunzhmsft_1-1689143533072.png

And then we can put the field on the viusal and we can use the slicer to change the x-axis:

vyueyunzhmsft_2-1689143588533.png

 

And for your second need , in my experience , just like the @Alf94  said, there seems no way to make the slicer selected when the other slicer selected.So , you need to first select the 'Parameter' slicer to select which dimension you want to see and then you can filter the [BO] and [miso] in your slicer !

 

For this , you can also refer to the document about "Field parameter":

Let report readers use field parameters to change visuals (preview) - Power BI | Microsoft Learn

What are Field Parameters in Power BI? | phData

 

 

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

 

Best Regards,

Aniya Zhang

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

 

 

 

View solution in original post

4 REPLIES 4
Alf94
Solution Supplier
Solution Supplier

Hi @Anonymous ,

 

You could create a hierarchy in your histogram. By default the higher level would be NPST by month, and when you drill down on a month you will see NPST by BO.

 

If I answered your question, please mark my post as a solution.

 

Best,

Anonymous
Not applicable

Yes i saw this but is it possible to automate it without clicking to move on to the second graph?

At first sight I think not, but maybe someone will have an idea to help you.

Hi , @Anonymous 

According to your description, you want to dynamicly change the x-axis in your visual by your slicer.

First of all, the current method of dynamically switching the X-axis dimension in Power BI is "Field parameter".

We can create the field parameter like this:

vyueyunzhmsft_0-1689143520217.pngvyueyunzhmsft_1-1689143533072.png

And then we can put the field on the viusal and we can use the slicer to change the x-axis:

vyueyunzhmsft_2-1689143588533.png

 

And for your second need , in my experience , just like the @Alf94  said, there seems no way to make the slicer selected when the other slicer selected.So , you need to first select the 'Parameter' slicer to select which dimension you want to see and then you can filter the [BO] and [miso] in your slicer !

 

For this , you can also refer to the document about "Field parameter":

Let report readers use field parameters to change visuals (preview) - Power BI | Microsoft Learn

What are Field Parameters in Power BI? | phData

 

 

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

 

Best Regards,

Aniya Zhang

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

 

 

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.