Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
MBOUGA4F
Frequent Visitor

One applied step treated differently from Pwer BI projet to an other

i have the same source of Data and the same code under (advanced editoris window') that i just copied from the first project into the second but an applied steps called "colonne de table developpée" equivalent of developped colomns in english give a different result and it affects the rest of the steps result expected.pngresult not expected.pngsteps.png

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Try posting the M code from the advanced editor. Determining issues in a picture is difficult if not impossible.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Try posting the M code from the advanced editor. Determining issues in a picture is difficult if not impossible.

let
Source = Folder.Files("C:\Users\MBOUGA4F\Desktop\ENDESA\ANNEXES\ALOCAT_Histo\012019\ALOCATJ"),
#"Split Column by Delimiter" = Table.SplitColumn(Source, "Name", Splitter.SplitTextByDelimiter("_", QuoteStyle.Csv), {"Name.1", "Name.2", "Name.3", "Name.4", "Name.5", "Name.6", "Name.7"}),
#"Changed Type with Locale" = Table.TransformColumnTypes(#"Split Column by Delimiter", {{"Name.2", type date}}, "fr-FR"),
#"Removed Other Columns" = Table.SelectColumns(#"Changed Type with Locale",{"Content", "Name.2", "Name.3"}),
#"Fichiers masqués filtrés1" = Table.SelectRows(#"Removed Other Columns", each [Attributes]?[Hidden]? <> true),
#"Appeler une fonction personnalisée1" = Table.AddColumn(#"Fichiers masqués filtrés1", "Transformer le fichier", each #"Transformer le fichier"([Content])),
#"Autres colonnes supprimées1" = Table.SelectColumns(#"Appeler une fonction personnalisée1", {"Transformer le fichier","Name.3"}),
#"Colonne de tables développée1" = Table.ExpandTableColumn(#"Autres colonnes supprimées1", "Transformer le fichier", Table.ColumnNames(#"Transformer le fichier"(#"Exemple de fichier"))),
#"Type modifié" = Table.TransformColumnTypes(#"Colonne de tables développée1",{{"Day", type date}, {"ListOfPointAllocations", type any}, {"ListOfOtherAllocations", type any}}),
#"Expanded ListOfPointAllocations" = Table.ExpandTableColumn(#"Type modifié", "ListOfPointAllocations", {"PointAllocation"}, {"PointAllocation"}),
#"Expanded PointAllocation" = Table.ExpandTableColumn(#"Expanded ListOfPointAllocations", "PointAllocation", {"ListOfDeliveryPoints"}, {"ListOfDeliveryPoints"}),
#"Expanded ListOfDeliveryPoints" = Table.ExpandTableColumn(#"Expanded PointAllocation", "ListOfDeliveryPoints", {"DeliveryPoint"}, {"DeliveryPoint"}),
#"Expanded DeliveryPoint" = Table.ExpandTableColumn(#"Expanded ListOfDeliveryPoints", "DeliveryPoint", {"Point", "Quantity", "Quantityp", "Quantitynp"}, {"Point", "Quantity", "Quantityp", "Quantitynp"}),
#"Filtered Rows" = Table.SelectRows(#"Expanded DeliveryPoint", each ([Point] <> null)),
#"Removed Columns" = Table.RemoveColumns(#"Filtered Rows",{"ListOfOtherAllocations"}),
#"Changed Type1" = Table.TransformColumnTypes(#"Removed Columns",{{"Quantity", type number}, {"Quantityp", type number}, {"Quantitynp", type number}}),
#"Personnalisée ajoutée" = Table.AddColumn(#"Changed Type1", "Personnalisé", each Date.Month([Day])),
#"Colonnes renommées" = Table.RenameColumns(#"Personnalisée ajoutée",{{"Personnalisé", "Month"}}),
#"Personnalisée ajoutée1" = Table.AddColumn(#"Colonnes renommées", "Year", each Date.Year([Day])),
#"Filtered Rows2" = Table.SelectRows(#"Personnalisée ajoutée1", each true),
#"Filtered Rows1" = Table.SelectRows(#"Filtered Rows2", each true),
#"Grouped Rows" = Table.Group(#"Filtered Rows1", {"Point", "Month", "Year", "Name.3"}, {{"Qty", each List.Sum([Quantity]), type number}, {"QtyP", each List.Sum([Quantityp]), type number}, {"QtyNP", each List.Sum([Quantitynp]), type number}}),
#"Colonnes renommées1" = Table.RenameColumns(#"Grouped Rows",{{"Name.3", "TypeConso"}})
in
#"Colonnes renommées1"

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.