Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Backlog Balance by Week

New to DAX and could use some help.   I'm trying to create a simple view of the company's backlog balance by week.  So let's say we have the following set of columns: customer, contract sign date, ...
  • Anonymous's avatar
    Anonymous
    7 years ago

    HI Anonymous ,

    You can try to use following measure formula if it suitable for your requirement.

    Measure =
    VAR currDate =
        MAX ( calendar[Date] )
    RETURN
        CALCULATE (
            SUM ( Table[Contract Value] ),
            FILTER (
                ALLSELECTED ( Table ),
                [Contract sign Date] <= currDate
                    && [Install Date] > currDate
                    && WEEKNUM ( [Contract Sign Date], 1 ) = WEEKNUM ( currDate, 1 )
            )
        )

    Regards,

    Xiaoxin Sheng