Forum Discussion

smbolster's avatar
smbolster
Frequent Visitor
8 years ago
Solved

Problem With Calculate Measure

I'm having an issue with max date in a calulate measure that seems like it should work.   The measure I'm starting with is as follows:   Months In Selection= CALCULATE(COUNTROWS(VALUES('Real Date...
  • Zubair_Muhammad's avatar
    8 years ago

    smbolster

     

    Try this

     

    Months In Selection New =
    CALCULATE (
        COUNTROWS ( VALUES ( 'Real Dates'[Date Accounting Period] ) ),
        FILTER ( ALL ( 'Real Dates' ), 'Real Dates'[Date] <= [Max Accounting Period] )
    )