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
Syndicate_Admin
Administrator
Administrator

TopN por mes

Tengo una tabla que contiene datos para tareas registradas para diferentes proyectos. Esta es una muestra de los datos

fr6201_0-1669299261139.png

He intentado trazar el número de tareas registradas por mes y lo he desglosado por proyecto como leyenda.

eje x: Fecha de solicitud

eje y: recuento del identificador de tarea

Leyenda: Nombre del proyecto

fr6201_2-1669299374740.png

Como hay cientos de proyectos, solo quería mostrar los 5 principales, pero PowerBI muestra los 5 primeros en general y no los 5 principales de cada mes. Quiero poder ver los 5 proyectos principales que han registrado tareas para ese mes y no los 5 principales para todo el año.

1 REPLY 1
Syndicate_Admin
Administrator
Administrator

@fr6201 , TOPN debería ayudar

Utilice la medida TOPN en lugar de la medida

CALCULATE([meausre],TOPN(5,all(Table[Project]),[Measure],DESC),VALUES(Table[Project]))

TOPN: https://youtu.be/QIVEFp-QiOk

o

https://www.sqlbi.com/articles/filtering-the-top-3-products-for-each-category-in-power-bi/

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.

Top Solution Authors