Percentile 80 in Dax (Excel 2013 Version)

FelipeVaz

New Member
Joined
Sep 30, 2014
Messages
37
[FONT=&quot] I have this sort of table below and I'd like to calculate percentile 80 to "qtd/cons" for each category in "Col1" as a calculated column. [/FONT]
[FONT=&quot] [/FONT]
[FONT=&quot] Col1 qtd cons qtd/cons[/FONT]
[TABLE="width: 924"]
<tbody style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit; margin: 0px; outline: 0px; padding: 0px;">[TR]
[TD]A[/TD]
[TD]20[/TD]
[TD]25[/TD]
[TD]0,80[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]12[/TD]
[TD]15[/TD]
[TD]0,80[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]8[/TD]
[TD]26[/TD]
[TD]0,31[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]10[/TD]
[TD]24[/TD]
[TD]0,42[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]19[/TD]
[TD]20[/TD]
[TD]0,95[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]19[/TD]
[TD]14[/TD]
[TD]1,36[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]7[/TD]
[TD]17[/TD]
[TD]0,41[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]18[/TD]
[TD]21[/TD]
[TD]0,86[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]8[/TD]
[TD]18[/TD]
[TD]0,44[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]17[/TD]
[TD]25[/TD]
[TD]0,68[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD]5[/TD]
[TD]15[/TD]
[TD]0,33[/TD]
[/TR]
</tbody>[/TABLE]
[FONT=&quot] [/FONT]
[FONT=&quot]The nem column should looks like this [/FONT]
[FONT=&quot] [/FONT]
[FONT=&quot]Col1 qtd cons qtd/cons Perc80[/FONT]
[TABLE="width: 924"]
<tbody style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit; margin: 0px; outline: 0px; padding: 0px;">[TR]
[TD]A[/TD]
[TD]20[/TD]
[TD]25[/TD]
[TD]0,80[/TD]
[TD]0,8000[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]12[/TD]
[TD]15[/TD]
[TD]0,80[/TD]
[TD]0,8000[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]8[/TD]
[TD]26[/TD]
[TD]0,31[/TD]
[TD]0,8000[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]10[/TD]
[TD]24[/TD]
[TD]0,42[/TD]
[TD]0,8000[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]19[/TD]
[TD]20[/TD]
[TD]0,95[/TD]
[TD]1,1943[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]19[/TD]
[TD]14[/TD]
[TD]1,36[/TD]
[TD]1,1943[/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]7[/TD]
[TD]17[/TD]
[TD]0,41[/TD]
[TD]1,1943[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]18[/TD]
[TD]21[/TD]
[TD]0,86[/TD]
[TD]0,7863[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]8[/TD]
[TD]18[/TD]
[TD]0,44[/TD]
[TD]0,7863[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]17[/TD]
[TD]25[/TD]
[TD]0,68[/TD]
[TD]0,7863[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD]5[/TD]
[TD]15[/TD]
[TD]0,33[/TD]
[TD]0,3333[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)

Forum statistics

Threads
1,226,534
Messages
6,191,621
Members
453,667
Latest member
JoeH7745

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top