如何:在 SQL Server 报表上显示参数?

发布于 2024-08-18 21:30:10 字数 313 浏览 4 评论 0原文

我正在 Visual Studio BIDS 中使用 SQL Analysis Server 2008 创建一些报告。 该报告工作正常,并使用带参数的 MDX 查询。到目前为止,一切都很好。

问题是我想在报告上显示参数。例如,我想显示日期参数的“月份”,但它在报告上显示如下:这

[Date].[Month].&[2010-01-01T00:00:00]

不是我想要的。如何将此值显示为“一月”?我找不到任何执行此操作的函数。我认为这是可能的唯一方法是将日期值包含在返回的字段中。

有人有这方面的经验吗?

I'm creating some reports in Visual Studio BIDS, out of our SQL Analysis Server 2008.
The report works fine, and uses an MDX query with parameters. So far, so good.

The problem is that I would like to display the parameter on the report. For example, I would like to display the 'Month' of the Date parameter, but it shows up on the report like this:

[Date].[Month].&[2010-01-01T00:00:00]

Not really what I want. How can I display this value as 'January' ? I can't find any function which does this. The only way I see this is possible is to include the date value in the returned fields.

Does anyone have experience with this?

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

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

发布评论

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

评论(1

神回复 2024-08-25 21:30:10

我通过在选择字段中添加必要的值来修复此问题。

I fixed this by adding the necessary values in the Select-fields.

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