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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
frankhofmans
Helper IV
Helper IV

Dynamic date filter in graph

hi all,

 

i have a dashboard with a lot of bar graphs with the date (from a date table with day, week, month, quarter, year) on the X-axis and value on the Y-axis. You can switch from year to quarter to month with the arrow up and arrow down symbol on each bar graph, but then the user has to switch it in every bar graph. Is there way to create a measure based on a filter, where the user can select fe Year, Quarter, Month or Week, and that the x-axis of all graphs on that page switch to this selected value?

 

Thanks in advance,

 

Regards, Frank

1 ACCEPTED SOLUTION
Uzi2019
Super User
Super User

Hi @frankhofmans 

I implemented same fo my client usinf field parameter. please follow these steps:
Step1: Go to modeling tab > select field option

Uzi2019_0-1710937495012.png

 

step2 : give Parameter name to X Axis > Drag and drop year, month qtr, date from right side to the left side.

Uzi2019_1-1710937582838.png

Click create.


Step3: New slicer is added on page.

Uzi2019_2-1710937664308.png

 

steps4:  take your X axis value in Line chart X Axis.

Uzi2019_3-1710937725274.png


step5: change slicer format  to tiles. and if dont want any hierarchy change it to single select.


Uzi2019_4-1710937806297.png

 

I hope this would work for you.

 

 




Don't forget to give thumbs up and accept this as a solution if it helped you!!!

View solution in original post

3 REPLIES 3
Uzi2019
Super User
Super User

Hi @frankhofmans 

I implemented same fo my client usinf field parameter. please follow these steps:
Step1: Go to modeling tab > select field option

Uzi2019_0-1710937495012.png

 

step2 : give Parameter name to X Axis > Drag and drop year, month qtr, date from right side to the left side.

Uzi2019_1-1710937582838.png

Click create.


Step3: New slicer is added on page.

Uzi2019_2-1710937664308.png

 

steps4:  take your X axis value in Line chart X Axis.

Uzi2019_3-1710937725274.png


step5: change slicer format  to tiles. and if dont want any hierarchy change it to single select.


Uzi2019_4-1710937806297.png

 

I hope this would work for you.

 

 




Don't forget to give thumbs up and accept this as a solution if it helped you!!!
_AAndrade
Super User
Super User

Hi,

You can create a field parameter and use it on the x-axis and on a slicer and it will work like you want.
Take a look at this linkedin post:https://www.linkedin.com/feed/update/urn:li:activity:7053624375098433538/
Is something like this that you're looking for?





Did I answer your question? Mark my post as a solution! Kudos are welcome.

Proud to be a Super User!




Idrissshatila
Super User
Super User

Hello @frankhofmans ,

 

you can create a 2 field parameters one for x-axis and one for y-axis and apply their values on all the visuals, thus when a field is selected then it will apply to all.

 

check how to do field parameters

https://learn.microsoft.com/en-us/power-bi/create-reports/power-bi-field-parameters

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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