Reply
Highlighted
Frequent Visitor
Posts: 7
Registered: ‎04-18-2018
Accepted Solution

Plot zero when there is no data in line chart

Hi all

 

I am having a problem showing some data on a line chart. The chart shows a simplified version of the  problem with sample data.

 

The data arrives to me as a list of complaints recieved, so some toys may not have a complaint for a month or two and will show no data for that period. 

 

sample2.PNG

I then grouped the data into months by getting the start date of the month and the totoal compaints for each toy and problem for each month

sample3.PNG

This data is used to produce the line chart which will later be populated with other data such as sales and standard diviations. 

 

The chart works great for most products which have complaints each month but when no data is available for a month the chart draws a line to the next month and does not go to zero.

sample1.PNG

 

 

 

 

I have a tick by show items with no data and this does not help

sample4.PNG

I have a link to drop box which has the sample files.

 

https://www.dropbox.com/sh/939u0p143u8qqox/AAAGlewp5rLUBoVj4qEMeyNJa?dl=0

 

I hope someone can help me see where I am going wrong

Thanks in advance

 


Accepted Solutions
Super User
Posts: 1,974
Registered: ‎07-22-2015

Re: Plot zero when there is no data in line chart

@dennissheehan solution is attached, you can take it from here




Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!

www.perytus.com
(MVP Data Platform)


View solution in original post

Attachment

All Replies
Super User
Posts: 1,974
Registered: ‎07-22-2015

Re: Plot zero when there is no data in line chart

@dennissheehan solution is attached, you can take it from here




Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!

www.perytus.com
(MVP Data Platform)


Attachment
Frequent Visitor
Posts: 7
Registered: ‎04-18-2018

Re: Plot zero when there is no data in line chart

This solution is absolutly perfect for me. I amreading through the code now to try and fully understand the process so I can use it in many more reports. This issue had me going around in cirlces for a long time. I had used +0 before but not in the right place.

 

I am most grateful @parry2k

Super User
Posts: 1,974
Registered: ‎07-22-2015

Re: Plot zero when there is no data in line chart

@dennissheehan sorry I end up reply to your post in different post. Smiley Happy

 

Anyhow feel free to reach out if need any further assistance. Cheers!!!




Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!

www.perytus.com
(MVP Data Platform)