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
Mkhubaib
Frequent Visitor

Filtrar el máximo de cada categoría

x1.png

Hola, tengo un dato como se muestra en la imagen.

Quiero una solución dinámica para filtrar cada categoría por el tamaño máximo vendido de cada categoría.

por ejemplo, en los datos hay varias entradas de lujo pret, quiero ver qué tamaño se vende en la más alta qunatidad.

amablemente ayúdame a hacerlo en power BI

2 REPLIES 2
v-yingjl
Community Support
Community Support

Hola @Mkhubaib ,

Cree esta medida de clasificación, colótrela en el filtro visual de la tabla y establezca sus valores como 1:

Rank =
RANKX (
    ALLEXCEPT ( 'Table', 'Table'[Description] ),
    CALCULATE ( SUM ( 'Table'[Qty sold] ) ),
    ,
    DESC,
    DENSE
)

rankx.png

Adjunto mi archivo de muestra que espera ayudarle, por favor compruébelo y pruébelo: Filtrar el máximo de cada category.pbix

Best Looks,
Yingjie Li

Si este post ayuda, por favor considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

amitchandak
Super User
Super User

@Mkhubaib , Crear un tamaño de rango (medida) y filtrar por uno.

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
https://community.powerbi.com/t5/Community-Blog/Dynamic-TopN-made-easy-with-What-If-Parameter/ba-p/3...

o utilice el filtro Top1.

Ejemplo

Top 10 Rango de ciudad : CALCULATE([Sales],TOPN(1,all(Geography[City]),[Sales],DESC),VALUES(Geography[City Id]))

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.