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 / Run a query against a ...
Power Automate
Unanswered

Run a query against a dataset: recurrence not working

(0) ShareShare
ReportReport
Posted on by

I built a flow that runs a query against a dataset and exports the result to a csv file on sharepoint. I scheduled it to run daily. When I test the flow, it works fine. But the next day, the flow runs but returns an empty table. When I hit resubmit, it works fine again. I don't understand what could be the problem here? Any help would be much appreciated.

 

KimDefreyne_0-1712139822316.png

 

// DAX Query
DEFINE
VAR __DS0FilterTable = 
FILTER(
KEEPFILTERS(VALUES('fCallQueueAnalytics'[Call Start Time Local])),
AND(
'fCallQueueAnalytics'[Call Start Time Local] >= DATE(@{variables('varYesterday')}),
'fCallQueueAnalytics'[Call Start Time Local] < DATE(@{variables('varToday')})
)
)
 
VAR __DS0Core = 
SUMMARIZECOLUMNS(
ROLLUPADDISSUBTOTAL(
ROLLUPGROUP(
'fCallQueueAnalytics'[Call Start Time Local],
'fCallQueueAnalytics'[CQ Name],
'fCallQueueAnalytics'[Call Queue Call Result],
'fCallQueueAnalytics'[Call Queue Agent Count],
'fCallQueueAnalytics'[Call Queue Agent Opt In Count],
'fCallQueueAnalytics'[Call Queue Call Result Legend],
'fCallQueueAnalytics'[Call Queue Target Type Legend],
'fCallQueueAnalytics'[PSTN Connectivity Type],
'fCallQueueAnalytics'[ConferenceID],
'fCallQueueAnalytics'[CQHour]
), "IsGrandTotalRowTotal"
),
__DS0FilterTable,
"Avg_of_Average_CQ_Duration___zero_instead_of_blank", 'fCallQueueFinalStateAction'[Avg of Average CQ Duration - zero instead of blank],
"AverageAverage_Call_Queue_Duration__Sec_", CALCULATE(AVERAGE('fCallQueueFinalStateAction'[Average Call Queue Duration (Sec)]))
)
 
VAR __DS0PrimaryWindowed = 
TOPN(
2000,
__DS0Core,
[IsGrandTotalRowTotal],
0,
'fCallQueueAnalytics'[Call Start Time Local],
1,
'fCallQueueAnalytics'[CQ Name],
1,
'fCallQueueAnalytics'[Call Queue Call Result],
1,
'fCallQueueAnalytics'[Call Queue Agent Count],
1,
'fCallQueueAnalytics'[Call Queue Agent Opt In Count],
1,
'fCallQueueAnalytics'[Call Queue Call Result Legend],
1,
'fCallQueueAnalytics'[Call Queue Target Type Legend],
1,
'fCallQueueAnalytics'[PSTN Connectivity Type],
1,
'fCallQueueAnalytics'[ConferenceID],
1,
'fCallQueueAnalytics'[CQHour],
1
)
 
EVALUATE
__DS0PrimaryWindowed
 
ORDER BY
[IsGrandTotalRowTotal] DESC,
'fCallQueueAnalytics'[Call Start Time Local],
'fCallQueueAnalytics'[CQ Name],
'fCallQueueAnalytics'[Call Queue Call Result],
'fCallQueueAnalytics'[Call Queue Agent Count],
'fCallQueueAnalytics'[Call Queue Agent Opt In Count],
'fCallQueueAnalytics'[Call Queue Call Result Legend],
'fCallQueueAnalytics'[Call Queue Target Type Legend],
'fCallQueueAnalytics'[PSTN Connectivity Type],
'fCallQueueAnalytics'[ConferenceID],
'fCallQueueAnalytics'[CQHour]

 

Categories:

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 307 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 289

#3
Henil Profile Picture

Henil 127

Last 30 days Overall leaderboard