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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply

Line Chart: How to show the lines when it has no values

Hello,

i have this measure  Sales = SUM(Sales[Quantity]),  Sales is my FactTable, and it is related to a DimensionTable  "Date".  When i try to use  this measure by date in a  Line Chart i get this result:
Grafico.PNG

 

It doesnt show data when it has no values, in this case i want this result.

grafico deseado.png

 

 

 

 

 

 

 

 

My X-Axis type is "Categorical" and the option "Show items with no data" is checked. how can i do this?

I didn't find a solution for this in the forum, thanks for your help.

 

Regards.

CACQ

4 REPLIES 4
MFelix
Super User
Super User

Hi @carloscabreraq,

What is happening is that when you don't have values on the sum of sales returns blank so no point is returned on the chart.

Change your measure to
Sales = SUM(Sales[Quantity])+ 0

This will force your value to return. 0 instead of blank and filling your chart.

Regards,
MFelix

Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



hi @MFelix , when i do this, i get this (picture), it doesnt apply the filter for just 1 month. Why?

 

otro.PNG

Check if the axis is still on categorical.

Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



@MFelix 


@MFelix wrote:
Check if the axis is still on categorical.


yes it is stil on categorical, btw i am using a slicer with this "period comparer" Period Comparator M

which is related to my date table.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors