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

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

Reply
Ranju
Regular Visitor

Dynamic chart X values based on slicer.

Hi Team,

I am very new to the Power BI work. Here we have a new requiremnt from client side.

The X values of chart should be change based on the below slicer date . That is when ever day selected then the X axis should be display as 1 ,2 ,3  to 31  and same for 4 weeks or one month. If the months selected 2 to 6 months then the x axis should display as weeks and above 6 months in slicer then the x axis should be months. 

  • Day – Show Days
  • Week – Show Days
  • Month – Show Days
  • 2-6 Months – Show Weeks
  • 6 + Months – Show MonthsPlease let me know if you have did same kind of implementation.

Ranju.

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Hi @Ranju ,

 

You can refer to following blog to know how to create a dynamic attribute slicer to achieve your requirement:
Dynamic Attributes In A Power BI Report

 

Regards,

Xiaoxin Sheng

View solution in original post

Thank you . It is working now .

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Ranju ,

 

You can refer to following blog to know how to create a dynamic attribute slicer to achieve your requirement:
Dynamic Attributes In A Power BI Report

 

Regards,

Xiaoxin Sheng

Thank you . It is working now .

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.