March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe 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
Hi All,
Could you please help, i have a problem with the code and not sure if i got it correct.
let
Source = JobsPerformed,
#"Filtered Rows" = Table.SelectRows(Source, each [Ticket Number] <> "" or [Ticket Number] <> null),
#"Renamed Columns" = Table.RenameColumns(#"Filtered Rows", {{"Veeva #(lf)Channel", "Veeva Channel"}, {"Global/#(lf)Local", "Global_or_Local"}, {"Global#(lf)Master Year", "Global Master Year"}, {"Total No. of #(lf)Slides in GM", "Total Number of Slides within GM"}, {"No. of Global Slides #(lf)in localised version", "Number of Global Slides with localised version"}, {"% of Global slides in#(lf)Localised version", "Percentage of Global slides with Localised version"}, {"No of Local #(lf)Slides(if any)", "Number of Local Slides"}, {"Date of #(lf)Approval", "Date of Approval"}, {"Actual #(lf)Receiving Date", "Actual Receiving Date"}, {"Designer #(lf)Engg Min", "Designer Engg Min"}, {"Main Folder #(lf)(Directory)", "Main Folder"}, {"Sub Folder #(lf)(Sub-Directory)", "Sub Folder"}}),
#"Duplicated Column" = Table.DuplicateColumn(#"Renamed Columns", "Draft", "Draft - Copy"),
#"Replaced Value" = Table.ReplaceValue(#"Duplicated Column","Draft_","",Replacer.ReplaceText,{"Draft - Copy"}),
#"Renamed Columns1" = Table.RenameColumns(#"Replaced Value",{{"Draft - Copy", "DraftNumber"}}),
#"Replaced Value1" = Table.ReplaceValue(#"Renamed Columns1","",null,Replacer.ReplaceValue,{"Draft"}),
#"Filled Down" = Table.FillDown(#"Replaced Value1",{"Draft"}),
#"Inserted Text After Delimiter" = Table.AddColumn(#"Filled Down", "Text After Delimiter", each Text.AfterDelimiter([Draft], "_"), type text),
#"Grouped Rows" = Table.Group(#"Inserted Text After Delimiter", {"Ticket Number"}, {{"TicketNumber.1", each _, type table [Ticket Number=nullable text, Draft=nullable text, Veeva Channel=nullable text, Market=nullable text, Market Contact=nullable text, Category=nullable text, Channel=nullable text, Brand=nullable text, Sub Brand=nullable text, Global_or_Local=nullable text, Name of the Global Master=nullable text, Global Master Year=any, Total Number of Slides within GM=any, Number of Global Slides with localised version=any, Percentage of Global slides with Localised version=any, Number of Local Slides=any, Zinc Code=nullable text, Presentation Name on iRep=nullable text, Job Type=nullable text, Job Type for SLA Calulation=nullable text, SLA as per Job Type=number, Date of Approval=nullable date, Status=nullable text, Actual Receiving Date=nullable date, DC Review start date=nullable date, DC Review end date=nullable date, DC Start Date=nullable date, Delivery Date=nullable date, Content Launch Date=nullable date, TAT=nullable number, #"TAT Met Yes/No"=nullable text, Designer Name=nullable text, Designer Engg Min=nullable number, Slide Count=nullable number, Main Folder=nullable text, Sub Folder=nullable text, Comments=nullable text, Assigned By=any, MT Version=any, DraftNumber=nullable text, Text After Delimiter=text]},{"max", each List.Max([Text After Delimiter]), type text}}),
#"Expanded TicketNumber.1" = Table.ExpandTableColumn(#"Grouped Rows", "TicketNumber.1", {"Ticket Number", "Draft", "Veeva Channel", "Market", "Market Contact", "Category", "Channel", "Brand", "Sub Brand", "Global_or_Local", "Name of the Global Master", "Global Master Year", "Total Number of Slides within GM", "Number of Global Slides with localised version", "Percentage of Global slides with Localised version", "Number of Local Slides", "Zinc Code", "Presentation Name on iRep", "Job Type", "Job Type for SLA Calulation", "SLA as per Job Type", "Date of Approval", "Status", "Actual Receiving Date", "DC Review start date", "DC Review end date", "DC Start Date", "Delivery Date", "Content Launch Date", "TAT", "TAT Met Yes/No", "Designer Name", "Designer Engg Min", "Slide Count", "Main Folder", "Sub Folder", "Comments", "Assigned By", "MT Version", "DraftNumber", "Text After Delimiter"}, {"Ticket Number.1", "Draft", "Veeva Channel", "Market", "Market Contact", "Category", "Channel", "Brand", "Sub Brand", "Global_or_Local", "Name of the Global Master", "Global Master Year", "Total Number of Slides within GM", "Number of Global Slides with localised version", "Percentage of Global slides with Localised version", "Number of Local Slides", "Zinc Code", "Presentation Name on iRep", "Job Type", "Job Type for SLA Calulation", "SLA as per Job Type", "Date of Approval", "Status", "Actual Receiving Date", "DC Review start date", "DC Review end date", "DC Start Date", "Delivery Date", "Content Launch Date", "TAT", "TAT Met Yes/No", "Designer Name", "Designer Engg Min", "Slide Count", "Main Folder", "Sub Folder", "Comments", "Assigned By", "MT Version", "DraftNumber", "Text After Delimiter"})
#"Filtered Rows1" = Table.SelectRows(#"Expanded TicketNumber.1", each [Text After Delimiter] = [max])
in
#"Filtered Rows1"
Solved! Go to Solution.
Regards
Amine Jerbi
If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook
Regards
Amine Jerbi
If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook
Hey @Anonymous ,
like this we cannot help you.
We don't have access to the source "JobsPerformed" and you didn't tell what your problem is.
Maybe take a look at the "How to Get Your Question Answered Quickly" post and make it easier for everyone to help you:
https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1891875
Best regards
Denis
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
123 | |
85 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |