带 MDX 的参数 Pentaho 报表设计器

发布于 2024-09-29 07:51:26 字数 240 浏览 0 评论 0原文

我正在使用 Pentaho 报表设计器制作报表。我的数据源是带有 MySQL JDBC 的 Mondrian Cube。我正在使用 MDX 查询,并且我想对其进行参数化。我必须使用自己的查询配置参数。

我在关联主查询和参数查询时遇到问题。为此,我以这种方式使用函数参数: where (strToMember(Parameter(name,type,default_value))) 但它不起作用。有什么错误吗?我必须做什么?

谢谢。

I am doing a report, using Pentaho Report Designer. My datasource is a Mondrian Cube with MySQL JDBC. I am using MDX queries, and I want to put paramerize it. I have to configure a parameter with its own query.

I'm having trouble relating the main query and the parameter query. For that, I am using the function parameter in this way: where (strToMember(Parameter(name,type,default_value))) but it doesn´t work. What is the mistake? What do I have to do?

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

独行侠 2024-10-06 07:51:26

您的 MDX 查询到底是什么?你会得到什么错误?

参数名称需要用引号括起来,即

“MDXDate”。

或者,您可以只使用 ${paramname},但这样做的缺点是您将无法使用预览选项。

What exactly is your MDX query? And what error do you get?

The param name needs quotation marks surrounding it, i.e.

"MDXDate"

Alternatively you can just use ${paramname}, but the disadvantage of that is you won't be able to use the preview option.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文