Forum Discussion
multiple rows into one row
Thank you for you response my friend..
I tried your solution but now im getting some 'error' in 'details', 'postdate' and 'valuedate'.
I guess the error in details column is coming because it has text and number both.
Please help
Regards
Hi chanpreet_90 ,
Define the data time before you apply GroupBy. Errors are general cause by a mix of data type. For those errors in the date columns, what are other values recorded under those column apart from date?
If you're apply the text.combine function. The column has to be in text format.
Regards
KT
- chanpreet_904 years agoFrequent Visitor
Hey...I am able to resolve the issue coming in Details column however still getting Error in date columns. Please check and help
Regards
- KT_Bsmart2gethe4 years agoImpactful Individual
HI chanpreet_90 ,
Are you able to share the code? The provided screenshot is insufficient to tell where the errors are from, apart from the errors that said you attempted to add the date.
Regards
KT
- chanpreet_904 years agoFrequent Visitor
Helloo
Here is the code : -
let
Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
#"Changed Type" = Table.TransformColumnTypes(Source,{{"PostDate", type date}, {"ValueDate", type date}, {"Details", type text}, {"ChqNo", Int64.Type}, {"Debit", Int64.Type}, {"Credit", Int64.Type}, {"Balance", type number}}),
#"Filled Down" = Table.FillDown(#"Changed Type",{"Balance"}),
#"Grouped Rows" = Table.Group(#"Filled Down", {"Balance"}, {{"PostDate", each List.Sum([PostDate]), type nullable date}, {"ValueDate", each List.Sum([ValueDate]), type nullable date}, {"Details", each Text.Combine([Details], " - "), type nullable text}, {"ChqNo", each List.Sum([ChqNo]), type nullable number}, {"Debit", each List.Sum([Debit]), type nullable number}, {"Credit", each List.Sum([Credit]), type nullable number}})
in
#"Grouped Rows"