Forum Discussion
month dax
- 6 years ago
Hi Anonymous
calculated column is static, it doesn't change through dates.
measure can't be added to the column header of the matrix.
So i'm afraid it is impossible as you expected.
We can only add "date" column in the column header.
month dax = IF(DATEDIFF(TODAY(),MAX('Table'[date]),MONTH)>=1,FORMAT([today],"mmmm")&" M"&"+"&DATEDIFF(TODAY(),MAX('Table'[date]),MONTH))Best Regards
MaggieCommunity 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.
Hi Anonymous
Which output would you like?
I create a measure
month dax = IF(DATEDIFF(TODAY(),MAX('Table'[date]),MONTH)>=1,"M"&"+"&DATEDIFF(TODAY(),MAX('Table'[date]),MONTH))
Maggie
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Anonymous6 years agoNot applicable
Hello @v-juanli-msft,
Thank you for your formula,
That is exactly what I wanted, but would it be possible to add the months in column ? ( to create a new column column for later)
Here is the current example that I have :
I want to create a column that meets all needs per month (M + 1 N, M + 1 N + 1, ...)
Here is an example of what I would like:
is it possible ?
Thanks !!
- v-juanli-msft6 years agoCommunity Support
Hi Anonymous
calculated column is static, it doesn't change through dates.
measure can't be added to the column header of the matrix.
So i'm afraid it is impossible as you expected.
We can only add "date" column in the column header.
month dax = IF(DATEDIFF(TODAY(),MAX('Table'[date]),MONTH)>=1,FORMAT([today],"mmmm")&" M"&"+"&DATEDIFF(TODAY(),MAX('Table'[date]),MONTH))Best Regards
MaggieCommunity 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.