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 / Power Automate Cloud F...
Power Automate
Answered

Power Automate Cloud Flow using DAX query

(0) ShareShare
ReportReport
Posted on by

Hello,

 

I have a PowerBI visual where the source is PostgreSql DB, on AWS, via an ODBC connection (gateway also). The visual in BI populates with data.  I used the Optimizer to get the DAX query and use that in my first step after setting Recurrence.  The step appears to run but doesn't return any data.

JWessel_0-1704381238463.png

Outputs shows code of 200 with results body as follows:

{
"results": [
{}
]
}
 
What I'm not understanding is why Power BI produces results but not Power Automate.  I've attached the DAX Query below as well.
// DAX Query
DEFINE
VAR __DS0Core = 
SUMMARIZE(
'Abandoned Cases',
'Abandoned Cases'[Case],
'Abandoned Cases'[Days Old],
'Abandoned Cases'[Status],
'Abandoned Cases'[Request Date],
'Abandoned Cases'[Conference]
)
 
VAR __DS0PrimaryWindowed = 
TOPN(
501,
__DS0Core,
'Abandoned Cases'[Conference],
1,
'Abandoned Cases'[Days Old],
0,
'Abandoned Cases'[Case],
1,
'Abandoned Cases'[Status],
1,
'Abandoned Cases'[Request Date],
1
)
 
EVALUATE
__DS0PrimaryWindowed
 
ORDER BY
'Abandoned Cases'[Conference],
'Abandoned Cases'[Days Old] DESC,
'Abandoned Cases'[Case],
'Abandoned Cases'[Status],
'Abandoned Cases'[Request Date]

 

Any thoughts on what my issue could be?

Categories:
I have the same question (0)
  • Verified answer
    lbendlin Profile Picture
    8,479 Super User 2025 Season 2 on at

    What happens when you run this query instead?

     

     

     

    EVALUATE SUMMARIZE(
    'Abandoned Cases',
    [Case],
    [Days Old],
    [Status],
    [Request Date],
    [Conference]
    )

     

    Is "Days Old"  a column or a measure?

  • JWessel Profile Picture
    on at

    "Days Old" is a column.  My apologies, but I'm not sure where I should "run" the query you listed from.  The query I provided above is just copied from the Optimize/Performance Analyzer in Power BI project.  Are you suggesting that I somehow replace what is below with that?  How exactly would I do that?

    EVALUATE

    __DS0PrimaryWindowed
  • JWessel Profile Picture
    on at

    I modified the Evaluate _DS0PrimaryWindowed to replace that with your Evaluate and I get the same results which is no data.

  • lbendlin Profile Picture
    8,479 Super User 2025 Season 2 on at
    Replace your entire query text with my version.
  • JWessel Profile Picture
    on at

    Ibendlin.  Thanks much !!  That appears to get a data table in my flow.  I am very appreciative.

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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard