Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

Filtering table rows on outliers

One of our machines is measuring the temperature development of certain articles. Problem is that we sometimes have 'outliers' in our measurements of the temperature. Now we want to filter out these ...
  • v-danhe-msft's avatar
    v-danhe-msft
    8 years ago

    Hi ,

    Based on my test, you can modify the column [pre10minvalue] I have created in the previous pbix.

    pre10minvalue =

    var previousweek = Sheet1[pre10min]

    var saleonpre = CALCULATE(SUM(Sheet1[Temperature]),FILTER(Sheet1,Sheet1[MeasurementDate] = previousweek && Sheet1[ArticleNr]=EARLIER(Sheet1[ArticleNr])))

    return

    IF(ISBLANK(saleonpre),0,saleonpre)

    Now you can see the correct result.

    You can also download the PBIX file to have a view.

    https://www.dropbox.com/s/y1l6phnzvo7zw0o/Filtering%20table%20rows%20on%20outliers.pbix?dl=0

     

    Regards,

    Daniel He