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
nikttk
Regular Visitor

Necesita ayuda para crear TopN y otros (slicer)

Hola

Quiero crear un rango TopN y otros (slicer), si seleccionado top3 sólo top3 datos deben mostrar y efecto otros visualizadores también, también si hago clic en centrarse en el otro visualize(ex.piechart - Android) el top3 debe ser recalculado para ser top3 en el usuario de Android (todavía clasificación por país)

como la imagen que he adjuntado aquí :

Capture.PNG

Estoy atrayendo los datos ficticios que he usado para crear aquí

Data.xlsx

Gracias

6 REPLIES 6
v-lili6-msft
Community Support
Community Support

hola @nikttk

Puede crear una medida de clasificación como se indica a continuación:

Rank = 
var _type= IF(RANKX(ALLSELECTED('Table'[Country]),[Top3Register],,DESC)<=3,"Top3","Other") 
var _table=FILTER(CROSSJOIN(SUMMARIZE('Table','Table'[Country],"_name",_type),'Type'),[_name]=[Name])  return
MAXX(_table,[_name])

A continuación, utilice esta medida de rango en lugar de su [Register_rank]

saludos

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hola @v-lili6-msft

Gracias por la respuesta y la guía, pero ¿puedo preguntar de dónde viene [Nombre]?

Gracias

Hola @nikttk

3.JPG

y aquí está mi archivo pbix de muestra, por favor pruébelo.

saludos

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hola @v-lili6-msft

Gracias de nuevo por ayudar y lo siento por mi mal, btw según su archivo pbix al seleccionar top3 el gráfico circular parecen todavía no afectado por la clasificación, ¿tiene alguna sugerencia ?

Gracias

hola @nikttk

Esto se debe a que tiene muy pocos datos de ejemplo, podría agregar más datos de ejemplo en el modelo de datos.

Por cierto, sólo tiene que ajustar la medida [Top3Register] en el archivo pbix de muestra, utilice SUM en lugar de COUNTA.

Top3Register - CALCULATE(SUM('Table'[UserID]))

saludos

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
harshnathani
Community Champion
Community Champion

Hola @nikttk ,

Puede echar un vistazo al siguiente vídeo.

https://www.youtube.com/watch?v=UAnylK9bm1I

saludos

Harsh Nathani

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.