首页 > 其他分享 >交叉表多数据列

交叉表多数据列

时间:2024-07-19 14:54:15浏览次数:15  
标签:表多 City 交叉 CompanyName ProductName Amount ProductID 数据 Quantity

交叉报表–交叉表多数据列

概述

交叉表多数据列:一个具有多个数据列的交叉报表。

应用场景

如下图所示,简单展示数据

示例说明

数据准备

在数据面板中添加数据集,可选择Json数据集和Http接口数据集,Json数据如下图所示:

[{"City":"北京","Amount":144,"Quantity":8,"ProductID":1,"CompanyName":"仪和贸易","ProductName":"苹果汁"},{"City":"北京","Amount":1000,"Quantity":40,"ProductID":6,"CompanyName":"兰格英语","ProductName":"酱油"},{"City":"北京","Amount":144,"Quantity":10,"ProductID":1,"CompanyName":"留学服务中心","ProductName":"苹果汁"},{"City":"北京","Amount":660,"Quantity":30,"ProductID":4,"CompanyName":"留学服务中心","ProductName":"盐"},{"City":"北京","Amount":132,"Quantity":6,"ProductID":4,"CompanyName":"留学服务中心","ProductName":"盐"},{"City":"常州","Amount":54,"Quantity":3,"ProductID":1,"CompanyName":"迈策船舶","ProductName":"苹果汁"},{"City":"常州","Amount":228,"Quantity":12,"ProductID":2,"CompanyName":"椅天文化事业","ProductName":"牛奶"},{"City":"常州","Amount":608,"Quantity":40,"ProductID":2,"CompanyName":"椅天文化事业","ProductName":"牛奶"},{"City":"常州","Amount":616,"Quantity":35,"ProductID":4,"CompanyName":"椅天文化事业","ProductName":"盐"},{"City":"成都","Amount":72,"Quantity":4,"ProductID":1,"CompanyName":"新巨企业","ProductName":"苹果汁"},{"City":"大连","Amount":360,"Quantity":20,"ProductID":1,"CompanyName":"华科","ProductName":"苹果汁"},{"City":"大连","Amount":176,"Quantity":10,"ProductID":4,"CompanyName":"华科","ProductName":"盐"},{"City":"大连","Amount":1750,"Quantity":70,"ProductID":6,"CompanyName":"华科","ProductName":"酱油"},{"City":"海口","Amount":900,"Quantity":50,"ProductID":1,"CompanyName":"保信人寿","ProductName":"苹果汁"},{"City":"海口","Amount":72,"Quantity":4,"ProductID":1,"CompanyName":"保信人寿","ProductName":"苹果汁"},{"City":"海口","Amount":304,"Quantity":20,"ProductID":2,"CompanyName":"保信人寿","ProductName":"牛奶"},{"City":"海口","Amount":400,"Quantity":50,"ProductID":3,"CompanyName":"保信人寿","ProductName":"蕃茄酱"},{"City":"海口","Amount":160,"Quantity":20,"ProductID":3,"CompanyName":"保信人寿","ProductName":"蕃茄酱"},{"City":"海口","Amount":85.4,"Quantity":4,"ProductID":5,"CompanyName":"上河工业","ProductName":"麻油"},{"City":"南京","Amount":630,"Quantity":35,"ProductID":1,"CompanyName":"通恒机械","ProductName":"苹果汁"},{"City":"南京","Amount":399,"Quantity":21,"ProductID":2,"CompanyName":"通恒机械","ProductName":"牛奶"},{"City":"南京","Amount":300,"Quantity":30,"ProductID":3,"CompanyName":"通恒机械","ProductName":"蕃茄酱"},{"City":"南京","Amount":264,"Quantity":12,"ProductID":4,"CompanyName":"通恒机械","ProductName":"盐"},{"City":"南京","Amount":380,"Quantity":25,"ProductID":2,"CompanyName":"五洲信托","ProductName":"牛奶"},{"City":"南京","Amount":532,"Quantity":35,"ProductID":2,"CompanyName":"五洲信托","ProductName":"牛奶"},{"City":"南京","Amount":95,"Quantity":5,"ProductID":2,"CompanyName":"五洲信托","ProductName":"牛奶"},{"City":"南京","Amount":1100,"Quantity":50,"ProductID":4,"CompanyName":"五洲信托","ProductName":"盐"},{"City":"南京","Amount":1800,"Quantity":60,"ProductID":7,"CompanyName":"五洲信托","ProductName":"海鲜粉"},{"City":"南京","Amount":720,"Quantity":40,"ProductID":1,"CompanyName":"幸义房屋","ProductName":"苹果汁"},{"City":"南京","Amount":720,"Quantity":40,"ProductID":1,"CompanyName":"幸义房屋","ProductName":"苹果汁"},{"City":"南京","Amount":380,"Quantity":20,"ProductID":2,"CompanyName":"幸义房屋","ProductName":"牛奶"},{"City":"南京","Amount":500,"Quantity":20,"ProductID":6,"CompanyName":"幸义房屋","ProductName":"酱油"},{"City":"南京","Amount":190,"Quantity":10,"ProductID":2,"CompanyName":"永大企业","ProductName":"牛奶"},{"City":"南京","Amount":304,"Quantity":20,"ProductID":2,"CompanyName":"永大企业","ProductName":"牛奶"},{"City":"秦皇岛","Amount":364.8,"Quantity":24,"ProductID":2,"CompanyName":"友恒信托","ProductName":"牛奶"},{"City":"秦皇岛","Amount":427,"Quantity":20,"ProductID":5,"CompanyName":"利合材料","ProductName":"麻油"},{"City":"秦皇岛","Amount":180,"Quantity":6,"ProductID":7,"CompanyName":"利合材料","ProductName":"海鲜粉"},{"City":"秦皇岛","Amount":380,"Quantity":20,"ProductID":2,"CompanyName":"千固","ProductName":"牛奶"},{"City":"秦皇岛","Amount":300,"Quantity":10,"ProductID":7,"CompanyName":"千固","ProductName":"海鲜粉"},{"City":"秦皇岛","Amount":384,"Quantity":16,"ProductID":7,"CompanyName":"千固","ProductName":"海鲜粉"},{"City":"上海","Amount":190,"Quantity":10,"ProductID":2,"CompanyName":"业兴","ProductName":"牛奶"},{"City":"上海","Amount":750,"Quantity":30,"ProductID":6,"CompanyName":"业兴","ProductName":"酱油"},{"City":"上海","Amount":90,"Quantity":3,"ProductID":7,"CompanyName":"业兴","ProductName":"海鲜粉"},{"City":"深圳","Amount":285,"Quantity":15,"ProductID":2,"CompanyName":"国顶有限公司","ProductName":"牛奶"},{"City":"深圳","Amount":240,"Quantity":30,"ProductID":3,"CompanyName":"光明杂志","ProductName":"蕃茄酱"},{"City":"深圳","Amount":120,"Quantity":4,"ProductID":7,"CompanyName":"光明杂志","ProductName":"海鲜粉"},{"City":"深圳","Amount":720,"Quantity":30,"ProductID":7,"CompanyName":"光明杂志","ProductName":"海鲜粉"},{"City":"深圳","Amount":760,"Quantity":50,"ProductID":2,"CompanyName":"正人资源","ProductName":"牛奶"},{"City":"深圳","Amount":152,"Quantity":8,"ProductID":2,"CompanyName":"正人资源","ProductName":"牛奶"},{"City":"深圳","Amount":200,"Quantity":20,"ProductID":3,"CompanyName":"正人资源","ProductName":"蕃茄酱"},{"City":"深圳","Amount":250,"Quantity":25,"ProductID":3,"CompanyName":"正人资源","ProductName":"蕃茄酱"},{"City":"深圳","Amount":544,"Quantity":32,"ProductID":5,"CompanyName":"正人资源","ProductName":"麻油"},{"City":"深圳","Amount":1105,"Quantity":65,"ProductID":5,"CompanyName":"正人资源","ProductName":"麻油"},{"City":"深圳","Amount":540,"Quantity":18,"ProductID":7,"CompanyName":"正人资源","ProductName":"海鲜粉"},{"City":"深圳","Amount":360,"Quantity":20,"ProductID":1,"CompanyName":"远东开发","ProductName":"苹果汁"},{"City":"深圳","Amount":950,"Quantity":50,"ProductID":2,"CompanyName":"远东开发","ProductName":"牛奶"},{"City":"深圳","Amount":190,"Quantity":10,"ProductID":2,"CompanyName":"阳林","ProductName":"牛奶"},{"City":"深圳","Amount":110,"Quantity":5,"ProductID":4,"CompanyName":"阳林","ProductName":"盐"},{"City":"深圳","Amount":220,"Quantity":10,"ProductID":4,"CompanyName":"阳林","ProductName":"盐"},{"City":"深圳","Amount":320.25,"Quantity":15,"ProductID":5,"CompanyName":"阳林","ProductName":"麻油"},{"City":"深圳","Amount":760,"Quantity":40,"ProductID":2,"CompanyName":"一诠精密工业","ProductName":"牛奶"},{"City":"深圳","Amount":1050,"Quantity":35,"ProductID":7,"CompanyName":"一诠精密工业","ProductName":"海鲜粉"},{"City":"深圳","Amount":600,"Quantity":20,"ProductID":7,"CompanyName":"一诠精密工业","ProductName":"海鲜粉"},{"City":"深圳","Amount":240,"Quantity":10,"ProductID":7,"CompanyName":"昇昕股份有限公司","ProductName":"海鲜粉"},{"City":"深圳","Amount":140,"Quantity":14,"ProductID":3,"CompanyName":"中硕贸易","ProductName":"蕃茄酱"},{"City":"深圳","Amount":300,"Quantity":10,"ProductID":7,"CompanyName":"中硕贸易","ProductName":"海鲜粉"},{"City":"深圳","Amount":378,"Quantity":21,"ProductID":1,"CompanyName":"凯诚国际顾问公司","ProductName":"苹果汁"},{"City":"深圳","Amount":360,"Quantity":20,"ProductID":1,"CompanyName":"凯诚国际顾问公司","ProductName":"苹果汁"}]

