Forum Discussion

Yolo_pbi's avatar
Yolo_pbi
Frequent Visitor
2 years ago
Solved

Format function changing the current month to previous month

Hey guys, I am using today function to get the current month, i.e. Month(Today()) which gives me output 2 as for February, but when I use format() to get the full name it changes to January - any ...
  • Ritaf1983's avatar
    2 years ago

    Hi Yolo_pbi 
    This happens because the current month is not a date datatype, it is just a number. so you always will have it as a January.
    Modify your formula to 

    Current_Month =
    FORMAT(today(),"mmm")

    pbix is attached

    If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly