Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi all!
I have this table.
I need fill the data with "0" between the first date and last date into the table.
For example:
Solved! Go to Solution.
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
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]))
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.
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]))
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.
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