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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.