Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Retrieve rows from pivot table



I have completed my Flow, but one of the steps results in an error. When I attempt to use the Excel: Get Rows action for a named pivot table in a spreadsheet, the action does not recognize the table name. Are pivot tables excluded from Excel actions? If so, is there a known workaround for this issue? My spreadsheet queries an external source which is then summarized in a pivot table. I'm attempting to extract the pivot table row values and insert them into an email all via a Flow. 


Your help is much appreciated, thank you. 

Community Support
Community Support

Hi @geotech,


The Excel Connector can't work with Pivot table.

The workable Excel table under Excel Connector is the following (Data Table):

Overview of Excel tables


You may need to first 'Copy' the Value from the Pivot table into an actual data table, then use the data table as the data source under Microsoft Flow.

Then follow my reply in the following thread to configure the Flow:

Read rows Excel and send mail




Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-micsh-msft, thank you for your response. The pivot table that I have is updated periodically and, without creating a macro, it does not seem possible to have an Excel table that mimics the pivot table. Are you aware of any workarounds for this that would not require a macro? 

Frequent Visitor

@v-micsh-msft, I was able to change the way my data source is fed into my spreadsheet and I'm able to use Excel tables as opposed to pivot tables. I followed your directions using the link you provided for the rest of the flow and I'm sucessfully able to produce an email with the table. I am having one minor issue related to the format of the date column in my table. I found a few resources that referenced the Compose action in order to format the date without the time stamp using: formatDateTime(item()?['Blocked_Date'],'MM/DD/YYYY'). The issue I'm having is that I'm not sure how to place the Compose action in the flow for it to properly format the column. I understand that the results from the Compose action are not currently being used in the flow. I've tried using the formatting above within the Select action, but that does not appear to work. I've also tried using the results from the Compose action in the Select action with no positive results. Do you know how I can incoprorate this formatting correctly?


Here's my flow:



Helpful resources

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power automate tips 768x460 v2.png

Restore a Deleted Flow

Did you know that you could restore a deleted flow? Check out this helpful article.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Users online (3,452)