Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
Hello,
I want that the calendar function creates a list of every month of eachyear between my min and max date and not a list of every day of each month of each year. Do you know how to do it pls?
Thank you!
Best regards
Solved! Go to Solution.
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
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
@Jihwan_Kim hi! juste I got a question what if I want that the result depend on a filter. I got two columns "Name" and "Name2" and I would like to have my column uptaded each time I change the filter. I try to add a Filter() in the dax formula but I didn't succed.
Can you help me please?
Thank you
Hi, @Anonymous
Sorry, I quite do not understand your question.
Can you share your sample pbix file's link here, together with how the expected result looks like?
https://www.dropbox.com/s/ko46q78pzqemazv/Test%20YEAR.pbix?dl=0
My function Calendar Table will creat all the month and year between my min and max of my Date Production column. Imagine I change the filter and I put only the name "yes", my min and max wouldn't be the same as if there are yes and no in the filter. But with this code if I change or not the filter it doesn't change anything, it will take the min and max of my column without filter. And I would like, it takes the min and max to the column depending on the filter choose.
It is clearer?
Thank you
Hi, @Anonymous
I think you want to control the actual table by the slicer, right?
I am not sure but I think it is not possible in a normal way.
One way you can achieve this is by creating measures with filter function and calculation function. In this way, I think you can visualize it in the way you want.
ok thank you I will try!
Thank you very much
Have a nice day!
@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]))
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!
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 61 | |
| 49 | |
| 30 | |
| 25 | |
| 23 |
| User | Count |
|---|---|
| 129 | |
| 104 | |
| 56 | |
| 39 | |
| 31 |