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
Jigar1276
Helper I
Helper I

Change x axis from month-year to dates based on selection of date slicer

Hi,

 

I have a bar graph and date slicer as follow:

Jigar1276_0-1635317027663.png

 

I also have calander table from which Slicer field is coming and relationship is set between "Calls" table and calander table:

Jigar1276_2-1635317144652.png

 

I want to change the x axis of my bar graph based on selection in slicer as follow:

Jigar1276_3-1635317427987.png

if selection is "Years" or "Years (Calender) then x axis should have month-year as lable.

if selection is any other ("Days", "Weeks", "Months" etc.) then x axis should have date as lable. 

 

How can I achive this with just one graph and one slicer?

 

Thanks in advance.

1 REPLY 1
amitchandak
Super User
Super User

@Jigar1276 , change of axis is possible using bookmarks. Which I doubt can fit in this case.

 

Also unpivot column, might not help help

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.