Forum Discussion

admin11's avatar
admin11
Icon for Memorable Member rankMemorable Member
5 years ago
Solved

YTD expression less one month

Hi All   I have below expression working fine :- _YTD REV = CALCULATE(CALCULATE(GL[AMOUNT],DATESYTD('Date'[Date],"12/31")), GL[1_REV] = "REV")   Due to GL report alway delay , so i like to modi...
  • Anonymous's avatar
    Anonymous
    5 years ago

    Hi admin11 

    YTD Less one Month column is a Flag, please try to build it in your Date table.

    In your sample , you build it in another table instead of Date table, so you will get the wrong result.

    You table should look like as below. YTD Less one Month column in Jan and Feb in 2021 will return 1 and Mar will return 0.

    Result is as below.

    By default:

    Select 1, it will show Jan and Feb in 2021.

     

    Best Regards,

    Rico Zhou

     

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