Forum Discussion

evadung's avatar
evadung
Frequent Visitor
3 years ago
Solved

Moving average excluding days without data

Hello, 

 

I have this chart with moving average. I dont want to see 4th and 5th day because theres no data (theres more date without data, 4th and 5th is for example). I have no clue what to do.

 

Its from calculated measure from two tables:

 

Table1: date, hours1
Table2: date, hours2

(In those tables arent days with null or blank spaces.)

 

calculated measure: Produtivität = hours1/hours2

 

Moving average % =

averagex(
    FILTER(ALLSELECTED(Kalender),
    Kalender[Datum] <= MAX(Kalender[Datum])),
        [Produktivität])
 
  • Moving average % =IF( [Produktivität],

    averagex(
        FILTER(ALLSELECTED(Kalender),
        Kalender[Datum] <= MAX(Kalender[Datum])),
            [Produktivität]))

2 Replies

  • wdx223_Daniel's avatar
    wdx223_Daniel
    Community Champion

    Moving average % =IF( [Produktivität],

    averagex(
        FILTER(ALLSELECTED(Kalender),
        Kalender[Datum] <= MAX(Kalender[Datum])),
            [Produktivität]))