【发布时间】:2016-11-26 12:33:49
【问题描述】:
Pentaho 版本:双服务器 CE 6.1
我是 pentaho Universe 的新手,我发现自己陷入了寻找文档以创建 cde 仪表板的困境。为了清楚起见,我不知道创建 cde 仪表板的好方法是什么,但我根据几乎随处可见的教程尝试了很多东西
到目前为止我做了什么
我已经使用“sql over sqljdbc”数据源创建了一个动态图表。 这是我的查询(以及图片后面的结果)
SELECT (select survey_type from survey where id = pr.form_type) as "form type",
pr.date as "Date",
count(pr.id) as "Form number"
FROM result pr
inner join district pd on pr.district_id=pd.id
inner join departement pdep on pd.departement_id=pdep.id
inner join region pre on pdep.region_id=pre.id
WHERE pre.region_text = ${region}
GROUP by date,form_type
ORDER by date;
Dashboard generated by the query - Form number by date, type and region (set dynamically)
我想要达到的目标
我想做这种图表:community.pentaho.com/ctools/ccc/#type=bar&anchor=small-multiple-bars 或 community.pentaho.com/ctools/ccc/#type=bar&anchor =stacked-bar(对不起,我没有足够的声誉来发布超过 2 个链接)带有“sql over jdbc”数据源
-
谁能给我一个 sql 请求的例子来实现这一点? (最好是在这篇文章中放弃了 sql 请求并进行了一些修改。我试过了,但它没有按预期工作:
SELECT (select survey_type from survey where id = pr.form_type) as "form type", pr.date as "Date", pre.region_text as region, count(pr.id) as "Form number" FROM result pr inner join district pd on pr.district_id=pd.id inner join departement pdep on pd.departement_id=pdep.id inner join region pre on pdep.region_id=pre.id GROUP by date,form_type,pre.id ORDER by date;)
我在哪里可以把这个例子后面给出的代码放在我自己的 pentaho 实例中预可视化它?我需要知道如何重现它
我想知道的
在pentaho上做cde图表的好方法:
- 查询需要如何格式化? (如何在仪表板上组织字段,最大字段数...)
- mdx 查询和 sql 查询和用途有什么区别?
- 在这两种类型(mdx 和 sql)之间制作图表的最佳方法是什么?
- 如果我想使用 mdx 查询,我如何在 mondrian cube 中转换我的关系数据库(或者我应该做的是使用kettle 重新设计数据仓库中的数据库?)
感谢您的回答。
【问题讨论】:
标签: charts pentaho pentaho-cde sqljdbc pentaho-ctools