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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
tbobolz
Resolver I
Resolver I

Line Chart Visual omits days (x-axis point) without data - Seeking work around

Hi, seeking a solution to a minor formatting issue. My data source has a the folowing fields: category, date and volume. However, not all dates are represented in the source data, so when a line chart is created, there's in not a pin point on the x-axis for the missing dates in th esource. Meaning , it will display days  1   2   3   5  6  7, a long the X-axis but omit day 4. 

 

I have created a Calendar table using the funuction "Calendar = Calendarauto()" This a long with checking the option to "Show items with no data" on the field value. This force the missing day to appear, however the graph now has broken segments. 

 

Does anyone havea good work around for this issue?

 

Thanks Terry

 

Broke trenline.JPG

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @tbobolz ,

 

Thanks for the reply from @AnalyticPulse , please allow me to provide another insight: 

 

Based on your description, I created these data.

vkaiyuemsft_0-1716358450560.png


1. created date table and created relationship between two tables.

vkaiyuemsft_1-1716358462756.png

vkaiyuemsft_2-1716358472307.png

 

2. created measure.

Measure =
VAR _date = DISTINCT('Table 2'[Date])
RETURN
IF(MAX('Table'[date]) IN _date,MAX('Table'[value]),0)

 

3. Put appropriate fields for the visual object.

vkaiyuemsft_3-1716358503834.png

 

If your Current Period does not refer to this, please clarify in a follow-up reply.

 

Best Regards,

Clara Gong

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi @tbobolz ,

 

Thanks for the reply from @AnalyticPulse , please allow me to provide another insight: 

 

Based on your description, I created these data.

vkaiyuemsft_0-1716358450560.png


1. created date table and created relationship between two tables.

vkaiyuemsft_1-1716358462756.png

vkaiyuemsft_2-1716358472307.png

 

2. created measure.

Measure =
VAR _date = DISTINCT('Table 2'[Date])
RETURN
IF(MAX('Table'[date]) IN _date,MAX('Table'[value]),0)

 

3. Put appropriate fields for the visual object.

vkaiyuemsft_3-1716358503834.png

 

If your Current Period does not refer to this, please clarify in a follow-up reply.

 

Best Regards,

Clara Gong

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Clara,

I just notice this formula only returns the MAX as your statement suggest. 

IF(MAX('Table'[date]) IN _date,MAX('Table'[value]),0)

My data table has multiple values on the same day, so the others are being ignored. I can't seem to figure out how to remove the "MAX" condition so that it reconize all values on the same day and adds them into the graph.

 

Thanks for helping me learn!

Terry

Terry

 

Thanks Clara!!! This works great. Any way to keep the Zero plotted points from appearing for future date?

Graph 4.JPG

AnalyticPulse
Super User
Super User

hello @tbobolz haev you tried using diffrent chart? like create a new line chart and then put your feilds in the chart, the chart should normally show the dip and the suddent hike if you have data like that. 
there is nothing wrong with your approach just try another chart.

 

Learn Power BI free:

https://analyticpulse.blogspot.com

Power BI : getting started

Dax functions

powerbi Visualisation

AnalyticPulse_0-1715829624787.png

 

 

Thank you for th eresponse, I have tried several others with no success. I beleive it is because my data omits dates with no values. 

 

Apprecaite the response!

Terry

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

Top Kudoed Authors