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
Necesito agregar la columna de índice calculado a la tabla mediante una fórmula DAX.
Rgds
Henrik
Solved! Go to Solution.
Hola @Henrik_99,
Parece un reclutamiento de clasificación de varias columnas, tal vez pueda echar un vistazo a la siguiente hilo sobre el uso de isonorafter para ordenar varias columnas:
Clasificación por varias columnas
saludos
Xiaoxin Sheng
Hola a todos, gracias por responder!!
Trataré de aclararlo. Esta cifra podría ayudar. 6121/TEST-LINE-1 es la "madre" de "6121/ST-TESTPIPE" con "id-niños.s.
Se trata de obtener Test-Line-1 en la primera fila y ST-TestPipe en segunda fila con identificadores secundarios, etc.
Si tienes una solución que sería genial. Gracias.
Hola @Henrik_99,
Parece un reclutamiento de clasificación de varias columnas, tal vez pueda echar un vistazo a la siguiente hilo sobre el uso de isonorafter para ordenar varias columnas:
Clasificación por varias columnas
saludos
Xiaoxin Sheng
Hola
Base, ¿qué desea crear la columna Index: los primeros 4 caracteres de la columna Key? Aclarar.
Parece una variación de Cthulhu - https://community.powerbi.com/t5/Quick-Measures-Gallery/Cthulhu/td-p/509739
Hola @Henrik_99
Creo que tienes que hacerlo con Power Query así:
// Table
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("pdM9DoAgDAXguzBrLC0qjEY8AWzGG3j/2Z9oECbiSxgK6fdoQlhX5VhTF5cQVaO+i2n2YkSrrcmb7noi/ZbXcbsXjvt6l3acRQx4xIhHWDzCwRFC+BTmE1G8tSEfWDTnHc8NnDJLIBUgjSOZNYDtATsAdgSsBaz7b5kAe37+7QA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type text) meta [Serialized.Text = true]) in type table [A = _t, B = _t, C = _t, D = _t, E = _t, KEY = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"A", type text}, {"B", type text}, {"C", type text}, {"D", type text}, {"E", type text}, {"KEY", type text}}),
#"Grouped Rows" = Table.Group(#"Changed Type", {"A"}, {{"Gruppieren", each _, type table [A=text, B=text, C=text, D=text, E=text, KEY=text]}}),
#"Added Custom" = Table.AddColumn(#"Grouped Rows", "Index", each Table.AddIndexColumn([Gruppieren], "Index", 1, 1)),
#"Removed Other Columns" = Table.SelectColumns(#"Added Custom",{"Index"}),
#"Expanded {0}" = Table.ExpandTableColumn(#"Removed Other Columns", "Index", {"A", "B", "C", "D", "E", "KEY", "Index"}, {"A", "B", "C", "D", "E", "KEY", "Index.1"})
in
#"Expanded {0}"
Saludos FrankAT
Hola @Henrik_99
Pruebe una columna
Index =
RANKX (
FILTER('Table','Table'[A] = EARLIER('Table'[A])),
'Table'[KEY]
)
it works perfectly. Thanks.
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 |