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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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

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

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

April Fabric Community Update

Fabric Community Update - April 2024

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