Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
139068
Regular Visitor

Paginated Report - Report empty when using url to pass field value to a parm value in another rpt

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?

1 REPLY 1
d_gosbell
Super User
Super User

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")"

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.