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
OsmanEmi
Frequent Visitor

Clasificación de una columna basada en otro valor de columna

Hola

Actualmente estoy trabajando en un conjunto de datos donde tendría que mostrar la ubicación con la mayoría de las clasificaciones que son inferiores a 3.

Parece que no puedo averiguar las funciones DAX correctas para mostrar esto.

He adjuntado la tabla a continuación, cualquier ayuda sería muy apreciada

Nombre de la ubicaciónClasificación
Londres5
Birmingham4
Coventry3
Basingstoke4
Manchester5
Londres5
Birmingham1
Coventry1
Londres2
Birmingham2
Coventry2
Birmingham2
Coventry3
Basingstoke4
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@OsmanEmi , Probar medidas como

cnt - calculate(count(Table[Location name] ), filter(Table, Table[Rating]<-3))

Esto dará la ubicación
Top 1 Rank á CALCULATE(max(Table[Location name]),TOPN(1,all(Table[Location name]),[cnt],DESC),VALUES(Table[Location name]))

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@OsmanEmi , Probar medidas como

cnt - calculate(count(Table[Location name] ), filter(Table, Table[Rating]<-3))

Esto dará la ubicación
Top 1 Rank á CALCULATE(max(Table[Location name]),TOPN(1,all(Table[Location name]),[cnt],DESC),VALUES(Table[Location name]))

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.