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.
Hola comunidad PBI, he estado usando Top N por un tiempo, pero sin embargo hoy, estoy perplejo. Tengo un informe de nuestras facturas que son emitidas por un equipo de muchas personas (por ejemplo, Miembro 1, 2, 3, 4, 5 y así sucesivamente). Quiero trazar las facturas por mes, pero solo mostrar el TOP 5 (miembros) y sus facturas. Cuando puse al miembro en filtro/visual, PBI tomó el top 5 para todo el año (de enero a octubre) y pesqué las facturas para el top 5. Esto no es lo que necesito. Quiero saber quiénes son los que conforman el top 5 para Jan, el 5 mejor para febrero, y así sucesivamente, y así sucesivamente.
E.g.
Ene 2020 - M1, M3, M5, M7, M9, M4
Feb 2020 - M2, M4, M5, M7, M9
Cada mes es posiblemente un grupo diferente de los 5 primeros.
Espero que alguien pueda ayudarme a guiarme. Gracias.
Sinceramente
Patrick
Hola, @PGAT
De acuerdo con su descripción y resultado esperado, puede seguir mis pasos:
Rank =
RANKX(
FILTER(ALLSELECTED('Table'),
[Year Month]=MAX([Year Month])),
CALCULATE(MAX([Billing])),,
DESC)
No1 =
CALCULATE(MAX([Member]),FILTER('Table',[Rank]=1))
No2 =
CALCULATE(MAX([Member]),FILTER('Table',[Rank]=2))
No3 =
CALCULATE(MAX([Member]),FILTER('Table',[Rank]=3))
No4 =
CALCULATE(MAX([Member]),FILTER('Table',[Rank]=4))
No5 =
CALCULATE(MAX([Member]),FILTER('Table',[Rank]=5))
Y puedes conseguir lo que quieras.
Puede descargar mi archivo pbix de prueba aquí
Saludos
Equipo de apoyo a la comunidad _Robert Qin
Si este post ayuda,entonces considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.
Gracias, v-robertq-msft, lo intentaré.
@PGAT, usted puede tener medida como esta
Rankx(filter(all(Table[Month year], Table[invoices]), [Month year] ?max([Month year]) ),[billings],,desc)
Para rango Consulte estos enlaces
https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures
https://www.youtube.com/watch?v=DZb_6j6WuZ0
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...
Gracias, Amitchandak. Lo intentaré.
Hola
Por favor, vea este video que da una solución integral a su problema
https://www.youtube.com/watch?v=tgL7D3JTa_E&feature=youtu.be
Salud
David
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |
User | Count |
---|---|
2 | |
2 | |
2 | |
1 | |
1 |