Forum Discussion
Outliers calculation help needed
- 7 years ago
Hi gkakun
You may create measures as below. Attached the sample file for your reference.
Current = CALCULATE ( SUM ( Sheet2[Consumption] ), FILTER ( Sheet2, Sheet2[Month] = "current" ) )Average = CALCULATE( AVERAGE(Sheet2[Consumption]),FILTER(ALLEXCEPT(Sheet2,Sheet2[Location]),Sheet2[Month]<>"current"))
SDT = CALCULATE(STDEV.P(Sheet2[Consumption]),FILTER(ALLEXCEPT(Sheet2,Sheet2[Location]),Sheet2[Month]<>"current"))
Mark = IF([Current]> [Average]+2*[SDT],"outlier")
Regards,
Cherie
Hi gkakun
Could you share a sample of your pbix file or otherwise a table/text copy of the data you show in the first image? Just to make things easier for people trying to help.
Sure. Sorry for the ignorance. but how do I upload excel file to here?
- AlB7 years agoCommunity Champion
You can share the URL to the file from a platform like Dropbox, Onedrive, etc. or upload it to sites like this (no account required)
- gkakun7 years agoHelper III
Pls enter google drive of the below account:
password- 1!password
let me know if you have any issues
- gkakun7 years agoHelper III
Hi,
Any chance you looked at the row data?
- v-cherch-msft7 years agoMicrosoft Employee
Hi gkakun
It's better that if you could share the pbix file and expected output so that we could help further on it. You can upload it to OneDrive or Dropbox and post the link here. Do mask sensitive data before uploading.
Regards,
Cherie