Forum Discussion

palvarez83's avatar
palvarez83
Helper I
7 years ago
Solved

Help with dax filter function using measures as arguments.

Hello, I was hoping someone can help me figure out my syntax problem.  I have two tables disCalendar and fCommTime which are not relate.  My disCalendar table has 3 useful columns I am trying to use...
  • v-cherch-msft's avatar
    7 years ago

    Hi palvarez83

     

    You may refer to below measure:

    NextWkdyProd =
    CALCULATE (
        SUM ( dCalendar[Productivity] ),
        FILTER (
            dCalendar,
            dCalendar[Date]
                = MINX (
                    FILTER ( dCalendar, dCalendar[Date] > [End date] && dCalendar[Workday] = 1 ),
                    dCalendar[Date]
                )
        )
    )

    Regards,

    Cherie