The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I have a column called FA in my table. I have created multiple DAX to write Quartile 1, Quartile 3, IQR, Lower Limit and Upper Limit using mathematical calculations. I have detected Outliers as well.
I want to remove those outliers and calculate 5th, 10th, 25th, 50th percentile of the values that are not outliers. Can anyone help me removing outliers and calculate all the percentiles.
DAX for Outlier Treatment:
Hi @Anonymous
You can try to add a new column to use if() function to mark the Outlier, so that you can use the filter() function to calculate the percentile which you want.
Similarly that you can use the filter() function and calculatetable() function to create a new table without these values that you don't want.
Best Regards
Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous
Thank you so much for the suggestions!!. I have implemented this by creating columns for Q1, Q2, IQR, LL,UL and the outlier detection using if statement. However. In order to create the Q1 and Q3, I have to make sure it won't change row level. I need the same Q1 and Q2 (aggregated) for each Skill and Month.
Calculation for Q1:
User | Count |
---|---|
26 | |
12 | |
8 | |
7 | |
5 |
User | Count |
---|---|
28 | |
13 | |
12 | |
12 | |
6 |