




已阅读5页,还剩21页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
第一种形式的表格制作: 使用的是移动报表引擎数据集列表:SELECT the_month, month_of_year,(SUM( case when duct_family=Food then store_sales else 0 end) as Food,(SUM( case when duct_family=Drink then store_sales else 0 end) as Drink,(SUM( case when duct_family=Non-Consumable then store_sales else 0 end) as NonconsumFROMtime_by_day t, sales_fact f, product pwhere t.time_id=f.time_id and duct_id=duct_id GROUP BY the_month, month_of_yearORDER BY month_of_year查询出来的数据源显示方式为:则写出来的xml文件是这样的:(文件名称为:PRV_T004D_REV_dt.xml) !CDATA Sales and costs for product family 所做出来的效果图如下所示:名称为:TAB1 sales and cost detail第二种制作表格的方式:数据库和上面的是一样的:Xml文件名称是:PRV_T004D_REV_dt1.xml !CDATA Sales and costs for product family 多加了这一个标签,钻取可以按月份向下钻取,但是没什么太大的意义。图名称为:tab2 montly sales第三种制作表格的方式:数据集为:SELECT s.store_city city,sum(case when t.month_of_year=1 then store_sales else 0 end) as Jan,sum(case when t.month_of_year=2 then store_sales else 0 end) as Feb,sum(case when t.month_of_year=3 then store_sales else 0 end) as Mar,sum(case when t.month_of_year=4 then store_sales else 0 end) as Apr,sum(case when t.month_of_year=5 then store_sales else 0 end) as May,sum(case when t.month_of_year=6 then store_sales else 0 end) as Jun,sum(case when t.month_of_year=7 then store_sales else 0 end) as Jul,sum(case when t.month_of_year=8 then store_sales else 0 end) as Ago,sum(case when t.month_of_year=9 then store_sales else 0 end) as Sep,sum(case when t.month_of_year=10 then store_sales else 0 end) as Oct,sum(case when t.month_of_year=11 then store_sales else 0 end) as Nov,sum(case when t.month_of_year=12 then store_sales else 0 end) as DeceFROMtime_by_day t, sales_fact f, product p, store swhere t.time_id=f.time_id and duct_id=duct_id and s.store_id=f.store_id and duct_family=DrinkGROUP BY store_cityORDER BY store_city展示结果为:所作出来的xml文件为:PRV_T004D_REV_dt2.xml其中的内容是: !CDATA Sales by city for product family: DRINK 以上均是设计页面用的。Width设计每一列的宽度,header设计的是每一列头标题,value设计的是数据集展示中的名称。后面的就是设计的样式。 设计的效果如:Tab3 drinks sales for city以下将介绍以下spagobi中自带的移动图表引擎制作的相关。第一种形式bar:如图所示: 数据集如下:SELECT month_of_year, substring(the_month, 1,3) as month,sum(case when s.store_type=Supermarket then store_sales else 0 end) as Supermarket,sum(case when s.store_type like %Grocery% then store_sales else 0 end) as Grocery,sum(case when s.store_type like %Gourmet% then store_sales else 0 end) as Gourmet,sum(case when s.store_type = Deluxe Supermarket then store_sales else 0 end) as BoutiquesFROMtime_by_day t, sales_fact f, store swhere t.time_id=f.time_id and s.store_id=f.store_id group by the_month,month_of_yearORDER BYmonth_of_year展示的效果如下:所作出来的效果图如下:Bar1 sales and cost summary第一个为标题上面有四个可以选择的项目,分别是supermarket,grocery,gourmet,boutiques,展示的这几项当你选择点击那一项,将会在下面的表中显示,当那些表示颜色的原点点击后消失,将不显示其展示的数据,只显示没有消失的原点下的数据。其XML文件名称是:PRV_T004D_REV_ch.xml内容: !CDATA Sales for store type 设计标题和标题格式的。 #000066 #003399 #0066FF #3333FF 设计四列supermarket,grocery,gourmet,boutiques不同种类的四种颜色 固定格式,一种设计。 在该标签中的设计,全是种类之类的。 SUPERMARKET GROCERY GOURMET BOUTIQUES 以上的这种属于不同种类的选择。supermarket,grocery,gourmet,boutiques MONTH 以上这种是设计图标显示的目录列表的。是以月份来进行列表的。 该标签则是设计显示表的。 Type代表所选择的图标类型为条形图形式。Xfield则是代表该目录下的值,yfield表示y抽的值,(所有图标的设计中,x均是目录显示,而Y 则是数值或者其他量的表示。) 暂时不明白其含义,主要是一种钻取。第二种形式的BAR图表 数据集为:SELECT substring(the_date, 6,6) day,sum(case when s.store_type=Supermarket then store_sales else 0 end) as Supermarket,sum(case when s.store_type like %Grocery% then store_sales else 0 end) as Grocery,sum(case when s.store_type like %Gourmet% then store_sales else 0 end) as Gourmet,sum(case when s.store_type = Deluxe Supermarket then store_sales else 0 end) as BoutiquesFROMtime_by_day t, sales_fact f, store swhere t.time_id=f.time_id and s.store_id=f.store_id and the_month= $PMonthGROUP BY the_dateORDER BY the_date其中展现的结果是: 写出来的图表样式:名字bar2 daily sales from store type其中xml文件名字为:PRV_T004D_REV_ch1.xml内容如下: !CDATA Sales for store type #000066 #003399 #0066FF #3333FF SUPERMARKET GROCERY GOURMET BOUTIQUES DAY 面积图,KPI格式的。第三种图表:其中数据集为:SELECT DAY, SUM(SALES) as SALES FROM (SELECT substring(the_date,6,6) DAY,store_sales as SALESFROMtime_by_day t, sales_fact fwhere t.time_id=f.time_id )GROUP BYDAYORDER BYDAY其中展示的结果是:做出来的图形名称是:lb1 daily sales样式:其中XML文件名为:PRV_T000D_KPI_ch_l1.xml内容是: !CDATA Sales by day 以上为格式和标题的设计,固定的。 SALES 设计的显示值为sales DAY 设计了目录为day。 样式为面积图,目录为天数,显示值为sales。 第四种面积图数据集为:select FLOOR(AVG(0 + RAND() * (60000- 0) AS random_number FROM INFORMATION_SCHEMA.SYSTEM_TABLES这是一种随机的。每次打开执行的数据时不一样的。其中图片效果是:点击其中的部分将会出现:其中xml文件为:内容是: !CDATA Food sales !- maroon blue lightgray red - #
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 配电考试题及答案
- 机设考试题及答案
- 中级财务会计(上)(山东联盟)知到智慧树答案
- 会计继续教育“行政单位会计制度”考试试题及答案
- 中外设计史知到智慧树答案
- 事业单位考试题公基真题及答案
- 2025房产电商团购合作未来市场趋势预测及应对策略协议
- 2025版房产代理销售合同范本:海外房产投资顾问
- 2025版高科技产业园区土地及房屋租赁合同模板
- 2025年度家用电器分期付款标准合同范本
- GB/T 19851.12-2025中小学体育器材和场地第12部分:学生体质健康测试器材
- 公安科技信息化课件
- 桥梁工程支架浇筑连续箱梁的施工监理实施细则
- 2025年国家药品监督管理局直属单位招聘126人笔试模拟试题及参考答案详解
- 2025年医疗器械经营企业法律法规培训考试(含答案)
- 2025年部编版新教材语文九年级上册教学计划(含进度表)
- 2025年云南省中考数学真题含答案
- 留疆战士考试题库及答案
- 中小学老师管理办法
- T∕CITS 146-2024 尿液有形成分名称与结果报告规范化指南
- 四年级上册可爱的榆林全册教案
评论
0/150
提交评论