web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Send a Power BI report...
Power Automate
Unanswered

Send a Power BI report table(s) for specific sales representative to his/her email

(0) ShareShare
ReportReport
Posted on by

Hi,

I have a report of account receivables and I want to send 4 different tables via email to different sales representatives. 

Understandably I want to send each sales representative a table of only their customers - I select a sales representative with a slicer and his data will be sent to his email.

I found a great video how to do something similar with formatting: https://www.youtube.com/watch?v=tbNvNk11sXM 

Jason uses "Run a query against a dataset" option and copies the query of specific visual from Performance analyzer. 

My query would start like this:

// DAX Query
DEFINE
 VAR __DS0FilterTable = 
 TREATAS({"Sales representative A"}, 'Reps table'[Rep])

 VAR __DS0FilterTable2 = 
 FILTER(
 KEEPFILTERS(VALUES('My measure'[Measure])),
 ''My measure'[Measure] = 10
 )
 VAR __ValueFilterDM1 = 
 FILTER(

 The important parts I want to be dynamic is the first TREATAS function, where Sales representative A is selected and the number 10.

 

I got an advice to create a variable and pass dynamic content into the query text. 

I just don't know how to do it. 

Questions:

I pass the fields for dynamic content into the Power Automate button field Power Automate Data, right?

Petanek333_0-1674148472661.png

These are names of Sales representatives that are selected in the slicer (OZ), number of days and email of each Sales representative. 

If I Initialize a variable to store the sales rep name in it and add dynamic content, it is suddenly all wrapped up in Apply to each.

Petanek333_1-1674148681644.png

I only want to send one email of one selected Sales rep, so is it ok? 

 

I know it is quite chaotic, but I thought it would be simple to create a flow. I would like to make two parts of the query dynamic (sales rep name and number of days), then create a formatted html table following instructions in the video, then create a Send email step with a dynamic recipient based on the slicer selection and send him the table.

 

Is it possible for anyone to write some instruction or steps what I can do to achieve this? A youtube video with a similar theme would suffice. I just get lost in Apply to each when I add a dynamic content.

Categories:
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 471

#2
11manish Profile Picture

11manish 246

#3
David_MA Profile Picture

David_MA 238 Super User 2026 Season 1

Last 30 days Overall leaderboard