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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

ADD missing lines

Happy new year everyone.

I Have a table with different column and a column with the date on wich the data of the row have been filled.

So if a day there is no data, there is no row, so no date, and if I show a trend per day, the missing date will be skipped.

How can I add the missing dates with custom values on other columnns ?

1 ACCEPTED SOLUTION
v-yueyunzh-msft
Community Support
Community Support

Hi , @Anonymous 

According to your description, you want to add the missing date . 

Here are the steps you can refer to :
(1)This is my test data:

vyueyunzhmsft_0-1673227778524.png

(2)We can create a 'Date' Table as a dimension:

Date = CALENDAR(FIRSTDATE('Table'[Date]), LASTDATE('Table'[Date]))

(3)Then we need to create a relationship between two tables:

vyueyunzhmsft_1-1673227877344.png

(4)Then we can put the 'Date'[Date] on the row header and we can meet your need:

vyueyunzhmsft_2-1673227926222.png

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

 

Best Regards,

Aniya Zhang

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

2 REPLIES 2
v-yueyunzh-msft
Community Support
Community Support

Hi , @Anonymous 

According to your description, you want to add the missing date . 

Here are the steps you can refer to :
(1)This is my test data:

vyueyunzhmsft_0-1673227778524.png

(2)We can create a 'Date' Table as a dimension:

Date = CALENDAR(FIRSTDATE('Table'[Date]), LASTDATE('Table'[Date]))

(3)Then we need to create a relationship between two tables:

vyueyunzhmsft_1-1673227877344.png

(4)Then we can put the 'Date'[Date] on the row header and we can meet your need:

vyueyunzhmsft_2-1673227926222.png

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

 

Best Regards,

Aniya Zhang

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

amitchandak
Super User
Super User

@Anonymous , Create a date table and join that with date of your table. Use date table's column in visual and slicer.

 

then create a measure with

Sum(Table[Value]) +0

 

plus 0 will show dates non available with 0

 

or like

0 between range
Measure = var _1= SUM(Opportunity[Opportunity count]) +0
var _min = minx(ALLSELECTED('Calendar'), 'Calendar'[Date])
var _max = maxx(ALLSELECTED('Calendar'), 'Calendar'[Date])
return
CALCULATE(if(max('Calendar'[Date]) <_min || max('Calendar'[Date]) >_max , BLANK(), _1))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors