Bonjour à tous,
Une proposition de requête (à adapter...) :
let
Source = Excel.CurrentWorkbook(){[Name="Tableau1"]}[Content],
ETP = Table.PromoteHeaders(Source, [PromoteAllScalars=true]),
Transform = Table.TransformColumns(
ETP,
{
{"type 1", each let splittype1 = Splitter.SplitTextByDelimiter(" ", QuoteStyle.None)(Text.From(_, "fr-FR")) in Text.Combine(splittype1)},
{"Type 2", each let splittype1 = Splitter.SplitTextByDelimiter(" ", QuoteStyle.None)(Text.From(_, "fr-FR")) in Text.Combine(splittype1)},
{"Type 3", each let splittype1 = Splitter.SplitTextByDelimiter(" ", QuoteStyle.None)(Text.From(_, "fr-FR")) in Text.Combine(splittype1)},
{"Magasin", each let splittype1 = Splitter.SplitTextByDelimiter(" ", QuoteStyle.None)(Text.From(_, "fr-FR")) in Text.Combine(splittype1)},
{"TOTAL", each let splittype1 = Splitter.SplitTextByDelimiter(" ", QuoteStyle.None)(Text.From(_, "fr-FR")) in Text.Combine(splittype1)}
}),
TypeCol = Table.TransformColumnTypes(Transform,{{"type 1", Int64.Type}, {"Type 2", Int64.Type}, {"Magasin", Int64.Type}, {"TOTAL", Int64.Type}, {"Type 3", Percentage.Type}})
in
TypeCol