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

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
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.