Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Next months

Hi,

I have two columns, Date and the numbers of month. I want to calculate a next month column.

Example: Date 01.01.2023 plus 2 months = 01.03.2023

 

DateMonth    Next months
01.01.2023   2   01.03.2023
01.05.2023   3   01.08.2023
01.10.2023   5   01.02.2023

 

I tried NEXTMONTH(), but this does not work because of mutiple values. Is there a way to get the next months without multiplying with 30?

 

Appreciate any ideas. Thanks

  • Hi Anonymous ,
    You can use EDATE() DAX Function to solve your problem.
    If this helps then please give it a kudos and mark it as a solution.
    Thank you.

3 Replies

  • tamerj1's avatar
    tamerj1
    Icon for Community Champion rankCommunity Champion

    Hi Anonymous 
    Please try

    EDATE ( [Date], [Month] )

    • Anonymous's avatar
      Anonymous
      Not applicable

      Ohhhh, it works. Thank you, my BI hero 😁

  • KeyurPatel14's avatar
    KeyurPatel14
    Icon for Responsive Resident rankResponsive Resident

    Hi Anonymous ,
    You can use EDATE() DAX Function to solve your problem.
    If this helps then please give it a kudos and mark it as a solution.
    Thank you.