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
Anonymous
Not applicable

Most Effective Visual TO compare two columns of data.

Hi, 

my datasource is a table with two columns of simliar data. For each person would pick a category on Column 1 and then update their choice on Column 2. Both of these columns have 5 categories of data (all the same of  categories)and I would Like to count  how much each category appears on a single visual (single column chart) instead of doing 2 column charts. 

 

Is this possible?

 

 

1 ACCEPTED SOLUTION

Hi @Anonymous ,

Please unpivot the field "pre" and "post" firstly, then drag the fields onto clustered column chart just like below screen shots:

Unpivot columns pre and postUnpivot columns pre and post

Create clustered column chartCreate clustered column chart

Best Regards

Rena 

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
Pragati11
Super User
Super User

HI @Anonymous ,

 

It's hard to understand and answer your query without any sample data screenshot. Can you share one here?

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Anonymous
Not applicable

doublevisualsciler.PNG

 This is sample data on how it is shown in both power BI.

 

I want to compare both columns in one single visual instead of using two bar charts. Is this possible and what would be the most effective visual to do this? 

Hi @Anonymous ,

 

You can achieve this by appending data from TBALE 1 to TABLE 2 and creating a single table as shown below: (Make sure the Column name is same in both of your tables)

pp1.png

 

Then create a single bar chart as follows:

pp2.png

 

If this helps and resolves the issue, appreciate a Kudos and mark it as a Solution! 🙂

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Anonymous
Not applicable

Thanks but not quite,

 

I would like a visual which would allow me to compare the total count of both of these pre and post values. 

person id                         pre                          post

1                                     happy                     happy

2                                    change teams         happy

3                                      left                           left

4                                     change teams          left

 

Want a visual to compare the difference between Pre and Post 

Could this be done with stacked column? 

Hi @Anonymous ,

Please unpivot the field "pre" and "post" firstly, then drag the fields onto clustered column chart just like below screen shots:

Unpivot columns pre and postUnpivot columns pre and post

Create clustered column chartCreate clustered column chart

Best Regards

Rena 

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.