Skip to main content

Notifications

Power Automate - Using Connectors
Unanswered

Run query against a dataset with a filter

(0) ShareShare
ReportReport
Posted on by

Hello,

 

I have a PBI report that lists information for 30 different teams in our organisation.  I would like to generate a daily export for each team manager that filters the report by that team only that will then trigger a email with a .csv attachment.  Basically one team shouldn't be able to view information for another team.

 

I am trying to use "Run a query against a dataset" that will filter the information for one team and then I'll replicate that 30 times in separate flows.

 

I'm struggling to work out if I can apply a filter within the query text as I'm still learning about the DAX coding.

 

So far, I've created

 

DEFINE

VAR _TeamAData = ALLSELECTED('TeamStats')

EVALUATE

_TeamAData

 

Is there something I can add on to this to filter the data to only show TeamA which is one of my data columns in the PBI report as the above is obviously just going to pull everything in that table.

 

Thanks,

 

Clare

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,495

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,822

Leaderboard

Featured topics