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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
roma
Advocate II
Advocate II

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
v-diye-msft
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.

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?

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.
amitchandak
Super User
Super User

@roma , refer

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

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@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

 

 
 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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