cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
goncz
Frequent Visitor

Line graph points at edge of plot

I am trying to create a line graph that displays a count of specific jobs done per month. The table looks something like this:

 

MonthHoursJob
Jan3Cleaning
Jan4Cleaning
Mar7Cleaning
Mar5Repair
Apr6Cleaning

 

The wanted line graph should then show a count of the "Cleaning" job per month. The wanted result should look something like this:

goncz_1-1635925014683.png

 

But what I have right now look like this:

 

goncz_2-1635925066917.png

The problem is that the points are barely visible and halfway outside the plot. So my problem is, I need a way to dynamically set the limits of the Y-axis such that the points don't end up like this. I could set a fixed range for the Y-axis, but since some jobs range between 1-3 and some jobs from 80-100, a fixed Y-axis wouldn't be the best.

 

Is there some way for solving this?

 

 

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@goncz , on scatter(line) plot, take a month on the axis and Job as a legend and then try.

View solution in original post

2 REPLIES 2
v-xiaoyan-msft
Community Support
Community Support

Hi @goncz ,

 

Does the replies above solve your problem? If it has been solved, please mark the correct reply as the standard answer to help the other members find it more quickly.Thank you very much for your kind cooperation!

 

Hope it helps,


Community Support Team _ Caitlyn

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

amitchandak
Super User
Super User

@goncz , on scatter(line) plot, take a month on the axis and Job as a legend and then try.

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors