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
AnkitSingla
Frequent Visitor

Can we have functionality like web application in Power BI?

As per the requirement, user should be provided with a text box and Search button on the report.

On the text box, user is supposed to enter an email.

Based upon the user input, it should trigger Power Shell script which in turn fetches the result from Azure SQL database.

Those results need to be displayed in the report.

 

This is a kind of web app functionality.

 

Can it be done in Power BI?

 

I tried using Dynamic M Query parameter. it is not supported for Azure SQL.

https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-dynamic-m-query-parameters#considerat...

3 REPLIES 3
nandukrishnavs
Super User
Super User

Hi @AnkitSingla ,

 

 

It could be achieve using PowerApp custom visual. The search box and button should be created in the PowerApp. Using PowerAutomate you can invoke PowerShell script with the help of AzureFunction. Once you have the result data, you can temporarily save it in Azure SQL along with your login id (login id is required for RLS). When you pass a new email address in the PowerApp, you can replace the existing result. This table needs to be connected to PowerBI using DirectQuery mode. With the help of RLS, you will see only your query results from the temporary table.

 

Regards,
Nandu Krishna

Did I answer your question? Mark my post as a solution!
Appreciate with a kudos 👍

Proud to be a Super User!


Regards,
Nandu Krishna

AnkitSingla
Frequent Visitor

Hi @v-yiruan-msft ,

Parameter works in Power Query the way you have shared.

However, as per the requirement, user will provide input on Power BI report. This input will go to Azure function as parameter. Azure function has power shell script in it which returns JSON response. This response needs to be parsed and displayed in power BI report.

This complete flow is like a web app. However, it needs to be done using Power BI.

v-yiruan-msft
Community Support
Community Support

Hi @AnkitSingla ,

I just tried to apply query parameter in the sql statement from SQL Server database, it works just as shown in below screenshot. Could you please validate whether it can also work in Azure SQL?

Power BI Desktop Query Parameters

How do I pass parameters to my SQL statement?

yingyinr_0-1624009201802.png

Best Regards

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

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.