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
gabrielvigo
Helper I
Helper I

Fill data with 0 between the first date and last date into the table

Hi all!

I have this table.

01.png

I need fill the data with "0" between the first date and last date into the table.

For example:

02.png

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

Create a new table with help from calendar

 

Table2 = calendar(min(Table1[Date]),max(Table[Date]))

New column in Table 2

value = maxx(filter(table1,table1[Date] = table2[Date]),table1[value])+0

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution.
In case it does not help, please provide additional information and mark me with @

Thanks. My Recent Blogs -Decoding Direct Query - Time Intelligence, Winner Coloring on MAP, HR Analytics, Power BI Working with Non-Standard TimeAnd Comparing Data Across Date Ranges
Connect on Linkedin

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

View solution in original post

v-xuding-msft
Community Support
Community Support

Hi @gabrielvigo ,

The formulas that amitchandak suggested work fine. And I create others. You could have a try based on your actual situation. 

Table 2 = CALENDAR(MIN('Table'[Date]),MAX('Table'[Date]))

Measure = IF(MAX('Table'[Value]) = BLANK(),0,MAX('Table'[Value]))

 2.PNG

For more details, please see the attachment.

 

Best Regards,

Xue Ding

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

Best Regards,
Xue Ding
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-xuding-msft
Community Support
Community Support

Hi @gabrielvigo ,

The formulas that amitchandak suggested work fine. And I create others. You could have a try based on your actual situation. 

Table 2 = CALENDAR(MIN('Table'[Date]),MAX('Table'[Date]))

Measure = IF(MAX('Table'[Value]) = BLANK(),0,MAX('Table'[Value]))

 2.PNG

For more details, please see the attachment.

 

Best Regards,

Xue Ding

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

Best Regards,
Xue Ding
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

Create a new table with help from calendar

 

Table2 = calendar(min(Table1[Date]),max(Table[Date]))

New column in Table 2

value = maxx(filter(table1,table1[Date] = table2[Date]),table1[value])+0

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution.
In case it does not help, please provide additional information and mark me with @

Thanks. My Recent Blogs -Decoding Direct Query - Time Intelligence, Winner Coloring on MAP, HR Analytics, Power BI Working with Non-Standard TimeAnd Comparing Data Across Date Ranges
Connect on Linkedin

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 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.