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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / get value of measure t...
Power Automate
Unanswered

get value of measure to use in top n in a run a query against a dataset

(0) ShareShare
ReportReport
Posted on by 36

i have a query against a dataset.

i use a table where each username has a value

example 

user1 has 100

user 2 has 200

those numbers will be used to filter using topn in the query against a dataset so user 1 can export only 100 rows.

my measure in pb desktop is 

Measure 3 = CALCULATE(MAX('Table (2)'[maxout]),'Table (2)'[user]=USERNAME())
using in a visual seems to work
how can i take this value (100 for example and use it inside the query?
 
VAR __DS0PrimaryWindowed =
TOPN(10000, __DS0Core, [Measure], 1, 'Cst'[Customer_id], 1)
where 10000 must be dynamic
 
the columns with the numbers (100,200) ,made it string
Categories:
I have the same question (0)
  • Verified answer
    lbendlin Profile Picture
    8,474 Super User 2025 Season 2 on at

    Your query needs to return a table. Encapsulate your measure in a 

     

    EVALUATE ROW("Column Name", <measure>)

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard