Forum Discussion

YABOUSALEH's avatar
YABOUSALEH
Frequent Visitor
4 years ago
Solved

Prior Date with Data

Hello,   I need to find the prior date with data as a measure,   Two tables, 1 is a Calander table and 1 is a Lines table, Column Date comes from Calander, column Volume (Measure) comes from Lin...
  • tamerj1's avatar
    4 years ago

    Hi YABOUSALEH 

    please try

     

     

    Prior Date with Volume =
    MAXX (
        FILTER (
            ALLSELECTED ( Lines ),
            [Volume] > 0
                && 'Date'[Date] < MAX ( 'Date'[Date] )
        ),
        'Date'[Date]
    )