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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Why is my line graph showing in a straight line

Hello,

So i am supposed to create a a graph but when i insert the value to the y axis, it shows it as "count" which led to it being a constant line graph. Is there any way i can fix this?
Capture1.PNGCapture.PNG
Here is an example of how my graph currently looks like and what i input for my data set.
If anyone knows, please help.
Thank you !

 

1 ACCEPTED SOLUTION
RossEdwards
Solution Sage
Solution Sage

The field "Total wp qu...", do you only have 1 record per month per year?  By doing a count you are getting a count of how many records exist in your data?

Looking at your screenshot, it would seem that your field "Total wp qu" is a text field?  Being a text field, there are no math operations.  You would need to transform your field to be some type of number if you are looking to do something like get a sum total.

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi, @Anonymous 

Thanks a lot for @Idrissshatila  and @RossEdwards answer, as @RossEdwards said, if your field is a text field then it shows Count, you can try to convert it to Whole Number, etc (if you can), if it didn't solve the problem, you can provide more detailed information, share pbix files without sensitive data, etc.

Text:

vyaningymsft_1-1712214936689.png


Whole Number:

vyaningymsft_0-1712214864918.png

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

 

Idrissshatila
Super User
Super User

Hello @Anonymous ,

 

it depends of how your data is structured, it may be because there's no relationship between the data table and the table that having the value field.



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




RossEdwards
Solution Sage
Solution Sage

The field "Total wp qu...", do you only have 1 record per month per year?  By doing a count you are getting a count of how many records exist in your data?

Looking at your screenshot, it would seem that your field "Total wp qu" is a text field?  Being a text field, there are no math operations.  You would need to transform your field to be some type of number if you are looking to do something like get a sum total.

Anonymous
Not applicable

Hello!
Thank you everyone for the help but in the end what i went to do was go into excel, insert a table, selected the range and tick the first column as headers which allowed me to get the values in power bi.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors