Sé cómo usar el filtro Top N, pero la pregunta es por el 10% superior de los valores. Tenemos un gran conjunto de datos de tickets, cada ticket tiene un valor de "duración". Queremos ver el 10% de esos valores en una tabla
Cualquier ayuda sobre cómo filtrar que se aprecia
Solved! Go to Solution.
@bhmiller89
Top 10% de las entradas y su duración.
Top 10% Duration =
VAR T10 =
TOPN(
ROUNDUP(
COUNTROWS(ALL('Table'))*0.1,0),
ALL('Table'),
[Total Duration],
DESC
)
RETURN
CALCULATE(
[Total Duration],
KEEPFILTERS(T10)
)
________________________
¿He respondido a tu pregunta? Marque este post como una solución, esto ayudará a otros!.
Haga clic en el icono Thumbs-Up a la derecha si le gusta esta respuesta 🙂
@bhmiller89
Top 10% de las entradas y su duración.
Top 10% Duration =
VAR T10 =
TOPN(
ROUNDUP(
COUNTROWS(ALL('Table'))*0.1,0),
ALL('Table'),
[Total Duration],
DESC
)
RETURN
CALCULATE(
[Total Duration],
KEEPFILTERS(T10)
)
________________________
¿He respondido a tu pregunta? Marque este post como una solución, esto ayudará a otros!.
Haga clic en el icono Thumbs-Up a la derecha si le gusta esta respuesta 🙂
Podrías intentar algo como esto:
Top 10% Customer =
VAR Num =
INT ( COUNTROWS ( Customer ) * 0.1 )
VAR Top10Customer =
TOPN ( Num, Customer, [Total Sales], ASC )
RETURN
Top10Customer
@bhmiller89 , referirse
Top 80/20 , porcentaje /percentil
https://blog.enterprisedna.co/implementing-80-20-logic-in-your-power-bi-analysis/
https://forum.enterprisedna.co/t/testing-the-pareto-principle-80-20-rule-in-power-bi-w-dax/459
https://finance-bi.com/power-bi-pareto-analysis/
https://community.powerbi.com/t5/DAX-Commands-and-Tips/Calculate-the-sum-of-the-top-80/td-p/763156
O
Para rango Consulte estos enlaces
https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures
https://radacad.com/how-to-use-rankx-in-dax-part-1-of-3-calculated-columns
https://radacad.com/how-to-use-rankx-in-dax-part-3-of-3-the-finale
Proud to be a Super User!
______________
Check out my Data Stories Gallery Christmas Report: Are you on Santa's Naughty or Nice List?
______________
Has this post solved your problem? Please mark it as a solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos.
I work as a trainer and consultant for Microsoft 365, specialising in Power BI and Power Query.
User | Count |
---|---|
215 | |
76 | |
58 | |
56 | |
38 |