cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Reply
Helper V
Helper V

Top 10%

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

1 ACCEPTED SOLUTION
Super User IV
Super User IV

@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)
    )

Fowmy_0-1597150064142.png

________________________

ยฟ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 ๐Ÿ™‚

YoutubeLinkedin





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

4 REPLIES 4
Super User IV
Super User IV

@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)
    )

Fowmy_0-1597150064142.png

________________________

ยฟ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 ๐Ÿ™‚

YoutubeLinkedin





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

Super User II
Super User II

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

Thank you,
Antriksh Sharma
Super User III
Super User III

ยฟPodrรญa crear una medida para calcular el porcentaje de valores y filtrar dentro del 10% superior?

 


______________


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. 


www.excelwithallison.com

Helpful resources

Announcements
secondImage

Happy New Year from Power BI

This is a must watch for a message from Power BI!

December Update

Check it Out!

Click here to read more about the December 2020 Updates!

Community Blog

Check it Out!

Click here to read the latest blog and learn more about contributing to the Power BI blog!

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.

Top Solution Authors