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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Anonymous
Not applicable

How to get a Continuous Line Graph for all Dates - if you are Missing Values for some Dates?

 
2 ACCEPTED SOLUTIONS
Ahmedx
Super User
Super User

Hi @Anonymous ,

 

This is due to the design of this visual object.
If you want to have consecutive dates. create the following measure that fills the value of a null-valued date with 0. at which point the curve is:

vtangjiemsft_0-1704434728013.png

 

Measure = SUM('Table'[MTBF])+0

vtangjiemsft_2-1704434809336.png

Best Regards,

Neeko Tang

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
Ahmedx
Super User
Super User

pls try this

Screenshot_2.png

Anonymous
Not applicable

.

Hi @Anonymous ,

 

This is due to the design of this visual object.
If you want to have consecutive dates. create the following measure that fills the value of a null-valued date with 0. at which point the curve is:

vtangjiemsft_0-1704434728013.png

 

Measure = SUM('Table'[MTBF])+0

vtangjiemsft_2-1704434809336.png

Best Regards,

Neeko Tang

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

v-tangjie-msft
Community Support
Community Support

Hi @Anonymous ,

 

I can't access your pbix file, please change the permissions and reshare the link.

To have a continuous date series, you can add a Date table. A simple method is to use DAX function Calendar. Then build a relationship between Date table and Fact table on Date column. Use Date table's Date column on X-axis of the line chart. This could make the X-axis have all continuous dates. And on the dates that are missing in Fact table, the measures with "+ 0" will return 0.

DateTable = CALENDAR(MIN(YourDataSource[DateColumn]), MAX(YourDataSource[DateColumn]))
Value Measure = SUM ( 'Table'[value] ) + 0

 

Best Regards,

Neeko Tang

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

Anonymous
Not applicable

.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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