报表设计

将A1-A2、B1-C1单元格合并。
将数据字段拖入A3、B1、B3、C3单元格。
将A3、B3、C3单元格设置为分组以及向下扩展。
将B1单元格设置为分组以及向右扩展。
选中A1-C3单元格,点击上方工具栏-添加分组;选中B1-C3单元格,点击上方工具栏-添加分组。
点击上方工具栏此按钮设置交叉表表头,用 | 分隔。

效果预览

交叉表多数据列.json

https://www.yuque.com/attachments/yuque/0/2023/json/25420404/1700470061026-d8e03f5f-0fbd-4f34-95c3-916c9c48af37.json

参考文档

  • 小智报表样例源码下载
    • https://gitee.com/tizdata_admin/vue-xzreport-example.git
  • 小智报表demo体验
    • https://xzdemo.tizdata.com/#/imbedShow/reportExample
    • 丰富的报表模板示例
  • 小智报表在线试用
    • https://xzreport.com
  • 小智报表js sdk下载
    • https://tizdata.com/xzdownload/
  • 开发使用文档
    • https://doc.tizdata.com/xiaozhi/650

标签:表多,City,交叉,CompanyName,ProductName,Amount,ProductID,数据,Quantity
From: https://blog.csdn.net/tianzhi2016/article/details/140541097

