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
Anonymous
Not applicable

Auto Scroll Bar Chart in power BI

Hello community

I have a bar graph that I want to scroll through the x-axis automatically and fence showing the values that make up the graph

 

Example: 

Imagenes.PNG

 

I want the scroll bar to move automatically from left to right and at the end of the variables return to the beginning

3 REPLIES 3
v-lid-msft
Community Support
Community Support

Hi @Anonymous ,

 

If this chart is sort by the value of "Count of Cpersona", we can use the following workaround to meet your requirement:

 

1. The following is our sample data model, we use the sum of value1 to sort the chart

 

10.jpg11.jpg

 

2. Then we can create a calculated table:

 

PlayTable = GENERATESERIES(1,DISTINCTCOUNT('Fact Table'[Category]))

 

3. use the following measue into the visual filter

 

Axis Control = IF(RANKX(ALLSELECTED('Fact Table'),CALCULATE(SUM('Fact Table'[Value1])),,DESC,Dense)>=MIN('PlayTable'[Value]),1,-1)

 

12.jpg

 

 

4. use the Play Axis in the Power BI Visuals MARKETPLACE, and set it to filter the main chart:

 

13.jpg14.jpg

 

5. Then we can make it scroll automatically

 

ezgif-3-d17e06382db5.gif


Best regards,

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Thanks @v-lid-msft  but i have very large data set with direct query and the solution is very slow, but very very thanks.

I think i can use d3.js for power bi, is more difficult but dont find another solution

vanessafvg
Super User
Super User

as far as i know I dont think this is possible with this visual, can you not adjust the size of your bars as that will be a better user experience than having to have it scrolled through.





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




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.