Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
I am trying to pass a field value in one report to a parm value in another report using a url in the Action feature. The field on first report should be hyperlink. I test everything with values hard coded in the url and the second report runs with no problem. If I change the hard coded value to be the expression from the first report, the second report opens saying 'no data available'. The following is my url expression where the shopper code is the field defined as an expression (in bold):
https://myreporturl?rp:FromDimDate=2022-07-31&rp:ToDimDate=2022-12-31&rp:DimShopperCode=Lookup(Fields!Shopper_Code.Value &CStr(Fields!Date_BK.Value),Fields!Shopper_Code.Value & CStr(Fields!Date_BK.Value), Fields!Shopper_Code.Value, "Shopper_dataset")
Is this written correctly?
No this is not correct. This will be passing your expression as a static value to the other report. What you need to do is to create the entire URL as a string expression so that it resolves the lookup function and concatenates that onto your url.
eg.
="https://myreporturl?rp:FromDimDate=2022-07-31&rp:ToDimDate=2022-12-31&rp:DimShopperCode=" & Lookup(Fields!Shopper_Code.Value &CStr(Fields!Date_BK.Value),Fields!Shopper_Code.Value & CStr(Fields!Date_BK.Value), Fields!Shopper_Code.Value, "Shopper_dataset")"
User | Count |
---|---|
6 | |
4 | |
2 | |
2 | |
2 |
User | Count |
---|---|
6 | |
3 | |
3 | |
2 | |
2 |