相关文章

  • python 数据类型
    python的常见基本数据类型Number(数字)String(字符串)bool(布尔类型)List(列表)Tuple(元组)Set(集合)Dictionary(字典不可变数据类型(3个):Number(数字)、String(字符串)、Tuple(元组);可变数据类型(3个):List(列表)、Dictionary(字典)、Set(集合)。python一切皆是对象类型指的也是对象的类型不......
  • 使用 useLazyAsyncData 提升数据加载体验
    title:使用useLazyAsyncData提升数据加载体验date:2024/7/19updated:2024/7/19author:cmdragonexcerpt:摘要:本文介绍useLazyAsyncData函数在Nuxt3中的使用,以提升数据加载体验。此函数支持异步获取数据并在组件中处理挂起与错误状态,通过pending、error和data属性实......
  • 数据的实时同步
    一、实时同步技术介绍在生产环境,有时会需要两台主机的特定目录实现实时同步。比如,将NFS共享目录的数据文件,自动实时同步到备份服务器特定目录。实现实时同步的方法:inotify+rsync方式实现数据同步sersync:在inotify软件基础上进行开发的,功能更加强大inotify+rsync使用......
  • 【稳定检索】2024年数据处理与人工智能国际会议(ICDPAI 2024)
    2024年数据处理与人工智能国际会议2024InternationalConferenceonDataProcessingandArtificialIntelligence【1】会议简介        2024年数据处理与人工智能国际会议是数据处理和人工智能领域的一次重要盛会。会议旨在通过全球范围内专家学者的深入交流,探......
  • AI人工智能深度学习算法:智能深度学习代理的环境感知与数据采集机制
    AI人工智能深度学习算法:智能深度学习代理的环境感知与数据采集机制作者:禅与计算机程序设计艺术/ZenandtheArtofComputerProgramming1.背景介绍1.1问题的由来随着人工智能技术的迅速发展,深度学习算法因其强大的模式识别和预测能力而被广泛应用。特别是在智能代......
  • 数据驱动运维:如何通过可观测性实现AIOps的突破
    前言:数字化转型的浪潮中,企业正面临着前所未有的挑战和机遇。随着技术的进步,系统变得越来越复杂,传统的运维方法已经难以满足现代企业的需求。在这种背景下,可观测性(Observability)和人工智能运维(AIOps)应运而生,成为企业提升运维效率、降低成本、提高服务质量的关键技术。一、可......
  • cryptography签名数据方法
    简介在非对称加密(公/私钥)体系中,一般有两种应用场景:公钥加密--->私钥解密私钥签名--->公钥验证签名数字签名在网络通信中是一种防伪和防抵赖技术。RSA私钥签名及验证加密算法:RSA哈希算法:SHA256fromcryptography.hazmat.primitivesimporthashes,serializatio......
  • 打破僵局:深度解析数据库死锁的策略与实践(专家篇)
    在多任务操作系统和数据库管理系统中,死锁是一个常见问题,它发生在两个或多个进程/线程因争夺资源而相互等待,导致系统资源无法继续执行。有效地检测和预防死锁对于确保系统稳定性和提高系统性能至关重要。本次探讨不同的死锁检测与预防策略,以及如何在实际应用中实现这些策略......
  • 数据集规模、复杂性与结果变化性在微调与指令调整中的交互作用
     在自然语言处理(NLP)的诸多任务中,标注数据的稀缺往往限制了模型性能的进一步提升。随着大型语言模型(LLMs)的兴起,研究者们现在面临一个关键问题:在有限的标注数据条件下,是应该依赖于通用的大型模型,还是应该通过微调来定制更为专业的小型模型?大型模型虽然具备广泛的适用性,能够在多......
  • Jmter(十六)jmter连接数据库
    Jmter连接数据库下载对应的驱动包mysql-connector-java-5.1.13-bin.jar点击测试计划,点击浏览,添加即可(不需要解压,目录最好是lib的ext)在线程组中,右键添加-->配置元件--->“JDBCConnectionConfiguration”,具体配置如下图1)VaribleName:这个是变量的名字,也就是说不能重复,2)J......