How can I stop getting duplicate values in PivotTable/Chart?

Anonymous
2024-03-10T17:22:57+00:00

Hey,

I'm fairly new to PivotTables and am trying to make my way through it as self-guided as much as possible.

I have a survey I want to report on using a PivotTable and PivotChart (as I want to be able to manipulate the view using filters/splicers). I've managed to have the table show how I want with questions down the left and responses (strongly agree - strongly disagree) along the top and in the chart how I want - screenshot included and copy of the table below.

Column Labels
Values Agree Disagree Neutral Strongly agree Strongly disagree Grand Total
Wellbeing 393 24 179 416 2 1014
Tools & Support 393 24 179 416 2 1014
Feedback 393 24 179 416 2 1014
3 Years 393 24 179 416 2 1014
Proud 393 24 179 416 2 1014

As you can see, all values are the same but in the raw data, they're not so for example, Proud should display 687 Strongly Agree, 267 Agree and 59 Neutral. All data seems to show for the Wellbeing question. I'm assuming that's because I'm using the Wellbeing question to produce the Strongly Agree to Strongly Disagree labels in the column section but I can't find a way to display these without doing that.

Link to file: March Survey Master.xlsx

Is there a way to have the values show correctly? Do I need to change how the table displays? If so, is there a way to get the chart to show how I want?

Microsoft 365 and Office | Excel | For business | Other

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes
Answer accepted by question author
  1. Ashish Mathur 100.8K Reputation points Volunteer Moderator
    2024-03-10T23:16:11+00:00

    Hi,

    Your data needs transformation. I have done so using Power Query - see the worksheet named Transformed data. From here, i have created the Pivot Table. You may download the PBI file from here.

    Hope this helps.

    2 people found this answer helpful.
    0 comments No comments

6 additional answers

Sort by: Most helpful
  1. Andreas Killer 144K Reputation points Volunteer Moderator
    2024-03-10T18:23:25+00:00
    0 comments No comments
  2. Anonymous
    2024-03-10T19:53:11+00:00

    Sorry, I've added one to the original post: March Survey Master.xlsx

    0 comments No comments
  3. Andreas Killer 144K Reputation points Volunteer Moderator
    2024-03-11T06:54:45+00:00

    March Survey Master.xlsx

    Thank you.

    Here is your modified sample file:
    https://www.dropbox.com/scl/fi/59h9y1gxarfxvuek7vnio/81c030f2-3328-4c79-9001-ce92896f6ad3.xlsx?rlkey=o0vtc47g5ixx5txsy9drjuajc&dl=1

    I agree with Ashish, we need to transform the data, because your data has headers at the top and headers on the left side of the data. This is what we called pivoted data. I loaded the data with Power Query select all columns with the answers, right-click and unpivot the columns, done.

    I have gone one step further and created a related table from the unique answers with an Order column added, so the Pivot Table shows the answers in the correct order. For that all data is loaded into the Data Model and I've also created a relationship between the tables in there.

    In the sheet I've added some slicers, so it's easier to filter the data.

    And of course the Pivot chart is below.

    Any questions?

    Andreas.

    0 comments No comments
  4. Anonymous
    2024-03-11T08:57:33+00:00

    Thanks Andreas, I wasn't able to work with this I kept getting the message that it wasn't supported in my version of Excel - perhaps as I'm on a Mac.

    0 comments No comments