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
gerasimovav
Helper III
Helper III

Showing zero values in line chart

Hello colleagues!

This is a very popular theme as I see. But I haven't found solution to my case yet. 

So, I have this measure and line chart:

ship1.png

 

There is zero value on 1 May, but, as you can see, zero point is skipped in the line chart.

If I add +0 to the measure I will get:

ship2.png

Zero value on 1 May has appeared, but a lot of fake zero values (there are no zero values but all of them filtered by slicer) have appeared too. The line chart is getting to be inconvenient.

 

 

 

 

5 REPLIES 5
v-danhe-msft
Employee
Employee

Hi @gerasimovav,

Could you please share some sample data to have a test if possible?

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hello, @v-danhe-msft

It's quite easy. For example the measue is 

Number of Orders = COUNTROWS(SENDING) 

Where table "Sending" looks like

 pi1.png

As you can see there are no rows with 01.05.2018 PO_CREATION

I put a slicer by PO_CREATION and filter by PO_CREATION beetwean 30.04 and 03.05:

pi2.png

As you can see there is no zero point point at 1 May. Line goes from 30 April directly to 2 May. 

I need zero point in 1 May!

Now I change the measure to 

Number of Orders = COUNTROWS(SENDING)+1 

And get:

pi3.png

Zero point apeared but with a lot of fake zero data

Hi,

 

Share the link from where i can download your PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi @gerasimovav,

Based on my test, there is no record in the 2018/5/1, if you want to show 0 in 2018/5/1, it should have a row of 2018/5/1:

1.PNG

If your data do not contain the reocord in 2018/5/1, the visual will show by design and will not show a zero.

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Greg_Deckler
Super User
Super User

What is your measure formula? Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

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.

Top Solution Authors