Wiki source code of iTop : EXcel报表
Last modified by superadmin on 2024/12/12, 21:02
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | = Excel报表 = | ||
| 2 | |||
| 3 | |||
| 4 | ➡️ 介绍Excel报表的使用。 | ||
| 5 | |||
| 6 | |||
| 7 | **如何使用iTop查询创建Excel报表** | ||
| 8 | |||
| 9 | |||
| 10 | (% class="box infomessage" %) | ||
| 11 | ((( | ||
| 12 | [[image:http://wiki.itop.work/docs/images/warning.png||alt="警告"]] 近期版本的Excel(Excel 2016,Office 365)提供了两种将Web数据导入Excel的方法。最近的版本(默认版本)基于PowerQuery,**不支持基本身份验证**,因此无法与iTop一起使用。然而,旧的方法仍然作为额外的菜单项可用,您可以在Excel中启用它。更让人困惑的是,这两个菜单项的标签完全相同! | ||
| 13 | ))) | ||
| 14 | |||
| 15 | == == | ||
| 16 | |||
| 17 | == 确保正确配置Excel == | ||
| 18 | |||
| 19 | |||
| 20 | 点击菜单项“数据” / “从Web获取”。如果您得到类似于下面的对话框(PowerQuery),则不行。 | ||
| 21 | |||
| 22 | |||
| 23 | [[image:https://www.itophub.io/wiki/media?w=600&tok=dd2f7e&media=3_1_0:user:wrong-import-excel-import-dialog.png||alt="Excel GetPowerQueryDataFromWeb向导"]] | ||
| 24 | |||
| 25 | |||
| 26 | 而是应该得到类似于这样的对话框: | ||
| 27 | |||
| 28 | [[image:https://www.itophub.io/wiki/media?w=600&tok=1a2248&media=3_1_0:user:new-web-excel-import-query.png||alt="Excel GetExternalDataFromWeb向导"]] | ||
| 29 | |||
| 30 | |||
| 31 | 要使用旧的GetExternalDataFromWeb向导,请按照以下步骤进行: | ||
| 32 | |||
| 33 | 进入“文件” / “选项”菜单 | ||
| 34 | |||
| 35 | [[image:https://www.itophub.io/wiki/media?media=3_1_0:user:excel-import-options-menu.png]] | ||
| 36 | |||
| 37 | |||
| 38 | 点击左侧的“自定义功能区”菜单: | ||
| 39 | |||
| 40 | 在左上角的下拉列表中,选择“主选项卡”,在显示的树中,打开“数据”项目,并选择菜单项“从Web获取” | ||
| 41 | |||
| 42 | [[image:https://www.itophub.io/wiki/media?w=800&tok=845c98&media=3_1_0:user:excel-import-ribbon-dialog.png]] | ||
| 43 | |||
| 44 | |||
| 45 | (% class="box infomessage" %) | ||
| 46 | ((( | ||
| 47 | 由于新旧菜单的标签完全相同,请确保选择正确的菜单:将鼠标悬停在项目上;会显示一个小工具提示,**它应该是“GetExternalDataFromWeb”,而不是“GetPowerQueryDataFromWeb”** | ||
| 48 | ))) | ||
| 49 | |||
| 50 | [[image:https://www.itophub.io/wiki/media?w=800&tok=82b401&media=3_1_0:user:getexternaldatafromweb.png||alt="GetExternalDataFromWeb"]] | ||
| 51 | |||
| 52 | |||
| 53 | 要将命令添加到功能区中,您必须创建一个新的“组”(使用对话框底部的按钮)。该组具有默认名称,但如果愿意,可以重新命名它: | ||
| 54 | |||
| 55 | [[[[image:https://www.itophub.io/wiki/media?media=3_1_0:user:excel-import-new-group.png||alt="新组"]]>>url:https://www.itophub.io/wiki/media-detail?id=3_1_0:user:excel_report&media=3_1_0:user:excel-import-new-group.png]] | ||
| 56 | |||
| 57 | |||
| 58 | 类似地,您可以重新命名菜单并选择一个图标。一旦菜单添加到功能中,您应该会看到类似于这样的东西: | ||
| 59 | |||
| 60 | [[image:https://www.itophub.io/wiki/media?media=3_1_0:user:web-excel-import-command.png]] | ||
| 61 | |||
| 62 | |||
| 63 | 当单击自定义菜单时,应该会出现“External Data From Web”向导: | ||
| 64 | |||
| 65 | [[image:https://www.itophub.io/wiki/media?w=600&tok=1a2248&media=3_1_0:user:new-web-excel-import-query.png]] | ||
| 66 | |||
| 67 | == == | ||
| 68 | |||
| 69 | == 从iTop导入数据 == | ||
| 70 | |||
| 71 | |||
| 72 | 管理员可以在iTop中存储预定义查询(菜单“管理/查询手册”)。然后可以使用这些查询在Excel中创建报表。查询通过编号进行标识。在Excel中使用由iTop管理员提供的URL调用它。例如,存储在查询短语本中的下面的URL返回用户请求列表: | ||
| 73 | |||
| 74 | |||
| 75 | [[[[image:https://www.itophub.io/wiki/media?media=3_1_0:user:excel_report8.png]]>>url:https://www.itophub.io/wiki/media-detail?id=3_1_0:user:excel_report&media=3_1_0:user:excel_report8.png]] | ||
| 76 | |||
| 77 | |||
| 78 | 要在Excel中使用此查询,请在Excel选项卡**数据**中单击~*~*//From Web//~*~*按钮 | ||
| 79 | |||
| 80 | |||
| 81 | [[[[image:https://www.itophub.io/wiki/media?media=3_1_0:user:excel_report1.png]]>>url:https://www.itophub.io/wiki/media-detail?id=3_1_0:user:excel_report&media=3_1_0:user:excel_report1.png]] | ||
| 82 | |||
| 83 | |||
| 84 | 会显示一个窗口用于输入要调用的URL: | ||
| 85 | |||
| 86 | |||
| 87 | [[[[image:https://www.itophub.io/wiki/media?media=3_1_0:user:excel_report2.png]]>>url:https://www.itophub.io/wiki/media-detail?id=3_1_0:user:excel_report&media=3_1_0:user:excel_report2.png]] | ||
| 88 | |||
| 89 | |||
| 90 | 在**地址**部分输入iTop管理员提供的URL,然后单击~*~*//Go//~*~*。 | ||
| 91 | |||
| 92 | iTop身份验证窗口会显示。输入您的用户帐户和密码: | ||
| 93 | |||
| 94 | [[[[image:https://www.itophub.io/wiki/media?media=3_1_0:user:excel_report3.png]]>>url:https://www.itophub.io/wiki/media-detail?id=3_1_0:user:excel_report&media=3_1_0:user:excel_report3.png]] | ||
| 95 | |||
| 96 | |||
| 97 | 如果系统提示您的安全弹出窗口,请单击~*~*//OK//~*~*。 | ||
| 98 | |||
| 99 | |||
| 100 | [[[[image:https://www.itophub.io/wiki/media?media=3_1_0:user:excel_report4.png]]>>url:https://www.itophub.io/wiki/media-detail?id=3_1_0:user:excel_report&media=3_1_0:user:excel_report4.png]] | ||
| 101 | |||
| 102 | |||
| 103 | **New Web Query**会更新为要导入的列的列表: | ||
| 104 | |||
| 105 | |||
| 106 | [[[[image:https://www.itophub.io/wiki/media?media=3_1_0:user:excel_report5.png]]>>url:https://www.itophub.io/wiki/media-detail?id=3_1_0:user:excel_report&media=3_1_0:user:excel_report5.png]] | ||
| 107 | |||
| 108 | |||
| 109 | 单击~*~*//Import//~*~*按钮。Excel会询问您要在何处插入数据: | ||
| 110 | |||
| 111 | |||
| 112 | [[[[image:https://www.itophub.io/wiki/media?media=3_1_0:user:excel_report6.png]]>>url:https://www.itophub.io/wiki/media-detail?id=3_1_0:user:excel_report&media=3_1_0:user:excel_report6.png]] | ||
| 113 | |||
| 114 | |||
| 115 | 如果查询包含参数,Excel将打开多个连续的窗口以输入这些参数。请注意,日期参数仅支持格式_年-月-日_。 | ||
| 116 | |||
| 117 | 单击~*~*//OK//~*~*按钮,Excel会显示查询的结果。用于显示列的语言与您在iTop中的登录的默认语言相对应。 | ||
| 118 | |||
| 119 | |||
| 120 | [[[[image:https://www.itophub.io/wiki/media?media=3_1_0:user:excel_report7.png]]>>url:https://www.itophub.io/wiki/media-detail?id=3_1_0:user:excel_report&media=3_1_0:user:excel_report7.png]] | ||
| 121 | |||
| 122 | |||
| 123 | 要刷新数据,请在Excel的**数据**选项卡上单击~*~*//Refresh All//~*~*按钮: | ||
| 124 | |||
| 125 | 您可以使用尽可能多的iTop查询,并使用标准Excel功能动态地创建图表。 | ||
| 126 | |||
| 127 | |||
| 128 | (% class="box infomessage" %) | ||
| 129 | ((( | ||
| 130 | →上一篇: [[废弃对象>>https://www.itil4hub.cn/bin/view/G%20%E5%8F%82%E8%80%83%E8%B5%84%E6%96%99/%E5%BC%80%E6%BA%90ITIL%E8%BD%AF%E4%BB%B6%20-%20iTop%E5%AE%9E%E6%96%BD%E6%96%B9%E6%B3%95/iTop%E6%9C%80%E7%BB%88%E7%94%A8%E6%88%B7%E6%89%8B%E5%86%8C/iTop%E5%BA%9F%E5%BC%83%E5%AF%B9%E8%B1%A1/]] | ||
| 131 | ))) | ||
| 132 | |||
| 133 | ---- | ||
| 134 | |||
| 135 | 原文:[[https:~~/~~/www.itophub.io/wiki/page?id=3_1_0:user:excel_report>>url:https://www.itophub.io/wiki/page?id=3_1_0:user:excel_report]] | ||
| 136 | |||
| 137 | 版本:3_1_0/user/excel_report.txt · Last modified: 2023/07/21 10:19 (external edit) |