Forum Discussion

MrMarshall's avatar
MrMarshall
Helper II
7 years ago
Solved

Quick measure rolling average shows future dates

Today, I have a separate Date table and a Sales table. This time I was creating a rolling average with a quick measure, using the Sales amount field in the sales table and the primary Date field on ...
  • v-chuncz-msft's avatar
    7 years ago

    MrMarshall,

     

    You may try adding IF.

        RETURN
            IF (
                YEAR ( __LAST_DATE ) IN ALLSELECTED ( 'Calendar'[Year] ),