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
Leeny127
Frequent Visitor

Merging Data from Two Columns to Show in Stacked Bar Chart

 

Hello,

 

I have created a stacked bar chart to show my team's work capacity.  It counts ongoing projects for each person, broken down by phase (Planning, Developing, etc).  Up to two people can be assigned to a project...this is represented in the data table by columns "Assignee1" and "Assignee2".

 

I would like the Axis to show all team member names, and the bar chart to show ALL projects that person is working on, regardless of whether they are listed as "Assignee1" or "Assignee2".

 

Currently, I have Assignee1 as the Axis, but it only counts projects in which that person is listed as Assignee1 (obviously).

 

My question: Is there a way I can achieve my goal with a calculated column or relationship table? 

 

I fear I'm suffering from Analysis Paralysis on this one, so thank you in advance for any guidance.

 

PBI_Stacked_Bar.PNG

 

 

 

1 ACCEPTED SOLUTION
NipponSahore
Resolver II
Resolver II

If your dataset is reasonable, you can create 2 copies of your source query. One with only Assignee 1 and their phase and another with only Assignee2 and their phase. Append the two queries together and try to visualize. Let me know if that helps 

View solution in original post

2 REPLIES 2
NipponSahore
Resolver II
Resolver II

If your dataset is reasonable, you can create 2 copies of your source query. One with only Assignee 1 and their phase and another with only Assignee2 and their phase. Append the two queries together and try to visualize. Let me know if that helps 

This worked perfectly! As a "newbie" to Power BI, I was unfamiliar with the append feature until now.  Thank you for pointing me in the right direction!

 

For anyone reading this, the following links were very helpful in carrying out this solution:

 

Creating new table out of existing one

Append vs. Merge in Power BI and Power Query

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.