cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

Dynamic change axis with the slicer value

Hi Team,

 

I have a requirement where I have 2 date slicer as start date and end date.

In the graph I want to dynamically change X-axis of the graph based on the selected start and end date.

Please let me know the solution for this. 

5 REPLIES 5
Highlighted
Super User IV
Super User IV

@roma , refer

Dynamically change chart axis in Power BI
https://www.youtube.com/watch?v=6jeSIRpjv0M



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

Highlighted

@amitchandak 

 

 

 

So in this example the Xaxis should dynamically change as Jan Feb Mar Apr "May-FCT Jun-FCT Jul-FCT  Aug-FCT " Sep Oct Nov Dec(because slicer has startdate month as may and enddate month as aug)

 

Thus whichever month falls under those selection of startdate and enddate , those month should be concatenated as "FCT" rest should be as it is

 

 
 
Highlighted
Community Support
Community Support

Hi @roma 

 

I'd suggest you use one slicer to select the date range :

00.PNG

Then add the calculated column as X-axis:

Column = FORMAT([Date].[Month],"MMM")&"-"&"FCT"

Final outputs:

01.PNG

Pbix attached.

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
Highlighted

Hi @v-diye-msft ,

 

Actually the requirement is that, All the months should be there in x-axis and only those months which falls under the selected slicer months should be as "monthname-FCT".

Is there any way to achieve this?

Highlighted

Hi @roma 

 

Sorry for the late reply, it's not achievable as far as I know.

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Community Conference

Microsoft Power Platform Communities

Check out the Winners!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors