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
dburdjal
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
Greg_Deckler
Super User
Super User

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


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

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. 

Anonymous
Not applicable

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
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.