Forum Discussion
Paginated Report as a drill down report
Hi,
You need :
- One Power BI Report : here, ReportA
- One SSRS report : here, ReportB
- SSRS Report server URL. For example http://<yourserver>/reports/
- The full report pathname to your SSRS report : http://<yourserver>/reports/report/<Folder>/ReportB
Test this URL with your default browser (IE, Chrome, Firefox, Safari).
Parameters concepts:
Parameter is an expression: <AField> <criteria> <AValue>
- AField is the fieldname. For example: CountryCode
- criteria : =, <>, >, <, <=, >=, IN ( ) ..
- AValue : a number, integer, string, representing the value your are look for.
Example : CountryCode=FR
Report B (SSRS):
Very important: Add SSRS parameter in your Report B. If you don't do that, you can't pass parameter from Power BI Report.
Example:
Add a parameter CountryCode.
Power BI report can pass parameter to SSRS report:
To pass parameters expression to SSRS, you must always use the same syntax:
http://<yourserver>/reports/<reportFolder>/ReportB?<AField>=<someValueHere>
For example:
http://SRVBI/reports/Analytics/GlobalSales?CountryCode=FR
Where:
- SRVBI is your server name
- Analytics : the folder
- GlobalSales: the report name (without rdl extension).
- ? : Always add the ? symbol after the report name to pass the first parameter expression
- CountryCode=FR : the parameter expression
How to pass parameter from Power BI report to SSRS report?
1. Create a measure
Create a DAX measure to concatenate the report URL with the criteria value.
Example:
GoToSSRS_URL := CONCATENATE("http://SRVBI/reports/Analytics/GlobalSales?CountryCode=", SELECTEDVALUE( Countries[CountryCode] ) )
Where Countries is the table name and CountryCode, the field name.
SELECTEDVALUE() will return the current context value.
2. Using Action in Power BI.
If you never use Action, read this: https://docs.microsoft.com/fr-fr/power-bi/create-reports/desktop-buttons
And then? Simply use Url web action with your measure.
Before trying to pass more parameter, try just with one parameter.
In order to pass multiple criterias, use &
http://<yourserver>/reports/<reportFolder>/ReportB?<AFieldA>=<someValueHere> & <AFieldB>=<anotherValueHere>
Regards,
Denis
Thanks dpFr33 for the response. I was able to pass the single value from filter or slicer and it wroks perfectly! I'm getting hard tiem to pass the multiple values. It would be great if you can send the syntax for multi values, I tried to do like you mentioned but DAX is not taking it.
I'm trying to convert this URL to DAX but unable to do so yet: https://serverrp:DateNumber=2020 & Region=NW this URL works fine when directly run in browser.
Thanks for the help!
- Anonymous6 years agoNot applicable
Got it resolved. It was DAX that I was struggling but all set now. Thanks!
- GuestUser6 years agoHelper V
Hi Anonymous
It would be helpful if you can mention what u did to get the issue solved with some examples etc..(dax code etc)