Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

month dax

Hello! First, I wish to apologize for my English. I am new to power bi and I would like some help on a DAX function. In my file I have two columns, a column ("needs") with the quantities of the ne...
  • v-juanli-msft's avatar
    v-juanli-msft
    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
    Maggie
    Community 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.