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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
hes-eng
New Member

Embedding Report with Power BI Report Server and external parameters

Hi,

I am embedding a report (saved on our Power BI Report Server) with an ASP .NET application.

Here is the piece of code that embeds the report on page:
 
page .aspx

<iframe id="frame1" scrolling="auto" runat="server" width="1000px;" height="600px"></iframe>


.cs code

protected void Page_Load(object sender, EventArgs e)
{
this.frame1.src="http://myserver/ReportsPBI/powerbi/Reports/test_param?rs:embed=true"; 
}

 

I am facing a problem about report parameters:

what I need is the possibility to extract, in the same report, different portions of data based on a external parameter passed in the URL.

To be more accurate, I need to show to different users just the portions of data that they can see (the source database has an application authentication).

 

How can I implement this feature in the .pbix project? And how can I pass the parameter through the URL?

 

Is it possible with Report Server on-premises or this feature is not supported?


Thanks in advance

1 ACCEPTED SOLUTION
DavisBI
Solution Specialist
Solution Specialist

Hi, @hes-eng ,

 

We can use URL parameters as a filter in Power BI Report that hosted on PBI Report Server, just like the figure below.

 

20201008172731.png

 

For detail, you can refer to this document.

 

Mark this post as sulution if this helps.

View solution in original post

3 REPLIES 3
DavisBI
Solution Specialist
Solution Specialist

Hi, @hes-eng ,

 

We can use URL parameters as a filter in Power BI Report that hosted on PBI Report Server, just like the figure below.

 

20201008172731.png

 

For detail, you can refer to this document.

 

Mark this post as sulution if this helps.

Hi again @DavisBI , 

thanks for the help, it all works correctly.

I have another question: is there any method to hide to the user, data that hasn't have to see?

Because when I call the URL with the filter parameter, the user can then delete it and see all the data without limits (even the ones he shouldn't see).

 

Thanks again

Then you might need to look into the Row Level Security for this purpose

 

https://www.sqlshack.com/introduction-to-row-level-security-in-power-bi/

https://radacad.com/row-level-security-configuration-in-power-bi-desktop

 







Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!

Proud to be a Super User!




Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors