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.
I created the following formulas. Refer ticket by user :https://community.powerbi.com/t5/Desktop/Issue-with-Date-function/m-p/1402343#M594708
Positive Days in the Day part of Date. It works
Last_29_Days =
VAR MaxDate = date(2020,09,30)
Return Date(YEAR(MaxDate),MONTH(MaxDate),DAY(MaxDate)-29)
Negative Days in the Day part of Date. It also works
Last_31_Days =
VAR MaxDate = date(2020,09,30)
Return Date(YEAR(MaxDate),MONTH(MaxDate),DAY(MaxDate)-31)
0 Day in the Day part of Date. It does not work
Last_30_Days =
VAR MaxDate = date(2020,09,30)
Return Date(YEAR(MaxDate),MONTH(MaxDate),DAY(MaxDate)-30)
When Negative work. 0 should work. It is an issue.
Please find the screenshot and file attached after signature
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.