Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
Hi,
I'm trying to calculate Outliers by IQR method for which I need to first calculate Quartile 1 and Quartile 3 for the below data.
Store | Brand | Qty_ordered |
1 | A | 162 |
2 | A | 119 |
3 | A | 132 |
4 | A | 152 |
5 | A | 142 |
1 | B | 148 |
2 | B | 126 |
3 | B | 151 |
4 | B | 195 |
5 | B | 153 |
6 | B | 113 |
1 | C | 171 |
2 | C | 183 |
3 | C | 200 |
4 | C | 136 |
5 | C | 142 |
6 | C | 180 |
I have a filter on the brand, which when selected I want the Quartile 1 and Quartile 3 for that particular brand, else it has to be for all the brands.
Solved! Go to Solution.
@Anonymous , use selected value or max
CALCULATE(PERCENTILE.INC([total_qty_ordered],0.25),IF(ISFILTERED([brand_label]),filter(Table[brand_label]=selectedvalue([brand_label])),AllSelected()))
@Anonymous , use selected value or max
CALCULATE(PERCENTILE.INC([total_qty_ordered],0.25),IF(ISFILTERED([brand_label]),filter(Table[brand_label]=selectedvalue([brand_label])),AllSelected()))
Filter works with table, not able to work with a column
also AllSelected() is not taking in if function