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
dennissheehan
Frequent Visitor

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

 

1 ACCEPTED SOLUTION
parry2k
Super User
Super User

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



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

3 REPLIES 3
parry2k
Super User
Super User

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



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

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

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

 

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



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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

Top Kudoed Authors