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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

Using Stacked Bar Chart to show Split in Data

I am pulling data from a Sharepoint Online list and am having trouble with the Stacked Bar Chart. I had this visual working correctly at one point, but I'm stumped on how to get it working again.

 

The list contains entries that are sales opportunities. For each entry there is a sales lead and a backup salesperson. I want the chart to show me for each salesperson how many of opportunities they are lead on and how many they are backup on. For example, if person 1 has 30 opportunities, I should see 22 of them as lead and 8 as backup. Currently, the bars are showing 30 as lead and 30 as backup. 

 

My data fields are as follows:

X-axis:

Sales Lead

Y-axis:

Count of Sales Lead

Count of Backup

Legend:

(Blank)

 

The table is formatted similar to this: 

OpportunitySales LeadSales BackupStatus

0001

Person 1

Person 2Open
0002Person 3Person 2Pending
0003Person 1Person 3Closed
0004Person 2Person 1 Closed


Any input would be helpful.  I've tried creating measures and tables...but I'm not the most comfortable with DAX.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous ,

Option 1, Unpivot the sales and backup in power query

https://radacad.com/pivot-and-unpivot-with-power-bi

 

option two: Create common person dimension join with both sales and backup  and create measure with help userelationship for inactive relationship

 

https://radacad.com/userelationship-or-role-playing-dimension-dealing-with-inactive-relationships-in-power-bi

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-trend/ba-p/882970

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous ,

Option 1, Unpivot the sales and backup in power query

https://radacad.com/pivot-and-unpivot-with-power-bi

 

option two: Create common person dimension join with both sales and backup  and create measure with help userelationship for inactive relationship

 

https://radacad.com/userelationship-or-role-playing-dimension-dealing-with-inactive-relationships-in-power-bi

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-trend/ba-p/882970

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors