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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Tadder
Helper II
Helper II

SQL Stored Procedure Equivalent in PBI?

Hello - I'm hoping someone out there can offer some advise.

 

We have several stored procedures in SQL Server that run every day/week and grabs two queries:

1. a list of SALESPEOPLE

2. a list of ORDERS

 

The procedure then loops through the salespeople one-at-a-time and filters the orders for each person, then sends an email with the records (line items) from the orders to the individual salesperson.  There might be 100 salespeople, so this was a VERY efficient way of getting this accomplished.  the basic steps of the SP:

a. salesperson #1

b. filter orders showing only line items where the salesperson is #1

c. send email with those line items (could be hundreds of lines or more) to salesperson

d. increment salesperson# and repeat

 

Is there anything like this possible using PBI Premium?

 

Thanks,

Tad

2 REPLIES 2
GilbertQ
Super User
Super User

Hi @Tadder 

 

Could you not write a query to bring in all the data for all the sales people into a single semantic model? Once you. have it in the semantic model, you could then use the new dynamic subscriptions to send out an email to each user based on the orders. Create a dynamic subscription for a Power BI report - Power BI | Microsoft Learn





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

Proud to be a Super User!







Power BI Blog

Thanks, GilbertQ.  I didn't know that was an option.  I will give this a read.  Hope it's the solution!

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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