Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
bhmiller89
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
Fowmy
Super User
Super User

@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! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

4 REPLIES 4
Fowmy
Super User
Super User

@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! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

AntrikshSharma
Community Champion
Community Champion

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
AllisonKennedy
Super User
Super User

¿Podría crear una medida para calcular el porcentaje de valores y filtrar dentro del 10% superior?

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as 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 C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.