我可以使用perl创建数据透视表吗? [英] Can I create pivot using perl?

查看:96
本文介绍了我可以使用perl创建数据透视表吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用使用Excel :: Writer :: XLSX模块通过Perl生成Excel文件.我把数据放在一张纸上.我要在创建Excel文件时自动进行创建,还希望使用该数据创建数据透视表和图表.数据透视表和图表需要具有过滤器,因此我可以选择月",周",状态",部门".我一直在搜索几天,但没有结果.

I am generating Excel files with Perl using the use Excel::Writer::XLSX module. I put the data on a sheet. I want to automatically as I create the Excel file, also create a pivot table and chart with that data. The pivot table and charts need to have filter, so I can select Month, Week, Status, Department. I have been searching for days with no result on how to do that.

如果您知道其他编程语言(例如python,ruby或java)的更合适的选择.请让我知道.

If you know a better suitable option with other programming languages, like python, ruby or java. Please let me know.

非常感谢!

节日快乐!

推荐答案

据我所知,目前还没有一个Perl模块支持Excel中的数据透视表.

To my best knowledge none of the Perl modules supports pivot tables in Excel at the moment nativly.

有两种解决方法:手动创建并设置数据透视表(如模板)和图表,然后加载数据并以其他名称保存文件.

There is two workaround: Create and setup the pivot (like a template) and the chart by hand then load your data and save a file in different name.

使用OLE创建数据透视表,它仅在Windows上有效.起点: http://www.perlmonks.org/?node_id=651561

Create a pivot table using OLE, it is working only on windows. Starting point: http://www.perlmonks.org/?node_id=651561

此致

这篇关于我可以使用perl创建数据透视表吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