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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

Thank you . It is working now .

View solution in original post

2 REPLIES 2
v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Thank you . It is working now .

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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