Forum Discussion
Substract Value: FirstDayofFollowingMonth - FirstDayofMonth
- 6 years ago
Hi Anonymous
"date" here is a table called "date",
My date table
date = ADDCOLUMNS ( CALENDARAUTO (), "YEAR", YEAR ( [Date] ), "MONTH", MONTH ( [Date] ), "monthname", FORMAT ( [Date], "mmm" ), "yy-mmm", FORMAT ( [Date], "yyyy-mm" ), "DAY", DAY ( [Date] ) )Check my file below.
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks for your suggestion. When i try to adapt your formulas to my data it doesnt work.
FILTER(ALLSELECTED('date' <- is that the "Date" column out of the date hierarchy in your screenshot? Or which kind of date did you use there?
Do you have the pbi-file of your example and could maybe upload it?
Thanks and kind regards, Max
Hi Anonymous
"date" here is a table called "date",
My date table
date =
ADDCOLUMNS (
CALENDARAUTO (),
"YEAR", YEAR ( [Date] ),
"MONTH", MONTH ( [Date] ),
"monthname", FORMAT (
[Date],
"mmm"
),
"yy-mmm", FORMAT (
[Date],
"yyyy-mm"
),
"DAY", DAY ( [Date] )
)
Check my file below.
Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.