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
Anonymous
Not applicable

Crear columna de índice ascendente por DAX en función de los valores de fila

Queridos amigos

por favor, guíeme cómo puedo crear una columna de índice calculada que muestre el número ascendente basado en la columna de valor como adjunta en las interfaces de datos.

NombreValorÍndice
a102
b101
a51
b152
b203
c102
c51
a153
5 REPLIES 5
Mariusz
Community Champion
Community Champion

Hola @moscholes

Prueba esto

Column = 
VAR __name = 'Table'[Name]
VAR __tbl = FILTER( 'Table', 'Table'[Name] = __name )
RETURN 
RANKX( __tbl, 'Table'[Value],, ASC  )

Saludos
Mariusz

Si este post ayuda, entonces considere aceptarlo como la solución.

Por favor, siéntase libre de conectarse conmigo.
Linkedin


Tahreem24
Super User
Super User

@moscholes ,

Por favor, vea una captura de pantalla a continuación con salida:

Capture.PNG

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard
Tahreem24
Super User
Super User

@moscholes ,

Pruebe esta columna:

indexar ?
RANKX (
FILTRO (
Hoja4,
ANTERIOR ( Sheet4[Nombre] ) - Sheet4[Nombre]
), Sheet4[Valor],,
Asc
)
Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard
amitchandak
Super User
Super User

@moscholes , Crear una nueva columna como

countx(filter(Table, [Name] á earlier([Name]) && [Value] <- earlier([Value])),[Value])

Anonymous
Not applicable

Gracias @amitchandak y @Tahreem24 para respuesta rápida ambos se han trabajado correctamente!!!

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.