Forum Discussion
abelrmg
9 years agoHelper II
Merge rows
Hi, I have this data How can i merge de rows and obtain one row with this structure: idticket fecharegistro1 fecharegistro2 fecharegistro5 fecharegistro7 1219 26/11/2015 30...
- 9 years ago
You just need to create a custom column to append "Date" with estatus, then directly pivot on that column. See my sample below:
Regards,
MarcelBeug
9 years agoCommunity Champion
Agree with Anonymous
Should you still want to go ahead, then it can be done with Power Query (M). The following code was created via standard menu options; the last step with advanced option "Don't Aggregate".
let
Source = Table1,
#"Removed Columns" = Table.RemoveColumns(Source,{"idCliente", "idUsuarioRegistro"}),
#"Added Prefix" = Table.TransformColumns(#"Removed Columns", {{"estatus", each "fecharegistro" & _, type text}}),
#"Changed Type" = Table.TransformColumnTypes(#"Added Prefix",{{"fechaRegistro", type date}}),
#"Pivoted Column" = Table.Pivot(#"Changed Type", List.Distinct(#"Changed Type"[estatus]), "estatus", "fechaRegistro")
in
#"Pivoted Column"abelrmg
9 years agoHelper II
Hi MarcelBeug the query send this error
Expression.Error: The column 'idCliente' of the table wasn't found.
Details:
idCliente
Regards
- v-sihou-msft9 years agoMicrosoft Employee
You just need to create a custom column to append "Date" with estatus, then directly pivot on that column. See my sample below:
Regards,