|
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用 · 内置多项VBA编程加强工具 ★ 免费下载 ★ ★ 使用手册★
在从Query 应用到PP里时候,提示如图返回错误[Dataformat.error]无法转换为Number,但是我使用了try 函数未返回错误如图。第一道返回这个错误后,我就没有做其他操作,就写了这个Table.selectRows函数且返回正常,但是每次应用都是提示这个。求大神赐教具体属于什么问题?
==========Query 自带函数与我写的Table.selectRows函数如下====================
let
源 = Folder.Files("E:\【售后数据源】成都分类号维度\审核明细2019\审核明细_201908"),
筛选的隐藏文件1 = Table.SelectRows(源, each [Attributes]?[Hidden]? <> true),
调用自定义函数1 = Table.AddColumn(筛选的隐藏文件1, "从 审核明细_201908 转换文件", each #"从 审核明细_201908 转换文件"([Content])),
重命名的列1 = Table.RenameColumns(调用自定义函数1, {"Name", "Source.Name"}),
删除的其他列1 = Table.SelectColumns(重命名的列1, {"Source.Name", "从 审核明细_201908 转换文件"}),
删除的错误1 = Table.RemoveRowsWithErrors(删除的其他列1, {"从 审核明细_201908 转换文件"}),
扩展的表格列1 = Table.ExpandTableColumn(删除的错误1, "从 审核明细_201908 转换文件", Table.ColumnNames(#"从 审核明细_201908 转换文件"(示例文件))),
更改的类型 = Table.TransformColumnTypes(扩展的表格列1,{{"Source.Name", type text}, {"机构id1", Int64.Type}, {"机构id", Int64.Type}, {"机构名称", type text}, {"省份", type text}, {"城市", type text}, {"客户账号", type text}, {"客户级别", type text}, {"魔镜等级", type text}, {"订单号", Int64.Type}, {"订单类型", type text}, {"服务单号", Int64.Type}, {"品牌", type text}, {"一级品类", type text}, {"二级品类", type text}, {"三级品类", type text}, {"售后分类号", Int64.Type}, {"商品编号", Int64.Type}, {"商品金额", type number}, {"开票时间", type datetime}, {"申请时间", type datetime}, {"商家编号", Int64.Type}, {"审核原因", Int64.Type}, {"审核二级原因", type text}, {"预期退款方式", type text}, {"预期处理方式", type text}, {"预期返回方式", type text}, {"审核结果", type text}, {"审核状态", type text}, {"审核账号", type text}, {"首次审核时间", type datetime}, {"最新审核时间", type datetime}, {"问题描述", type text}, {"是否待反馈", Int64.Type}, {"是否驳回", Int64.Type}, {"来源平台", type text}, {"审核时长", type number}, {"审核20分", Int64.Type}, {"特殊属性值", Int64.Type}, {"售后分类", type text}, {"是否直通车", Int64.Type}, {"售后类型", type text}, {"分类所属", Int64.Type}, {"分类类型", Int64.Type}, {"领取人账号", type text}, {"商家编号_1", Int64.Type}, {"待反馈类型", type text}, {"待反馈留言", type text}, {"状态2016", type text}, {"是否符合闪电退款", Int64.Type}, {"售后服务部", type text}, {"采销事业部", type text}, {"采销一级部门", type text}, {"采销二级部门", type text}, {"采销三级部门", type text}, {"采销erp", type text}, {"升级原因", type text}, {"升级时间", type text}, {"前置拆包时间", type text}, {"是否大家电取件", Int64.Type}, {"自动审核策略", type text}, {"rank", Int64.Type}, {"r1", Int64.Type}, {"是否智能审核", Int64.Type}}),
Rz = Table.SelectRows(更改的类型,each([售后分类号]=336072 or [售后分类号]=93636 or [售后分类号]=298426 or [售后分类号]=286970 or [售后分类号]=281330 or [售后分类号]=283302 or [售后分类号]=15887 or [售后分类号]=298430 or [售后分类号]=241823 or [售后分类号]=284016 or [售后分类号]=241824 or [售后分类号]=337666 or [售后分类号]=36550 or [售后分类号]=282509 or [售后分类号]=281331 or [售后分类号]=555505 or [售后分类号]=281334 or [售后分类号]=281332 or [售后分类号]=253765 or [售后分类号]=44162 or [售后分类号]=391242 or [售后分类号]=170061 or [售后分类号]=414500 or [售后分类号]=170073 or [售后分类号]=44163 or [售后分类号]=211070 or [售后分类号]=273908 or [售后分类号]=153910 or [售后分类号]=20202 or [售后分类号]=336072 or [售后分类号]=414504 or [售后分类号]=418184 or [售后分类号]=243391 or [售后分类号]=298427 or [售后分类号]=383018 or [售后分类号]=336074 or [售后分类号]=336075 or [售后分类号]=336076 or [售后分类号]=336067 or [售后分类号]=336070 or [售后分类号]=336071 or [售后分类号]=383019 or [售后分类号]=336066 or [售后分类号]=336069 or [售后分类号]=336431 or [售后分类号]=336068 or [售后分类号]=336091 or [售后分类号]=336092 or [售后分类号]=336073 or [售后分类号]=336084 or [售后分类号]=336085 or [售后分类号]=258976 or [售后分类号]=266510 ))
in
Rz
|
|