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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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