Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Substract Value: FirstDayofFollowingMonth - FirstDayofMonth

Hi,   I have the following scenario and not yet found a solution:   Table has a "Date" and "Value" Column. Every day in the past has a value up to yesterday - no values for today or the future. E...
  • v-juanli-msft's avatar
    v-juanli-msft
    6 years ago

    Hi Anonymous 

    "date" here is a table called "date",

    My date table

    date =
    ADDCOLUMNS (
        CALENDARAUTO (),
        "YEAR", YEAR ( [Date] ),
        "MONTH", MONTH ( [Date] ),
        "monthname", FORMAT (
            [Date],
            "mmm"
        ),
        "yy-mmm", FORMAT (
            [Date],
            "yyyy-mm"
        ),
        "DAY", DAY ( [Date] )
    )
    

    Check my file below.

     

    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.