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
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
- Jihwan_Kim5 years ago
Super User
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?
- Anonymous5 years agoNot applicable
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
- Jihwan_Kim5 years ago
Super User
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.