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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
amanda_wahlig
Frequent Visitor

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!

1 ACCEPTED SOLUTION
amanda_wahlig
Frequent Visitor

@v-yilong-msft 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.

View solution in original post

4 REPLIES 4
amanda_wahlig
Frequent Visitor

@v-yilong-msft 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.

v-yilong-msft
Community Support
Community Support

Hi @amanda_wahlig ,

I create a table as you mentioned.

vyilongmsft_0-1723428718068.png

I think you can add an index column in Power Query.

vyilongmsft_1-1723428888130.png

Then I put them into the line chart visual.

vyilongmsft_2-1723429041146.png

vyilongmsft_3-1723429066343.png

 

 

 

Best Regards

Yilong Zhou

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

ahadkarimi
Solution Specialist
Solution Specialist

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

Ritaf1983
Super User
Super User

Hi @amanda_wahlig 
Please refer to my detailed explanation in response to a similar post :
https://community.fabric.microsoft.com/t5/Desktop/Plot-Line-Chart-Industrial-Logging-without-Aggrega...

If previous post helped, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

AugPowerBI_Carousel

Power BI Monthly Update - August 2024

Check out the August 2024 Power BI update to learn about new features.

August Carousel

Fabric Community Update - August 2024

Find out what's new and trending in the Fabric Community.