Forum Discussion
Calender function
- 5 years ago
Hi, Anonymous
I am not sure if I understood your question correctly, but please try something like below.
Calendar Table =
SUMMARIZE (
ADDCOLUMNS (
CALENDAR ( MIN ( Data[Date] ), MAX ( Data[Date] ) ),
"month & year", FORMAT ( [Date], "MMM-YYYY" )
),
[month & year]
)Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: linkedin.com/in/jihwankim1975/
Twitter: twitter.com/Jihwan_JHKIM
Anonymous ,
Try like
Addcolumns(calendar(Min(Table[Date]), Max(Table[Date]) ), "Month" , month([date]) , "Year", year([date]), "Month Year", format([date],"mmm-yyyy") , "Month year sort", year([date])*100 + month([date]))
or
Addcolumns(calendar(date(2020,01,01), date(2021,12,31) ), "Month" , month([date]) , "Year", year([date]), "Month Year", format([date],"mmm-yyyy") , "Month year sort", year([date])*100 + month([date]))
- Anonymous5 years agoNot applicable
Thank you for your answer,
Unfortunately it doesn't work, well it's the good format but I still have a line for each day even if we can see only the month. I think I badly expressed myself but imagine the min date is 01 january 2017 and the max 25 april 2017, I would like to have a list of the following data: january 2017; february 2017; mars 2017; april 2017. Do you think it's possible?
Thank you!