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
AlexandrLosenok
Frequent Visitor

Show on a lineplot months without data does not work?

I have a lineplot which shows a value per month for 3 brands. In august no brand has any value, but I want to show this gap.
I have used "Show items with no data" option for a column from my Date Table but it did not help, the plot continues without showing August.
What can be a solution?

AlexandrLosenok_0-1677170537037.png

 

1 ACCEPTED SOLUTION
DanielGarcia
Advocate I
Advocate I

Good nigth @AlexandrLosenok, the best way to do this is fix your measure to show "zero" when the value is blank.

 

Try this:

 

Measure = 
     var Value = Table[Value]
     var Validation = if(Value>0,Value,0)
     return Validation

with this, if the value is blank, the measure will show zero.

View solution in original post

2 REPLIES 2
DanielGarcia
Advocate I
Advocate I

Good nigth @AlexandrLosenok, the best way to do this is fix your measure to show "zero" when the value is blank.

 

Try this:

 

Measure = 
     var Value = Table[Value]
     var Validation = if(Value>0,Value,0)
     return Validation

with this, if the value is blank, the measure will show zero.

Thanks @DanielGarcia.  I was looking for another solution because in this way I can not see the gaps and the lines show continuing trend.
But seems that this is the only solution up to now.

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.