Forum Discussion

yuhkao's avatar
yuhkao
Icon for Microsoft Employee rankMicrosoft Employee
6 years ago
Solved

Rolling 3 month

Hi    I would like to have rolling data for calculation of [measure] for 3 months. please help me to create it. thanks   date format is in YYYYMM format, which is text in data type now.    for ...
  • MFelix's avatar
    MFelix
    6 years ago

    Hi yuhkao ,

     

     

    This code is a calculated column in DAX in order to have a date column to use on the rolling 3 months.

    Month_End_DAX = EOMONTH(DATE(LEFT('Table'[Date];4);RIGHT('Table'[Date];2);1);0)