Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |