Forum Discussion

amanda_wahlig's avatar
amanda_wahlig
Frequent Visitor
2 years ago
Solved

Percentage Data Not Displaying Correctly in Line Graph

I have a data set (comes from an external source) that contains survey data already summarized (so I can't just go to the base data and have BI do calculations):

 

QuestionYear% Positive% Neutral% Negative

Q1

2022

92.67.40
Q1202393.07.00
Q2202286.77.06.3
Q2202385.78.97.5
Q3202270.220.44.3
Q3202375.317.67.0

 

The data in BI looks correct, and all the columns are marked as "don't summarize" with data type as "decimal number" and formatted as a percentage.

 

We have the same data for multiple years. I'm trying to create a line chart to show how the positive numbers to a given question have changed from year to year.

 

But when I create the line chart in BI, it only ever wants to show as some sort of calculation of the responses (count, sum, etc.) instead of just the values. Ideas? Thank you!

  • Anonymous was the closest to the solution. I didn't need to add an index column - just use the "sum" of the percentage column and scale the y-axis from 0 to 1. It's still not entirely clear to me why BI would make it look like you're adding anything, but it works.

     

    I realized that the question wasn't clear: I wanted a line chart with the percentage on the y-axis, the year on the x-axis, and then three lines to show the values in each year that were positive, neutral, and negative. A slicer would allow users to view the results for a given question.

4 Replies

  • ahadkarimi's avatar
    ahadkarimi
    Solution Specialist

    Create a measure for each percentage column like this:
    Positive Measure = AVERAGE('TableName'[% Positive])

  • amanda_wahlig's avatar
    amanda_wahlig
    Frequent Visitor

    Anonymous was the closest to the solution. I didn't need to add an index column - just use the "sum" of the percentage column and scale the y-axis from 0 to 1. It's still not entirely clear to me why BI would make it look like you're adding anything, but it works.

     

    I realized that the question wasn't clear: I wanted a line chart with the percentage on the y-axis, the year on the x-axis, and then three lines to show the values in each year that were positive, neutral, and negative. A slicer would allow users to view the results for a given question.