cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
tito
Frequent Visitor

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 @tito ,

 

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.
tito
Frequent Visitor

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 I
Super User I

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.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are You Ready?

Test your skills now with the Cloud Skills Challenge.

Top Solution Authors