Top 20 valeur tcd gcd
bonjour à tous, je suis entrain de combiner des fichier CSV générés à partir de panne machine.
erreur = 1
pas erreur = 0
Un fichier CSV est fait comme suit
Date Heure err1 err2 err3 err4 err5 (avec 399 erreurs)
si l'erreur générée est err4 alors la ligne en dessous sera à 1 et les 398 autres à 0
J'ai donc une multitude de fichier csv que je dois combiner et synthétiser via tableau et graphique.
Voila comment j'ai procédé pour l'instant :
Via power query j'ai combiné tout mes fichiers. Je ne vous cache pas que c'est extremement lourd 50mo (oui car la je vous donne l'exemple d'une ligne il y en a 9 en tout mais passons. Je me retrouve avec Excel avec mes csv combinés. Maintenant je souhaite faire un graphique croisé dynamique en barre avec pour l utilisateur final la possibilité de voir les 20 plus courantes erreur en fonction d une periode, par plage de date ou heure.. et de voir sur le graphique : les 380 autres erreurs regroupées da
ns une rubrique "autres".
Donc j'ai commencé à essayer de faire mon graphique mais bloquage je suis limité à 255 champs valeurs.
Dans power query j ai solutionné le problème car sur 11000 lignes (1 ligne = date et heure de l erreur) des erreurs n arrivent jamais.
Je me retrouve donc avec 150 erreurs
Mais la problème j ai mon tcd et gcd mais je ne sais di tous comment faire pour mon top 20 et regrouper les autres en "autres"
ci joint un exemple de fichier et les photos du fichier final
Je vous remercie d'avance de l'aide que vous pourrez m'apporter
Bonjour
Peut-être faudrait-il se passer du TCD/GCD et selon les filtres nécessaires, directement calculer le top 20 et le groupe Autres dans PowerQuery restitué dans tableau structuré avec le graphique lié à celui-ci
Avec des copies d'écrans et pas de fichiers on a peu de latitude pour tester et proposer des solutions
Oups j avais mis 3 fichiers le premier s est supprimé
RE
Tu n'as répondu concernant les filtres. Une proposition avec 3 choix :
- nombre de valeurs dans le top (obligatoire)
- date (facultatif)
- heure (facultatif)
Les listes déroulantes (2 et 3) sont calculées par PowerQuery
Après le choix : Données, Actualiser tout recalcule les résultats et donc le graphique
Il faudrait intégré cela directement dans la suite de ton traitement PQ sans passer par le résultat de ta feuil1
c'est vraiment sympas de l'aide que tu m'apportes. L'ennui est que je débute dans power query et je ne sais pas vraiment comment m'y prendre. Par contre, le document que tu as fait est nikel pour mon besoin. Par contre pour reproduire ça c'est compliqué... Mais je vais essayer.
Quand je vais dans ta requête data il me dis : "Expression.Error : 5 arguments ont été passés à une fonction qui en attendait entre 2 et 4.
Détails :
Pattern=
Arguments=List"
Alors si j'ai bien compris je retourne dans PQ j'enlève mon tableau croisé dynamique et je fais les étapes que tu as fais ?
merci encore
RE
2017 n'existe pas : quelle est ta version Excel ?
Poste plutôt 3 ou 4 csv pour que je reparte des sources...
voici quelques CsV : j'ai la version 2016 d'Excel.
et voila mon PQ :
let
Source = Folder.Files("Y:\Comptage lignes electroniques\HM1"),
#"Lignes filtrées" = Table.SelectRows(Source, each Date.IsInCurrentYear([Date accessed])),
#"Lignes filtrées1" = Table.SelectRows(#"Lignes filtrées", each Text.EndsWith([Name], "-05.csv")),
#"Fichiers masqués filtrés1" = Table.SelectRows(#"Lignes filtrées1", each [Attributes]?[Hidden]? <> true),
#"Appeler une fonction personnalisée1" = Table.AddColumn(#"Fichiers masqués filtrés1", "Transformer le fichier à partir de a (3)", each #"Transformer le fichier à partir de a (3)"([Content])),
#"Colonnes renommées1" = Table.RenameColumns(#"Appeler une fonction personnalisée1", {"Name", "Source.Name"}),
#"Autres colonnes supprimées1" = Table.SelectColumns(#"Colonnes renommées1", {"Source.Name", "Transformer le fichier à partir de a (3)"}),
#"Colonne de tables développée1" = Table.ExpandTableColumn(#"Autres colonnes supprimées1", "Transformer le fichier à partir de a (3)", Table.ColumnNames(#"Transformer le fichier à partir de a (3)"(#"Exemple de fichier (3)"))),
#"Colonnes supprimées" = Table.RemoveColumns(#"Colonne de tables développée1",{"Source.Name"}),
#"Tableau croisé dynamique des colonnes supprimé" = Table.UnpivotOtherColumns(#"Colonnes supprimées", {"Date", "Time"}, "Attribut", "Valeur"),
#"Lignes filtrées2" = Table.SelectRows(#"Tableau croisé dynamique des colonnes supprimé", each [Valeur] = 1),
#"Valeur remplacée1" = Table.ReplaceValue(#"Lignes filtrées2","Error Data[","Err",Replacer.ReplaceText,{"Attribut"}),
#"Valeur remplacée2" = Table.ReplaceValue(#"Valeur remplacée1","]","",Replacer.ReplaceText,{"Attribut"}),
#"Lignes triées" = Table.Sort(#"Valeur remplacée2",{{"Attribut", Order.Ascending}}),
#"Colonne dynamique" = Table.Pivot(#"Lignes triées", List.Distinct(#"Lignes triées"[Attribut]), "Attribut", "Valeur"),
#"Type modifié" = Table.TransformColumnTypes(#"Colonne dynamique",{{"Date", type date}, {"Time", type time}}),
#"Valeur remplacée" = Table.ReplaceValue(#"Type modifié",null,0,Replacer.ReplaceValue,{"Err1", "Err100", "Err101", "Err102", "Err103", "Err104", "Err106", "Err107", "Err108", "Err120", "Err150", "Err151", "Err152", "Err153", "Err154", "Err156", "Err157", "Err158", "Err180", "Err181", "Err182", "Err183", "Err184", "Err186", "Err187", "Err188", "Err19", "Err2", "Err20", "Err200", "Err202", "Err204", "Err205", "Err218", "Err219", "Err220", "Err221", "Err222", "Err223", "Err224", "Err225", "Err226", "Err227", "Err228", "Err230", "Err231", "Err232", "Err233", "Err234", "Err236", "Err237", "Err238", "Err250", "Err258", "Err292", "Err3", "Err311", "Err312", "Err32", "Err334", "Err335", "Err336", "Err350", "Err351", "Err36", "Err370", "Err371", "Err373", "Err39", "Err4", "Err40", "Err48", "Err5", "Err52", "Err53", "Err54", "Err58", "Err62", "Err66", "Err70", "Err74", "Err78", "Err8", "Err82", "Err9", "Err91", "Err93", "Err95", "Error Data"}),
#"Colonnes renommées" = Table.RenameColumns(#"Valeur remplacée",{{"Error Data", "Err0"}})
in
#"Colonnes renommées"
RE
Ton code fait appel à une fonction dont tu ne donnes pas le code
J'ai tout refait.
La méthode que je proposais avec un recalcul par PowerQuery est trop lente car à chaque choix de date, tout se recalcule à partir de l'ensemble des csv.
Vérification faire, l'heure parait inutile sauf éventuellement à travailler sur des tranches horaires. Je l'ai retirée des critères
J'ai opté pour
- une requête limitée aux calculs par jour et Erreur
- un TCD basé sur la requête avec un segment Date
- un tableau annexe qui exploite le TCD et calcule le groupe Autres pour alimenter le graphique
Le chemin est dans la cellule jaune est à adapter à ton contexte avant d'actualiser
A noter qu'il faut enlever le fichier 00_20210705-05.csv qui est une synthèse (ou le filtrer dans la requête)
merci à toi c'est juste exceptionnel de ta part. Je viens de tester mais en mettant le lien de mon fichier sa mouline depuis 1 heures. Je me suis dis c'est peut être trop lourd alors j'ai mis le lien du dossier "a" contenant les csv que je t'ai envoyé mais la aussi sa mouline et ne fonctionne pas. La j'avoue je suis perdu. c'est vraiment le résultat magnifique je comprends pas pourquoi sa mouline autant. On parle d'un dossier pour le petit de 18Mo.
du coup quand je fais "afficher les requêtes, je me rends compte qu'il y a une erreur sur data et data 2 :
Une erreur s'est produite dans la requête « ». Expression.Error : Désolé... Nous n'avons pas trouvé la colonne « Time » de la table.
Détails :
Time
es se à cause de cela que sa ne fonctionne pas ?
RE
dans le dossier j'ai 199 csv pour 10,1 Mo
As-tu bien supprimé ou fiiltré le fichier 00_20210705-05.csv qui n'est pas identique comme je l'avais indiqué ?
Tous les csv doivent avoir la même structure
Rien que la taille du fichier csv (8 Mo) doit alerter...
oui je viens de la supprimer mais j'ai toujours ce message d'erreur qui me dit :
Expression.Error : Désolé... Nous n'avons pas trouvé la colonne « Time » de la table.
Détails :
Time
RE
Si tu reprends bien les 195 csv que tu m'as envoyés dans le zip moins le fichier de 4MO + les 5 envoyés à part, cela fonctionne...
As-tu bien modifié le chemin ?
Traitement n'est pas une requête mais une fonction...
Je viens de télécharger le fichier que j'ai joint et tout fonctionne...
Éventuellement poste le code de la fonction Transformer le fichier à partir de a (3) qu'il y avait dans ton fichier de traitement...
voila le code demandé. Mais se que j'ai fait est très loin de ton travail donc je doute que tu puisses utiliser cela. J'ai du faire des choses complètement inutile.
let
Source = Csv.Document(#"Paramètre de l'exemple de fichier3",[Delimiter=",", Columns=402, Encoding=1252, QuoteStyle=QuoteStyle.None]),
#"Premières lignes supprimées" = Table.Skip(Source,4),
#"En-têtes promus" = Table.PromoteHeaders(#"Premières lignes supprimées", [PromoteAllScalars=true]),
#"Type modifié" = Table.TransformColumnTypes(#"En-têtes promus",{{"Date", type date}, {"Time", type time}, {"Error Data", Int64.Type}, {"Error Data[1]", Int64.Type}, {"Error Data[2]", Int64.Type}, {"Error Data[3]", Int64.Type}, {"Error Data[4]", Int64.Type}, {"Error Data[5]", Int64.Type}, {"Error Data[6]", Int64.Type}, {"Error Data[7]", Int64.Type}, {"Error Data[8]", Int64.Type}, {"Error Data[9]", Int64.Type}, {"Error Data[10]", Int64.Type}, {"Error Data[11]", Int64.Type}, {"Error Data[12]", Int64.Type}, {"Error Data[13]", Int64.Type}, {"Error Data[14]", Int64.Type}, {"Error Data[15]", Int64.Type}, {"Error Data[16]", Int64.Type}, {"Error Data[17]", Int64.Type}, {"Error Data[18]", Int64.Type}, {"Error Data[19]", Int64.Type}, {"Error Data[20]", Int64.Type}, {"Error Data[21]", Int64.Type}, {"Error Data[22]", Int64.Type}, {"Error Data[23]", Int64.Type}, {"Error Data[24]", Int64.Type}, {"Error Data[25]", Int64.Type}, {"Error Data[26]", Int64.Type}, {"Error Data[27]", Int64.Type}, {"Error Data[28]", Int64.Type}, {"Error Data[29]", Int64.Type}, {"Error Data[30]", Int64.Type}, {"Error Data[31]", Int64.Type}, {"Error Data[32]", Int64.Type}, {"Error Data[33]", Int64.Type}, {"Error Data[34]", Int64.Type}, {"Error Data[35]", Int64.Type}, {"Error Data[36]", Int64.Type}, {"Error Data[37]", Int64.Type}, {"Error Data[38]", Int64.Type}, {"Error Data[39]", Int64.Type}, {"Error Data[40]", Int64.Type}, {"Error Data[41]", Int64.Type}, {"Error Data[42]", Int64.Type}, {"Error Data[43]", Int64.Type}, {"Error Data[44]", Int64.Type}, {"Error Data[45]", Int64.Type}, {"Error Data[46]", Int64.Type}, {"Error Data[47]", Int64.Type}, {"Error Data[48]", Int64.Type}, {"Error Data[49]", Int64.Type}, {"Error Data[50]", Int64.Type}, {"Error Data[51]", Int64.Type}, {"Error Data[52]", Int64.Type}, {"Error Data[53]", Int64.Type}, {"Error Data[54]", Int64.Type}, {"Error Data[55]", Int64.Type}, {"Error Data[56]", Int64.Type}, {"Error Data[57]", Int64.Type}, {"Error Data[58]", Int64.Type}, {"Error Data[59]", Int64.Type}, {"Error Data[60]", Int64.Type}, {"Error Data[61]", Int64.Type}, {"Error Data[62]", Int64.Type}, {"Error Data[63]", Int64.Type}, {"Error Data[64]", Int64.Type}, {"Error Data[65]", Int64.Type}, {"Error Data[66]", Int64.Type}, {"Error Data[67]", Int64.Type}, {"Error Data[68]", Int64.Type}, {"Error Data[69]", Int64.Type}, {"Error Data[70]", Int64.Type}, {"Error Data[71]", Int64.Type}, {"Error Data[72]", Int64.Type}, {"Error Data[73]", Int64.Type}, {"Error Data[74]", Int64.Type}, {"Error Data[75]", Int64.Type}, {"Error Data[76]", Int64.Type}, {"Error Data[77]", Int64.Type}, {"Error Data[78]", Int64.Type}, {"Error Data[79]", Int64.Type}, {"Error Data[80]", Int64.Type}, {"Error Data[81]", Int64.Type}, {"Error Data[82]", Int64.Type}, {"Error Data[83]", Int64.Type}, {"Error Data[84]", Int64.Type}, {"Error Data[85]", Int64.Type}, {"Error Data[86]", Int64.Type}, {"Error Data[87]", Int64.Type}, {"Error Data[88]", Int64.Type}, {"Error Data[89]", Int64.Type}, {"Error Data[90]", Int64.Type}, {"Error Data[91]", Int64.Type}, {"Error Data[92]", Int64.Type}, {"Error Data[93]", Int64.Type}, {"Error Data[94]", Int64.Type}, {"Error Data[95]", Int64.Type}, {"Error Data[96]", Int64.Type}, {"Error Data[97]", Int64.Type}, {"Error Data[98]", Int64.Type}, {"Error Data[99]", Int64.Type}, {"Error Data[100]", Int64.Type}, {"Error Data[101]", Int64.Type}, {"Error Data[102]", Int64.Type}, {"Error Data[103]", Int64.Type}, {"Error Data[104]", Int64.Type}, {"Error Data[105]", Int64.Type}, {"Error Data[106]", Int64.Type}, {"Error Data[107]", Int64.Type}, {"Error Data[108]", Int64.Type}, {"Error Data[109]", Int64.Type}, {"Error Data[110]", Int64.Type}, {"Error Data[111]", Int64.Type}, {"Error Data[112]", Int64.Type}, {"Error Data[113]", Int64.Type}, {"Error Data[114]", Int64.Type}, {"Error Data[115]", Int64.Type}, {"Error Data[116]", Int64.Type}, {"Error Data[117]", Int64.Type}, {"Error Data[118]", Int64.Type}, {"Error Data[119]", Int64.Type}, {"Error Data[120]", Int64.Type}, {"Error Data[121]", Int64.Type}, {"Error Data[122]", Int64.Type}, {"Error Data[123]", Int64.Type}, {"Error Data[124]", Int64.Type}, {"Error Data[125]", Int64.Type}, {"Error Data[126]", Int64.Type}, {"Error Data[127]", Int64.Type}, {"Error Data[128]", Int64.Type}, {"Error Data[129]", Int64.Type}, {"Error Data[130]", Int64.Type}, {"Error Data[131]", Int64.Type}, {"Error Data[132]", Int64.Type}, {"Error Data[133]", Int64.Type}, {"Error Data[134]", Int64.Type}, {"Error Data[135]", Int64.Type}, {"Error Data[136]", Int64.Type}, {"Error Data[137]", Int64.Type}, {"Error Data[138]", Int64.Type}, {"Error Data[139]", Int64.Type}, {"Error Data[140]", Int64.Type}, {"Error Data[141]", Int64.Type}, {"Error Data[142]", Int64.Type}, {"Error Data[143]", Int64.Type}, {"Error Data[144]", Int64.Type}, {"Error Data[145]", Int64.Type}, {"Error Data[146]", Int64.Type}, {"Error Data[147]", Int64.Type}, {"Error Data[148]", Int64.Type}, {"Error Data[149]", Int64.Type}, {"Error Data[150]", Int64.Type}, {"Error Data[151]", Int64.Type}, {"Error Data[152]", Int64.Type}, {"Error Data[153]", Int64.Type}, {"Error Data[154]", Int64.Type}, {"Error Data[155]", Int64.Type}, {"Error Data[156]", Int64.Type}, {"Error Data[157]", Int64.Type}, {"Error Data[158]", Int64.Type}, {"Error Data[159]", Int64.Type}, {"Error Data[160]", Int64.Type}, {"Error Data[161]", Int64.Type}, {"Error Data[162]", Int64.Type}, {"Error Data[163]", Int64.Type}, {"Error Data[164]", Int64.Type}, {"Error Data[165]", Int64.Type}, {"Error Data[166]", Int64.Type}, {"Error Data[167]", Int64.Type}, {"Error Data[168]", Int64.Type}, {"Error Data[169]", Int64.Type}, {"Error Data[170]", Int64.Type}, {"Error Data[171]", Int64.Type}, {"Error Data[172]", Int64.Type}, {"Error Data[173]", Int64.Type}, {"Error Data[174]", Int64.Type}, {"Error Data[175]", Int64.Type}, {"Error Data[176]", Int64.Type}, {"Error Data[177]", Int64.Type}, {"Error Data[178]", Int64.Type}, {"Error Data[179]", Int64.Type}, {"Error Data[180]", Int64.Type}, {"Error Data[181]", Int64.Type}, {"Error Data[182]", Int64.Type}, {"Error Data[183]", Int64.Type}, {"Error Data[184]", Int64.Type}, {"Error Data[185]", Int64.Type}, {"Error Data[186]", Int64.Type}, {"Error Data[187]", Int64.Type}, {"Error Data[188]", Int64.Type}, {"Error Data[189]", Int64.Type}, {"Error Data[190]", Int64.Type}, {"Error Data[191]", Int64.Type}, {"Error Data[192]", Int64.Type}, {"Error Data[193]", Int64.Type}, {"Error Data[194]", Int64.Type}, {"Error Data[195]", Int64.Type}, {"Error Data[196]", Int64.Type}, {"Error Data[197]", Int64.Type}, {"Error Data[198]", Int64.Type}, {"Error Data[199]", Int64.Type}, {"Error Data[200]", Int64.Type}, {"Error Data[201]", Int64.Type}, {"Error Data[202]", Int64.Type}, {"Error Data[203]", Int64.Type}, {"Error Data[204]", Int64.Type}, {"Error Data[205]", Int64.Type}, {"Error Data[206]", Int64.Type}, {"Error Data[207]", Int64.Type}, {"Error Data[208]", Int64.Type}, {"Error Data[209]", Int64.Type}, {"Error Data[210]", Int64.Type}, {"Error Data[211]", Int64.Type}, {"Error Data[212]", Int64.Type}, {"Error Data[213]", Int64.Type}, {"Error Data[214]", Int64.Type}, {"Error Data[215]", Int64.Type}, {"Error Data[216]", Int64.Type}, {"Error Data[217]", Int64.Type}, {"Error Data[218]", Int64.Type}, {"Error Data[219]", Int64.Type}, {"Error Data[220]", Int64.Type}, {"Error Data[221]", Int64.Type}, {"Error Data[222]", Int64.Type}, {"Error Data[223]", Int64.Type}, {"Error Data[224]", Int64.Type}, {"Error Data[225]", Int64.Type}, {"Error Data[226]", Int64.Type}, {"Error Data[227]", Int64.Type}, {"Error Data[228]", Int64.Type}, {"Error Data[229]", Int64.Type}, {"Error Data[230]", Int64.Type}, {"Error Data[231]", Int64.Type}, {"Error Data[232]", Int64.Type}, {"Error Data[233]", Int64.Type}, {"Error Data[234]", Int64.Type}, {"Error Data[235]", Int64.Type}, {"Error Data[236]", Int64.Type}, {"Error Data[237]", Int64.Type}, {"Error Data[238]", Int64.Type}, {"Error Data[239]", Int64.Type}, {"Error Data[240]", Int64.Type}, {"Error Data[241]", Int64.Type}, {"Error Data[242]", Int64.Type}, {"Error Data[243]", Int64.Type}, {"Error Data[244]", Int64.Type}, {"Error Data[245]", Int64.Type}, {"Error Data[246]", Int64.Type}, {"Error Data[247]", Int64.Type}, {"Error Data[248]", Int64.Type}, {"Error Data[249]", Int64.Type}, {"Error Data[250]", Int64.Type}, {"Error Data[251]", Int64.Type}, {"Error Data[252]", Int64.Type}, {"Error Data[253]", Int64.Type}, {"Error Data[254]", Int64.Type}, {"Error Data[255]", Int64.Type}, {"Error Data[256]", Int64.Type}, {"Error Data[257]", Int64.Type}, {"Error Data[258]", Int64.Type}, {"Error Data[259]", Int64.Type}, {"Error Data[260]", Int64.Type}, {"Error Data[261]", Int64.Type}, {"Error Data[262]", Int64.Type}, {"Error Data[263]", Int64.Type}, {"Error Data[264]", Int64.Type}, {"Error Data[265]", Int64.Type}, {"Error Data[266]", Int64.Type}, {"Error Data[267]", Int64.Type}, {"Error Data[268]", Int64.Type}, {"Error Data[269]", Int64.Type}, {"Error Data[270]", Int64.Type}, {"Error Data[271]", Int64.Type}, {"Error Data[272]", Int64.Type}, {"Error Data[273]", Int64.Type}, {"Error Data[274]", Int64.Type}, {"Error Data[275]", Int64.Type}, {"Error Data[276]", Int64.Type}, {"Error Data[277]", Int64.Type}, {"Error Data[278]", Int64.Type}, {"Error Data[279]", Int64.Type}, {"Error Data[280]", Int64.Type}, {"Error Data[281]", Int64.Type}, {"Error Data[282]", Int64.Type}, {"Error Data[283]", Int64.Type}, {"Error Data[284]", Int64.Type}, {"Error Data[285]", Int64.Type}, {"Error Data[286]", Int64.Type}, {"Error Data[287]", Int64.Type}, {"Error Data[288]", Int64.Type}, {"Error Data[289]", Int64.Type}, {"Error Data[290]", Int64.Type}, {"Error Data[291]", Int64.Type}, {"Error Data[292]", Int64.Type}, {"Error Data[293]", Int64.Type}, {"Error Data[294]", Int64.Type}, {"Error Data[295]", Int64.Type}, {"Error Data[296]", Int64.Type}, {"Error Data[297]", Int64.Type}, {"Error Data[298]", Int64.Type}, {"Error Data[299]", Int64.Type}, {"Error Data[300]", Int64.Type}, {"Error Data[301]", Int64.Type}, {"Error Data[302]", Int64.Type}, {"Error Data[303]", Int64.Type}, {"Error Data[304]", Int64.Type}, {"Error Data[305]", Int64.Type}, {"Error Data[306]", Int64.Type}, {"Error Data[307]", Int64.Type}, {"Error Data[308]", Int64.Type}, {"Error Data[309]", Int64.Type}, {"Error Data[310]", Int64.Type}, {"Error Data[311]", Int64.Type}, {"Error Data[312]", Int64.Type}, {"Error Data[313]", Int64.Type}, {"Error Data[314]", Int64.Type}, {"Error Data[315]", Int64.Type}, {"Error Data[316]", Int64.Type}, {"Error Data[317]", Int64.Type}, {"Error Data[318]", Int64.Type}, {"Error Data[319]", Int64.Type}, {"Error Data[320]", Int64.Type}, {"Error Data[321]", Int64.Type}, {"Error Data[322]", Int64.Type}, {"Error Data[323]", Int64.Type}, {"Error Data[324]", Int64.Type}, {"Error Data[325]", Int64.Type}, {"Error Data[326]", Int64.Type}, {"Error Data[327]", Int64.Type}, {"Error Data[328]", Int64.Type}, {"Error Data[329]", Int64.Type}, {"Error Data[330]", Int64.Type}, {"Error Data[331]", Int64.Type}, {"Error Data[332]", Int64.Type}, {"Error Data[333]", Int64.Type}, {"Error Data[334]", Int64.Type}, {"Error Data[335]", Int64.Type}, {"Error Data[336]", Int64.Type}, {"Error Data[337]", Int64.Type}, {"Error Data[338]", Int64.Type}, {"Error Data[339]", Int64.Type}, {"Error Data[340]", Int64.Type}, {"Error Data[341]", Int64.Type}, {"Error Data[342]", Int64.Type}, {"Error Data[343]", Int64.Type}, {"Error Data[344]", Int64.Type}, {"Error Data[345]", Int64.Type}, {"Error Data[346]", Int64.Type}, {"Error Data[347]", Int64.Type}, {"Error Data[348]", Int64.Type}, {"Error Data[349]", Int64.Type}, {"Error Data[350]", Int64.Type}, {"Error Data[351]", Int64.Type}, {"Error Data[352]", Int64.Type}, {"Error Data[353]", Int64.Type}, {"Error Data[354]", Int64.Type}, {"Error Data[355]", Int64.Type}, {"Error Data[356]", Int64.Type}, {"Error Data[357]", Int64.Type}, {"Error Data[358]", Int64.Type}, {"Error Data[359]", Int64.Type}, {"Error Data[360]", Int64.Type}, {"Error Data[361]", Int64.Type}, {"Error Data[362]", Int64.Type}, {"Error Data[363]", Int64.Type}, {"Error Data[364]", Int64.Type}, {"Error Data[365]", Int64.Type}, {"Error Data[366]", Int64.Type}, {"Error Data[367]", Int64.Type}, {"Error Data[368]", Int64.Type}, {"Error Data[369]", Int64.Type}, {"Error Data[370]", Int64.Type}, {"Error Data[371]", Int64.Type}, {"Error Data[372]", Int64.Type}, {"Error Data[373]", Int64.Type}, {"Error Data[374]", Int64.Type}, {"Error Data[375]", Int64.Type}, {"Error Data[376]", Int64.Type}, {"Error Data[377]", Int64.Type}, {"Error Data[378]", Int64.Type}, {"Error Data[379]", Int64.Type}, {"Error Data[380]", Int64.Type}, {"Error Data[381]", Int64.Type}, {"Error Data[382]", Int64.Type}, {"Error Data[383]", Int64.Type}, {"Error Data[384]", Int64.Type}, {"Error Data[385]", Int64.Type}, {"Error Data[386]", Int64.Type}, {"Error Data[387]", Int64.Type}, {"Error Data[388]", Int64.Type}, {"Error Data[389]", Int64.Type}, {"Error Data[390]", Int64.Type}, {"Error Data[391]", Int64.Type}, {"Error Data[392]", Int64.Type}, {"Error Data[393]", Int64.Type}, {"Error Data[394]", Int64.Type}, {"Error Data[395]", Int64.Type}, {"Error Data[396]", Int64.Type}, {"Error Data[397]", Int64.Type}, {"Error Data[398]", Int64.Type}, {"Error Data[399]", Int64.Type}})
in
#"Type modifié"
Je comprends vraiment pas pourquoi ton fichier ne fonctionne pas chez moi... En plus le message d'erreur parle du table time que je ne retrouve nulle part...
RE
letSource = Csv.Document(#"Paramètre de l'exemple de fichier3",[Delimiter=",", Columns=402, Encoding=1252, QuoteStyle=QuoteStyle.None]),
#"Premières lignes supprimées" = Table.Skip(Source,4),
#"En-têtes promus" = Table.PromoteHeaders(#"Premières lignes supprimées", [PromoteAllScalars=true]),
#"Type modifié" = Table.TransformColumnTypes(#"En-têtes promus",{{"Date", type date}, {"Time", type time}...Je comprends vraiment pas pourquoi ton fichier ne fonctionne pas chez moi... En plus le message d'erreur parle du table time que je ne retrouve nulle part...
Je voulais juste vérifier l'encodage : c'est bien le même et tu peux voir aussi la colonne Time dans ton code
Je viens de passer le dossier de csv et le fichier Excel sur un autre ordi : Excel 2010 avec l'add on PowerQuery et là aussi tout fonctionne
Tu as du mettre l'xls dans le dossier. Dans ce cas il faut filtrer dans la requête pour ne sélectionner que l'extension csv
j'ai compris il y avais un dossier compressé dans le dossier. Maintenant je dirige ton fichier sur l'emplacement réseau et la problème : des fichiers y'en a énormément des différents que je ne peux pas toucher. Je sais que mes fichiers terminent par 05.csv. Dois je appliquer un filtre sur PQ ou y a t il un moyen de le faire en amont pour alléger l'import de la source ?
En tous cas je te remercie pour ce travail magnifique. Et je vais étudier chaque ligne de code pour comprendre se que tu as fait.
RE
Si tu filtres et que le résultat du filtre donne bien seulement les csv au bon format, pas de soucis : il ne sont pas traités donc n'impactent que très peu le temps



