Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
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
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 52 | |
| 51 | |
| 35 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 92 | |
| 75 | |
| 41 | |
| 26 | |
| 25 |