OlderMan
New Member
- Joined
- Aug 28, 2016
- Messages
- 9
[FONT="]I have a query to a report I created on a form website and need to filter it into reports for different people.[/FONT]
[FONT="]The table has a column for "Approved By" and a column "Edit Submission" which is a link.[/FONT]
[FONT="]I need the Query to filter the table and only give results for a particular Approver, then I make a new query for another Approver on a new sheet.[/FONT]
[FONT="]Example table: So a separate report for each of the approvers below. [/FONT]
[FONT="]At the same time turn the last column "Edit Submission" into the hyperlink it is on the report. [/FONT]
[FONT="]Also, if possible make the Form No. into the same link as the Edit Submission link for that row.[/FONT]
[FONT="]Here is made up sample with fewer columns.[/FONT]
[FONT="]Website report[/FONT]
[TABLE="width: 979"]
<tbody style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit; margin: 0px; outline: 0px; padding: 0px;">[TR]
[TD="align: center"]Form No.[/TD]
[TD]Approved by[/TD]
[TD="align: center"]Received Date[/TD]
[TD="align: center"]Approved Date[/TD]
[TD]Edit link[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD]Cindy S[/TD]
[TD="align: center"]11/09/17[/TD]
[TD="align: center"]11/10/17[/TD]
[TD]Edit Submission[/TD]
[/TR]
[TR]
[TD="align: center"]34[/TD]
[TD]Claude D[/TD]
[TD="align: center"]09/10/17[/TD]
[TD="align: center"]10/10/17[/TD]
[TD]Edit Submission[/TD]
[/TR]
[TR]
[TD="align: center"]25[/TD]
[TD]Claude D[/TD]
[TD="align: center"]05/10/17[/TD]
[TD="align: center"]08/10/17[/TD]
[TD]Edit Submission[/TD]
[/TR]
[TR]
[TD="align: center"]8[/TD]
[TD]Cindy S[/TD]
[TD="align: center"]14/10/17[/TD]
[TD="align: center"]20/10/17[/TD]
[TD]Edit Submission[/TD]
[/TR]
[TR]
[TD="align: center"]66[/TD]
[TD]Cindy S[/TD]
[TD="align: center"]11/11/17[/TD]
[TD="align: center"]14/11/17[/TD]
[TD]Edit Submission[/TD]
[/TR]
[TR]
[TD="align: center"]155[/TD]
[TD]John Smith[/TD]
[TD="align: center"]05/11/17[/TD]
[TD="align: center"]09/11/17[/TD]
[TD]Edit Submission[/TD]
[/TR]
[TR]
[TD="align: center"]12[/TD]
[TD]Claude D[/TD]
[TD="align: center"]10/11/17[/TD]
[TD="align: center"]14/11/17[/TD]
[TD]Edit Submission[/TD]
[/TR]
[TR]
[TD="align: center"]88[/TD]
[TD]John Smith[/TD]
[TD="align: center"]10/09/17[/TD]
[TD="align: center"]12/09/17[/TD]
[TD]Edit Submission[/TD]
[/TR]
</tbody>[/TABLE]
[FONT="]Filtered Excel Report for Cindy S[/FONT]
[TABLE="width: 979"]
<tbody style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit; margin: 0px; outline: 0px; padding: 0px;">[TR]
[TD="align: center"]Form No.[/TD]
[TD]Approved by[/TD]
[TD="align: center"]Received Date[/TD]
[TD="align: center"]Approved Date[/TD]
[TD]Edit link[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD]Cindy S[/TD]
[TD="align: center"]11/09/17[/TD]
[TD="align: center"]11/10/17[/TD]
[TD]Edit Submission[/TD]
[/TR]
[TR]
[TD="align: center"]8[/TD]
[TD]Cindy S[/TD]
[TD="align: center"]14/10/17[/TD]
[TD="align: center"]20/10/17[/TD]
[TD]Edit Submission[/TD]
[/TR]
[TR]
[TD="align: center"]66[/TD]
[TD]Cindy S[/TD]
[TD="align: center"]11/11/17[/TD]
[TD="align: center"]14/11/17[/TD]
[TD]Edit Submission[/TD]
[/TR]
</tbody>[/TABLE]
[FONT="]Here is what I have so far, not giving me the links.
[/FONT]
[FONT="]The table has a column for "Approved By" and a column "Edit Submission" which is a link.[/FONT]
[FONT="]I need the Query to filter the table and only give results for a particular Approver, then I make a new query for another Approver on a new sheet.[/FONT]
[FONT="]Example table: So a separate report for each of the approvers below. [/FONT]
[FONT="]At the same time turn the last column "Edit Submission" into the hyperlink it is on the report. [/FONT]
[FONT="]Also, if possible make the Form No. into the same link as the Edit Submission link for that row.[/FONT]
[FONT="]Here is made up sample with fewer columns.[/FONT]
[FONT="]Website report[/FONT]
[TABLE="width: 979"]
<tbody style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit; margin: 0px; outline: 0px; padding: 0px;">[TR]
[TD="align: center"]Form No.[/TD]
[TD]Approved by[/TD]
[TD="align: center"]Received Date[/TD]
[TD="align: center"]Approved Date[/TD]
[TD]Edit link[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD]Cindy S[/TD]
[TD="align: center"]11/09/17[/TD]
[TD="align: center"]11/10/17[/TD]
[TD]Edit Submission[/TD]
[/TR]
[TR]
[TD="align: center"]34[/TD]
[TD]Claude D[/TD]
[TD="align: center"]09/10/17[/TD]
[TD="align: center"]10/10/17[/TD]
[TD]Edit Submission[/TD]
[/TR]
[TR]
[TD="align: center"]25[/TD]
[TD]Claude D[/TD]
[TD="align: center"]05/10/17[/TD]
[TD="align: center"]08/10/17[/TD]
[TD]Edit Submission[/TD]
[/TR]
[TR]
[TD="align: center"]8[/TD]
[TD]Cindy S[/TD]
[TD="align: center"]14/10/17[/TD]
[TD="align: center"]20/10/17[/TD]
[TD]Edit Submission[/TD]
[/TR]
[TR]
[TD="align: center"]66[/TD]
[TD]Cindy S[/TD]
[TD="align: center"]11/11/17[/TD]
[TD="align: center"]14/11/17[/TD]
[TD]Edit Submission[/TD]
[/TR]
[TR]
[TD="align: center"]155[/TD]
[TD]John Smith[/TD]
[TD="align: center"]05/11/17[/TD]
[TD="align: center"]09/11/17[/TD]
[TD]Edit Submission[/TD]
[/TR]
[TR]
[TD="align: center"]12[/TD]
[TD]Claude D[/TD]
[TD="align: center"]10/11/17[/TD]
[TD="align: center"]14/11/17[/TD]
[TD]Edit Submission[/TD]
[/TR]
[TR]
[TD="align: center"]88[/TD]
[TD]John Smith[/TD]
[TD="align: center"]10/09/17[/TD]
[TD="align: center"]12/09/17[/TD]
[TD]Edit Submission[/TD]
[/TR]
</tbody>[/TABLE]
[FONT="]Filtered Excel Report for Cindy S[/FONT]
[TABLE="width: 979"]
<tbody style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit; margin: 0px; outline: 0px; padding: 0px;">[TR]
[TD="align: center"]Form No.[/TD]
[TD]Approved by[/TD]
[TD="align: center"]Received Date[/TD]
[TD="align: center"]Approved Date[/TD]
[TD]Edit link[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD]Cindy S[/TD]
[TD="align: center"]11/09/17[/TD]
[TD="align: center"]11/10/17[/TD]
[TD]Edit Submission[/TD]
[/TR]
[TR]
[TD="align: center"]8[/TD]
[TD]Cindy S[/TD]
[TD="align: center"]14/10/17[/TD]
[TD="align: center"]20/10/17[/TD]
[TD]Edit Submission[/TD]
[/TR]
[TR]
[TD="align: center"]66[/TD]
[TD]Cindy S[/TD]
[TD="align: center"]11/11/17[/TD]
[TD="align: center"]14/11/17[/TD]
[TD]Edit Submission[/TD]
[/TR]
</tbody>[/TABLE]
[FONT="]Here is what I have so far, not giving me the links.
Code:
TABLE 0[/FONT][/COLOR]
[COLOR=#000088][FONT=inherit]let[/FONT][/COLOR][COLOR=#000000][FONT=inherit]
[/FONT][/COLOR][COLOR=#660066][FONT=inherit]Source[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#666600][FONT=inherit]=[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#660066][FONT=inherit]Web[/FONT][/COLOR][COLOR=#666600][FONT=inherit].[/FONT][/COLOR][COLOR=#660066][FONT=inherit]Page[/FONT][/COLOR][COLOR=#666600][FONT=inherit]([/FONT][/COLOR][COLOR=#660066][FONT=inherit]Web[/FONT][/COLOR][COLOR=#666600][FONT=inherit].[/FONT][/COLOR][COLOR=#660066][FONT=inherit]Contents[/FONT][/COLOR][COLOR=#666600][FONT=inherit]([/FONT][/COLOR][COLOR=#008800][FONT=inherit]"https://www.xxxform.com/table/72826000000000"[/FONT][/COLOR][COLOR=#666600][FONT=inherit])),[/FONT][/COLOR][COLOR=#000000][FONT=inherit]
[/FONT][/COLOR][COLOR=#660066][FONT=inherit]Data0[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#666600][FONT=inherit]=[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#660066][FONT=inherit]Source[/FONT][/COLOR][COLOR=#666600][FONT=inherit]{[/FONT][/COLOR][COLOR=#006666][FONT=inherit]0[/FONT][/COLOR][COLOR=#666600][FONT=inherit]}[[/FONT][/COLOR][COLOR=#660066][FONT=inherit]Data[/FONT][/COLOR][COLOR=#666600][FONT=inherit]],[/FONT][/COLOR][COLOR=#000000][FONT=inherit]
[/FONT][/COLOR][COLOR=#660066][FONT=inherit]ExtractString[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#666600][FONT=inherit]=[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#660066][FONT=inherit]Table[/FONT][/COLOR][COLOR=#666600][FONT=inherit].[/FONT][/COLOR][COLOR=#660066][FONT=inherit]AddColumn[/FONT][/COLOR][COLOR=#666600][FONT=inherit]([/FONT][/COLOR][COLOR=#660066][FONT=inherit]Data0[/FONT][/COLOR][COLOR=#666600][FONT=inherit],[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#008800][FONT=inherit]"Link"[/FONT][/COLOR][COLOR=#666600][FONT=inherit],[/FONT][/COLOR][COLOR=#000000][FONT=inherit] each [/FONT][/COLOR][COLOR=#660066][FONT=inherit]Text[/FONT][/COLOR][COLOR=#666600][FONT=inherit].[/FONT][/COLOR][COLOR=#660066][FONT=inherit]BetweenDelimiters[/FONT][/COLOR][COLOR=#666600][FONT=inherit]([[/FONT][/COLOR][COLOR=#660066][FONT=inherit]Edit[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#660066][FONT=inherit]Submission[/FONT][/COLOR][COLOR=#666600][FONT=inherit]],[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#008800][FONT=inherit]"HREF="""[/FONT][/COLOR][COLOR=#666600][FONT=inherit],[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#008800][FONT=inherit]""""[/FONT][/COLOR][COLOR=#666600][FONT=inherit])),[/FONT][/COLOR][COLOR=#000000][FONT=inherit]
[/FONT][/COLOR][COLOR=#660066][FONT=inherit]IndexedWebsites[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#666600][FONT=inherit]=[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#660066][FONT=inherit]Table[/FONT][/COLOR][COLOR=#666600][FONT=inherit].[/FONT][/COLOR][COLOR=#660066][FONT=inherit]AddIndexColumn[/FONT][/COLOR][COLOR=#666600][FONT=inherit]([/FONT][/COLOR][COLOR=#660066][FONT=inherit]ExtractString[/FONT][/COLOR][COLOR=#666600][FONT=inherit],[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#008800][FONT=inherit]"Index"[/FONT][/COLOR][COLOR=#666600][FONT=inherit],[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#006666][FONT=inherit]0[/FONT][/COLOR][COLOR=#666600][FONT=inherit],[/FONT][/COLOR][COLOR=#006666][FONT=inherit]1[/FONT][/COLOR][COLOR=#666600][FONT=inherit]),[/FONT][/COLOR][COLOR=#000000][FONT=inherit]
[/FONT][/COLOR][COLOR=#660066][FONT=inherit]CreateHyperlink[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#666600][FONT=inherit]=[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#660066][FONT=inherit]Table[/FONT][/COLOR][COLOR=#666600][FONT=inherit].[/FONT][/COLOR][COLOR=#660066][FONT=inherit]ReplaceValue[/FONT][/COLOR][COLOR=#666600][FONT=inherit]([/FONT][/COLOR][COLOR=#660066][FONT=inherit]IndexedWebsites[/FONT][/COLOR][COLOR=#666600][FONT=inherit],[/FONT][/COLOR][COLOR=#000000][FONT=inherit] each [/FONT][/COLOR][COLOR=#666600][FONT=inherit][[/FONT][/COLOR][COLOR=#660066][FONT=inherit]Edit[/FONT][/COLOR][COLOR=#000000][FONT=inherit] link[/FONT][/COLOR][COLOR=#666600][FONT=inherit]][/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#666600][FONT=inherit],[/FONT][/COLOR][COLOR=#000000][FONT=inherit] each [/FONT][/COLOR][COLOR=#008800][FONT=inherit]"'=HYPERLINK("""[/FONT][/COLOR][COLOR=#666600][FONT=inherit]&[[/FONT][/COLOR][COLOR=#660066][FONT=inherit]LinkConnections[/FONT][/COLOR][COLOR=#666600][FONT=inherit]]&[/FONT][/COLOR][COLOR=#008800][FONT=inherit]""", """[/FONT][/COLOR][COLOR=#666600][FONT=inherit]&[[/FONT][/COLOR][COLOR=#660066][FONT=inherit]Edit[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#660066][FONT=inherit]Submission[/FONT][/COLOR][COLOR=#666600][FONT=inherit]]&[/FONT][/COLOR][COLOR=#008800][FONT=inherit]""")"[/FONT][/COLOR][COLOR=#000000][FONT=inherit] [/FONT][/COLOR][COLOR=#666600][FONT=inherit],[/FONT][/COLOR][COLOR=#660066][FONT=inherit]Replacer[/FONT][/COLOR][COLOR=#666600][FONT=inherit].[/FONT][/COLOR][COLOR=#660066][FONT=inherit]ReplaceText[/FONT][/COLOR][COLOR=#666600][FONT=inherit],{[/FONT][/COLOR][COLOR=#008800][FONT=inherit]"Edit Submission"[/FONT][/COLOR][COLOR=#666600][FONT=inherit]}),[/FONT][/COLOR][COLOR=#000000][FONT=inherit]
[/FONT][/COLOR][COLOR=#880000][FONT=inherit]#"Reordered Columns" = Table.ReorderColumns(IndexedWebsites,{"Date", "CAT No.", "Approved By", "Designing Judge", "Province", "Host Club", "Courses", "Trial Date", "Received date", "Approved Date", "Post-Approved", "Edit Link", "Link"}),[/FONT][/COLOR][COLOR=#000000][FONT=inherit]
[/FONT][/COLOR][COLOR=#880000][FONT=inherit]#"Sorted Rows" = Table.Sort(#"Reordered Columns",{{"Approved By", Order.Ascending}}),[/FONT][/COLOR][COLOR=#000000][FONT=inherit]
[/FONT][/COLOR][COLOR=#880000][FONT=inherit]#"Removed Columns" = Table.RemoveColumns(#"Sorted Rows",{"Index"}),[/FONT][/COLOR][COLOR=#000000][FONT=inherit]
[/FONT][/COLOR][COLOR=#880000][FONT=inherit]#"Renamed Columns" = Table.RenameColumns(#"Removed Columns",{{"Approved By", "Approver"}, {"Designing Judge", "Designer"}, {"Province", "Prov"}, {"Host Club", "Club"}, {"Trial Date", "Trial"}, {"Received date", "Received"}, {"Approved Date", "Approved"}, {"Post-Approved", "Post-Date"}})[/FONT][/COLOR][COLOR=#000000][FONT=inherit]
[/FONT][/COLOR][COLOR=#000088][FONT=inherit]in[/FONT][/COLOR][COLOR=#000000][FONT=inherit]
[/FONT][/COLOR][COLOR=#880000][FONT=inherit]#"Renamed Columns"[/FONT][/COLOR][COLOR=#333333][FONT="]