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 / 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,690 Super User 2026 Season 1 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,690 Super User 2026 Season 1 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 711

#2
Vish WR Profile Picture

Vish WR 691

#3
Haque Profile Picture

Haque 525

Last 30 days Overall leaderboard