简体   繁体   English

Power BI 报表服务器 SSRS 报表参数神秘变化

[英]Power BI Report Server SSRS report parameters mysteriously changing

We are running Power BI Report Server Sept 2022.我们正在运行 Power BI 报表服务器 2022 年 9 月。

I have a SSRS "Dashboard" report that uses multiple parameters to create "Go to URL" actions for various jumping points in my report.我有一个 SSRS“仪表板”报告,它使用多个参数为报告中的各种跳跃点创建“转到 URL”操作。

@PowerBIReportServer is set to Default Value, Specify value of "/Reports/powerbi" @PowerBIReportServer设置为默认值,指定“/Reports/powerbi”的值

@SSRSReportServer is set to Default Value, Specify value of "/Reports/report" @SSRSReportServer设置为默认值,指定“/Reports/report”的值

Then I use these in other parameters like:然后我在其他参数中使用这些,例如:

@PowerBIHelpReport is set to Default Value, Specify value of: @PowerBIHelpReport设置为默认值,指定值:

="javascript:void(window.open('" + Parameters!PowerBIReportServer.Value + "/General%20Reporting%20Help" + "','_blank'))"

Then I have a help button that has the Action\Go to URL set to [@PowerBIHelpReport] .然后我有一个帮助按钮,将 Action\Go to URL 设置为[@PowerBIHelpReport] When I preview the report on my developer PC I correctly see that @PowerBIHelpReport :当我在开发人员 PC 上预览报告时,我正确地看到@PowerBIHelpReport

javascript:void(window.open('/Reports/powerbi/General%20Reporting%20Help','_blank'))

But, when I deploy this to the report server the value changes to this and if I click the link I get a folder listing:但是,当我将它部署到报表服务器时,值会更改为此,如果我单击链接,我会得到一个文件夹列表:

javascript:void(window.open('/ReportServer/General%20Reporting%20Help','_blank'))

I also see that the parameters @PowerBIReportServer and @SSRSReportServer both have a value of "/ReportServer"我还看到参数@PowerBIReportServer@SSRSReportServer的值都是“/ReportServer”

What's going on?这是怎么回事?

I saw this question\answer:我看到了这个问题\答案:

SSRS 2008 Rpt Bldr 3: Go to URL action not setting parameters SSRS 2008 Rpt Bldr 3: Go to URL action not setting parameters

But if "ReportServer" is what's needed in the URL, how do I point to the different report types: SSRS vs Power BI?但是,如果 URL 需要“ReportServer”,我该如何指向不同的报告类型:SSRS 与 Power BI?

So two things resulted in me getting this to work.所以有两件事让我开始工作。

  1. Changed **@PowerBIReportServer** to: = REPLACE(Globals,ReportServerUrl, "ReportServer","Reports/PowerBI")**@PowerBIReportServer**更改为:= REPLACE(Globals,ReportServerUrl, "ReportServer","Reports/PowerBI")

  2. Changed **@SSRSReportServer** to: = Globals?ReportServerUrl + "?"**@SSRSReportServer**更改为:= Globals?ReportServerUrl + "?"

This link helped me arrive at this solution for the SSRS parameter.此链接帮助我找到了 SSRS 参数的解决方案。

https://community.powerbi.com/t5/Report-Server/Link-to-another-report-using-Built-in-Collections-global/td-p/1645567 https://community.powerbi.com/t5/Report-Server/Link-to-another-report-using-Built-in-Collections-global/td-p/1645567

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM