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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
Anonymous
Not applicable

Paginated Report - Expression In Connection String

We are trying to use Power BI Paginated reports for our paginated reporting solution.  In SQL Server Reporting Services (the technology Power BI Paginated reports are based on) you could define your Data Source connection as an expression that used parameters in the report.  According to this Microsoft documentation this is also supported in Power BI Paginated reports - https://docs.microsoft.com/en-us/power-bi/paginated-reports-embedded-data-source

 

However I have not been able to get it to work.  In that document it indicates the Report Builder Data Source properties windows should have an 'expression' button (just like it the Visual Studio SSRS editor does).  However when I look in Report Builder I do not see this button.  However I can just enter my expression in the connection string box.

 

I verified that I had my connection string expression correct by running the report in the Visual Studio SSRS editor (Report Builder does not support running reports with connection expressions).  However if I attempt to upload .RDL file to our Power BI instance I receive an error saying the definition of the report is not valid.

Annotation 2020-02-19 163647.png

I am sure that it is the connection string expression causing this error because if I edit the report to make the connection string a static connection string, then I am able to successfully upload the report to Power BI.

 

My questions, is the Microsoft documentation wrong, and Power BI Paginated reports do not support connection string expressions?  Or is there some other step I need to take?

 

Thank You

1 ACCEPTED SOLUTION

On Power BI service, we cannot use expressions in connection string for RDL reports. At this time we do not have plans to provide a fix for this issue.

View solution in original post

7 REPLIES 7
TOK
Helper II
Helper II

@Anonymous Please check your Report Server version and compare it to your Report Builder version.

 

I had similiar issues, but was able to deal with them by downloading the matching report builder.

Anonymous
Not applicable

@TOKWe are using Power BI in Azure for our server, not Reporting Services.  Do you know how we would go about checking our Report Server version in that scenario?  I did check to make sure that I am on the latest version of Report Builder, and I am.

On Power BI service, we cannot use expressions in connection string for RDL reports. At this time we do not have plans to provide a fix for this issue.

Anonymous
Not applicable

Is it now possible to use an expression in an RDL string?

 

hi Hannes, this is still not possible. Thank you for posting at Microsoft Idea (powerbi.com). In meantime, you can try workaround here based upon your use case and security considersations by using SQL Linked servers and change the source table in query with fully qualified name (server-database-schema-table). 

Anonymous
Not applicable

Thank you rpatkar.  Much appreciated.  Will try the workaround, as per your suggestion.

v-diye-msft
Community Support
Community Support

Hi @Anonymous 

 

Please kindly make sure you are using the latest version, and here are some articles could be your reference :

https://docs.microsoft.com/en-us/sql/reporting-services/data-connections-data-sources-and-connection... 

https://docs.microsoft.com/en-us/power-bi/report-builder-expressions 

 

If not helps, please raise it to the support team for better advice:

https://powerbi.microsoft.com/en-us/support/ 

Support Ticket.gif

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.