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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
Anonymous
Not applicable

Two bar charts sharing one scroll bar

I need to show two bar charts with the same categorical axis. I have tried to get both charts in the same visualization, but I havent managed, so now I have two visualizations one next to the other as shown in the screenshot. 

 

The problem that I have now is that the number of categories is very large, so there are scroll bars for both plots. I would like that when I scroll in one of the plots, the other one changes automatically. Alternatively, I would also be happy if I could get both charts in the same visualization, as I was trying to do in the first place. In that case, both plots would share a single scroll bar and that would be even better. 

 

Two bar charts with two independent scroll barsTwo bar charts with two independent scroll bars

1 ACCEPTED SOLUTION
v-frfei-msft
Community Support
Community Support

Hi @Anonymous ,

 

We can make the both visuals sorted by the category in your scenario.

 

Capture.PNG

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

5 REPLIES 5
v-frfei-msft
Community Support
Community Support

Hi @Anonymous ,

 

We can make the both visuals sorted by the category in your scenario.

 

Capture.PNG

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
v-frfei-msft
Community Support
Community Support

Hi @Anonymous ,

 

We can create a bridge table to work on it.

Bridge = DISTINCT(UNION(VALUES(avail[index]),VALUES(duration[index])))

Capture.PNG

 

After that, we can use the index column in the bridge table as X-axis to work on it.

 

2.PNG

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

Thanks @v-frfei-msft. Both "availability" and "duration" belong to the same table in my example. Does it make sense to build this Bridge in that case? 

parry2k
Super User
Super User

@Anonymous you can use databar in table or matrix visual using conditional formatting.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

thx

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

Check out the April 2025 Power BI update to learn about new features.

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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

Top Solution Authors