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 / 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:
I have the same question (0)

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

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard