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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.