Forum Discussion
Removing Outliers
- 10 years ago
That reads as: In some context (CALCULATE), is the SUM > 5000?
I think you want:
Revenue Month = CALCULATE(SUM('GA Ecommerce'[Revenue]), 'GA Ecommerce[Revenue] < 5000,PARALLELPERIOD('GA Ecommerce'[Date],0,MONTH)) - 10 years ago
Hi procyon82,
Now what you need is removing outliers at daily level instead of individual transactions level, right?
If that is the case, you can add a new table to sum up the revenue at daily level by using SUMMRIZE function. I have tested it on my local environment, here is the sample expression for you reference.
DailyRevene = SUMMARIZE(Daily,Daily[Date],"Daily total",SUM(Daily[Sales]))
Then you can remove the outliers on daily level in this new created table.
Regards,
Charlie Liao
In the Query Editor, make sure that the column is numeric and then click on the drop down arrow in the column header and choose "Number Filters" and there you have a choice of:
Equals
Does not equal
Greater than
Greater than or equal to
Less than
Less than or equal to
Between
- procyon8210 years agoResolver I
I guess the only downside with this is that it filters the entire query and all the columns/measures that I have. Is there a way to only apply it to a column or measure?
- Greg_Deckler10 years agoCommunity Champion
Yes, for that you would use a CALCULATE function (DAX). Basically:
CALCULATE(SUM([Some Column]),[Some Column] < 500000)
- procyon8210 years agoResolver I
Any idea why the response in a table is "True" or "False" instead of a number?
I'm using:
Revenue Month = CALCULATE(SUM('GA Ecommerce'[Revenue]) < 5000,PARALLELPERIOD('GA Ecommerce'[Date],0,MONTH))