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,
You would need to use the Function Month() to get the Month for the Date. Add this as a new column in the Table. Once this is done, You will need to Unpivot the Table. You could do this by Edit Queries -> Select the Column of the Table that You want to Unpivot -> Transform -> Unpivot Columns.
Best Regards,
Vignesh M
If what I suggested worked for you feel free to Drop a "Kudos" and Consider to "Accept as Solution" if I solved your Issue :)
Hello Mvignesh53,
I tried your solution, I just have a little problem :
when I unpivot the column month [month()] I can not get the desired result.
I want the months in columns, the results of these columns show me the needs by month, and by article code, (I cannot display the item codes in the capture, because they are confidential)
Thanks for your help !