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
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

@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
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.