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
Anonymous
Not applicable

Single PowerBI Embedded API to call separate reports based on condition

Hi Folks,

               We have an existing Power BI Rest API being used by a third party to call a Power BI Report. There is a new requirement from the same third party vendor to call a different Power BI report based on a set of criteria for a separate user group. My question is, can we modify the existing PowerBI Embedded Rest API to switch the report based on additional criteria passed by third party (Example: If a field called Group with value "A" is passed instead of "B", then show report A, otherwise show report B). Or, do we need to create separate Power BI Rest APIs for each power BI report and write the logic to view the report based on respective groups on the third party solution file.

 

Thanks,

Rob

1 REPLY 1
Jayendran
Solution Sage
Solution Sage

Hi @Anonymous 

 

I think you don't need to create another REST API . As you already mentioned you can parameterize and have a condition to show based.

 

Withthis you have very small changes to your code and avoid duplications too.

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.