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
Quiero ser capaz de filtrar una tabla por rango de medida x por la parte superior n de la medida y. O de otra manera quiero ser capaz de filtrar una mesa por el top 5 vendedor para EL YOY% de los 30 mejores para las ventas totales.
He probado rangos anidados, resumen, topn pero no puedo obtener el resultado que busco.
Cualquier ayuda procreada, y anima con antelación.
Vendedor | Total de Ventas | YOY% | rango | Arriba |
A | 10000 | 10% | 1 | 1 |
B | 9000 | 9% | 2 | 2 |
C | 8000 | 8% | 3 | 3 |
D | 7000 | 7% | 4 | 4 |
E | 6000 | 6% | 5 | 5 |
F | 5000 | 5% | 6 | |
G | 4000 | 4% | 7 | |
H | 3000 | 3% | 8 | |
I | 2000 | 2% | 9 | |
J | 1000 | 1% | 10 |
Solved! Go to Solution.
@shsx , Puede filtrar Top de las siguientes maneras
Ejemplo
Rango de la ciudad: RANKX(all(Geography[City]),[Ventas])
Filtro
Rank Top 10- CALCULATE(if([City Rank]<-10,[Sales],BLANK()) ,VALUES(Geography[City]))
Rango Top 10 1 á sumx(VALUES(Geography[City]),if([City Rank]<-10,[Sales],BLANK()) )
Top 10 Rango de ciudad : CALCULATE([Sales],TOPN(10,all(Geography[City]),[Sales],DESC),VALUES(Geography[City Id]))
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...
@shsx , Puede filtrar Top de las siguientes maneras
Ejemplo
Rango de la ciudad: RANKX(all(Geography[City]),[Ventas])
Filtro
Rank Top 10- CALCULATE(if([City Rank]<-10,[Sales],BLANK()) ,VALUES(Geography[City]))
Rango Top 10 1 á sumx(VALUES(Geography[City]),if([City Rank]<-10,[Sales],BLANK()) )
Top 10 Rango de ciudad : CALCULATE([Sales],TOPN(10,all(Geography[City]),[Sales],DESC),VALUES(Geography[City Id]))
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...
Por favor, pruebe esta expresión para obtener el resultado deseado. Asumo que las ventas totales y el porcentaje DE AÑOs son medidas, por lo que puede reemplazar el CALCULATE(SUM(...)) respectivo con solo la medida como [Ventas totales] o [YOY%].
Top 5 of Top 10 =
VAR topsales =
TOPN (
10,
ALL ( Ranks[Salesperson] ),
CALCULATE ( SUM ( Ranks[Total Sales] ) )
)
VAR topYOY =
RANKX ( topsales, CALCULATE ( SUM ( Ranks[YOY%] ) ),, DESC )
RETURN
IF ( topYOY <= 5, topYOY )
Si esto funciona para usted, márquelo como la solución. Los elogios también son apreciados. Por favor, avísame si no.
saludos
palmadita
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
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 | |
2 | |
1 |