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

View all the Fabric Data Days sessions on demand. View schedule

Reply
beard194
Regular Visitor

Can two columns that contain similar data be visualized together?

Good afternoon everyone, 

 

I did my best to search the forum to find a solution to my issue before posting, but I was unsuccessful. Here is an example of what I am trying to do:

- my data source is an online SharePoint list 

- the two columns I'm trying to visualize together are "Employee #1 work location" and "Employee #2 work location" 

- in the SharePoint list these columns have 13 identical options for work locations 

 

Sample Data: 

Case - Employee #1 work location - Employee #2 work location

1       - New York                             - Boston

2       - Florida                                 - New York

3       - Ohio                                    - Boston

 

I am trying to create a visual that combines the Count of these two values, so for example I want to show:

New York - 2

Boston - 2

Ohio - 1

 

Am I missing something obvious or easy? Right now the best solution I can come up with is to use the card visual for each indivudual count, with no ability to add them up. 

 

Thank you in advance for your help and expertise! 

-beard

1 ACCEPTED SOLUTION
christinepayton
Super User
Super User

What I would do here is reference or duplicate the query, remove all but the SharePoint ID and the work location columns, and then unpivot the work location columns so that they are only in one column. You can use the former column titles as the label to differentiate between location 1 and location 2. 

 

Then relate the two tables on the SharePoint item ID, and it becomes a dimension that you can count. 

 

Someone else might have a clever DAX solution for this, but unpivoting would be my go-to.

View solution in original post

2 REPLIES 2
christinepayton
Super User
Super User

What I would do here is reference or duplicate the query, remove all but the SharePoint ID and the work location columns, and then unpivot the work location columns so that they are only in one column. You can use the former column titles as the label to differentiate between location 1 and location 2. 

 

Then relate the two tables on the SharePoint item ID, and it becomes a dimension that you can count. 

 

Someone else might have a clever DAX solution for this, but unpivoting would be my go-to.

Thanks for your response, I don't have any experience with unpivoting but I'll do some research and give it a shot! 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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