我有一个电源查询,用于自动导入和过滤同一工作簿中的表到另一张表。
它只有120行,我删除了非活动行并删除了几列。
如果我转到源表并更改单个值,然后刷新查询,它将在几秒钟内处理。如果我更改了列的几乎所有值(即,交换"是"到"否"反之亦然),刷新查询将挂起Excel超过30分钟。
是什么导致了这一点,有关如何调试或分析问题的任何想法?
编辑:这是权力查询:
let
Source = Excel.CurrentWorkbook(){[Name="rosterTable"]}[Content],
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Full Name", type text}, {"Status", type text}, {"Last Name", type text}, {"First Name", type text}, {"Zendesk Name", type text}, {"FT/PT", type text}, {"Atrium?", type text}, {"Lead?", type text}, {"Assigned Tier", Int64.Type}, {"Team", type text}, {"CX Type", type text}, {" Hire Date", type datetime}, {"T1 Production Date", type datetime}, {"T2 Production Date", type datetime}, {"T3 Production Date", type any}, {"Last Day of Employment", type datetime}, {"Email", type text}, {"Expected Hours/Day based on CX Type", type any}, {"Sun", type any}, {"Mon", type any}, {"Tue", type any}, {"Wed", type any}, {"Thur", type any}, {"Fri", type any}, {"Sat", type any}, {"Total PT Hours", Int64.Type}, {"Column1", type any}}),
#"Removed Columns" = Table.RemoveColumns(#"Changed Type",{"Last Name", "First Name", "FT/PT", "Lead?"}),
#"Reordered Columns" = Table.ReorderColumns(#"Removed Columns",{"Full Name", "Team", "Atrium?", "Assigned Tier", "Status", "Zendesk Name", "CX Type", " Hire Date", "T1 Production Date", "T2 Production Date", "T3 Production Date", "Last Day of Employment", "Email", "Expected Hours/Day based on CX Type", "Sun", "Mon", "Tue", "Wed", "Thur", "Fri", "Sat", "Total PT Hours", "Column1"}),
#"Removed Columns1" = Table.RemoveColumns(#"Reordered Columns",{"CX Type", " Hire Date", "T1 Production Date", "T2 Production Date", "T3 Production Date", "Last Day of Employment", "Email", "Expected Hours/Day based on CX Type", "Sun", "Mon", "Tue", "Wed", "Thur", "Fri", "Sat", "Total PT Hours", "Column1"}),
#"Filtered Rows" = Table.SelectRows(#"Removed Columns1", each ([Full Name] <> null and [Full Name] <> " ")),
#"Reordered Columns1" = Table.ReorderColumns(#"Filtered Rows",{"Full Name", "Team", "Status", "Atrium?", "Assigned Tier", "Zendesk Name"}),
#"Filtered Rows1" = Table.SelectRows(#"Reordered Columns1", each ([Status] = "Active")),
#"Reordered Columns2" = Table.ReorderColumns(#"Filtered Rows1",{"Full Name", "Team", "Atrium?", "Assigned Tier", "Status", "Zendesk Name"})
in
#"Reordered Columns2"
表格中的功能(这决定了某人是活跃还是非活动,并立即更新):=IF(TRIM([@[Full Name]]) <> "", IF(AND([@[ Hire Date]] <= ProdWeekStart, OR(TRIM([@[Last Day of Employment]]) = "", [@[Last Day of Employment]] > ProdWeekStart )), "Active", "Inactive"), "")
如果我更改了表格,请保存并重新打开表格。 PowerQuery未更新。如果我尝试刷新它,它仍然会挂起。