Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hola
Requisito: Dos gráficos de donut – Uno para mostrar la mejor ciudad y segundo gráfico para mostrar la mejor segunda ciudad.
Cuando el usuario selecciona "India" en Filtro de país, Primera donut debe mostrar el departamento de Coimbatore, ya que el recuento de Coimbatore es más alto. El segundo gráfico debe mostrar el departamento de Chennai.
Hemos probado con los filtros Top N, No tiene opción para elegir la segunda parte superior.
Cualquier pista sería apreciada.
Gracias por adelantado.
HI @Asha_Anandan_04,
Puede considerar el uso de la fórmula de medida para comprobar la categoría n superior y usarla en el filtro de nivel visual para filtrar la segunda.
Measure =
VAR summary =
SUMMARIZE (
ALLSELECTED ( table ),
[Country],
[City],
"Count", COUNT ( table[Department] )
)
VAR _top =
MAXX ( summary, [Count] )
VAR _second =
MAXX ( FILTER ( summary, [Count] < _top ), [Count] )
VAR _city =
MAXX ( FILTER ( summary, [Count] = _second ), [City] )
RETURN
IF ( SELECTEDVALUE ( table[City] ) = _city, "Y", "N" )
saludos
Xiaoxin Sheng
@Asha_Anandan_04, Rank debería ayudarte.
Refiérase a si este blog puede ayudar - Un visual sólo tiene top1 otro tienen sólo 2nd topper
Para el rango Refiera estos links
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
Creo que necesitas algo como esto.
Cree una tabla TOPN con el valor 1 a 10 para utilizarla como filtro.
Clasificar la columna
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.