cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

Double-Axis Horizontal Stacked Bar - Scatter Combo Chart?

Hello,

 

I'm trying to create a double-axis bar chart like this Salesforce one in PowerBI - but there is no double-axis horizontal stacked bar chart option. Any suggestions?

 

 

 

 

image.png

3 REPLIES 3
Highlighted
Super User IV
Super User IV

Re: Double-Axis Horizontal Stacked Bar - Scatter Combo Chart?

Check out the custom visuals in the market.

 

Also, you could look at R visuals

https://community.powerbi.com/t5/R-Script-Showcase/bd-p/RVisuals

 

Or Python visuals

 

Or perhaps the Charticulator

https://charticulator.com/docs/video-tutorials.html


---------------------------------------

Putting square pegs in round holes since 1972.

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




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

Proud to be a Super User!




Highlighted
Regular Visitor

Re: Double-Axis Horizontal Stacked Bar - Scatter Combo Chart?

Thanks Greg, but that did not really answer my question. Unfortunately I don't know how to use R. There are no such visuals in the marketplace either. 

 

Is there a way to just add the counts as a data label? I can't seem to figure that out either. 

Highlighted
Anonymous
Not applicable

Re: Double-Axis Horizontal Stacked Bar - Scatter Combo Chart?

Well,

 

just learn  ggplot and some simple function in R.

 

here is the example of code related to you problem :

 

ggplot(Chart)  + 
    geom_bar(aes(x=Year, y=Response),stat="identity", fill="tan1", colour="sienna3")+
    geom_line(aes(x=Year, y=Rate*max(Chart$Response)),stat="identity")+
    geom_text(aes(label=Rate, x=Year, y=Rate*max(Chart$Response)), colour="black")+
    geom_text(aes(label=Response, x=Year, y=0.95*Response), colour="black")+
    scale_y_continuous(sec.axis = sec_axis(~./max(Chart$Response)))

just try to understand 6 function used in the above code and  syntax

 

Hope this will help

 

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Upcoming Events

Upcoming Events

Wondering what events you could join or have an event to promote yourself? Check out our Upcoming Events.

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

We are thrilled to announce we will begin running a monthly webinar series named Power BI Dev Camp.