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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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