<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Documentation – Refresh Pivot Tables and Pivot Caches in Aspose.Cells for Python via .NET</title>
    <link>https://docs.aspose.com/cells/python-net/refresh-pivot-table/</link>
    <description>Recent content in Refresh Pivot Tables and Pivot Caches in Aspose.Cells for Python via .NET on Documentation</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    
	  <atom:link href="https://docs.aspose.com/cells/python-net/refresh-pivot-table/index.xml" rel="self" type="application/rss+xml" />
    
    
      
        
      
    
    
    <item>
      <title>Pythonnet: Refresh and Calculate Pivot Table having Calculated Items</title>
      <link>https://docs.aspose.com/cells/python-net/refresh-and-calculate-pivot-table-having-calculated-items/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/python-net/refresh-and-calculate-pivot-table-having-calculated-items/</guid>
      <description>
        
        
        

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

Aspose.Cells for Python via .NET now supports refreshing and calculating pivot tables having calculated items. Please use the &lt;a href=&#34;https://reference.aspose.com/cells/python-net/aspose.cells.pivot/pivottable/refresh_data/#&#34;&gt;&lt;strong&gt;PivotTable.refresh_data&lt;/strong&gt;&lt;/a&gt; and &lt;a href=&#34;https://reference.aspose.com/cells/python-net/aspose.cells.pivot/pivottable/calculate_data/#&#34;&gt;&lt;strong&gt;PivotTable.calculate_data&lt;/strong&gt;&lt;/a&gt; as usual to perform this function.
&lt;/div&gt;

&lt;h2 id=&#34;refresh-and-calculate-pivot-table-having-calculated-items&#34;&gt;&lt;strong&gt;Refresh and Calculate Pivot Table having Calculated Items&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;The following sample code loads the &lt;a href=&#34;5115238.xlsx&#34;&gt;source Excel file&lt;/a&gt; which contains a pivot table with three calculated items such as &amp;ldquo;add&amp;rdquo;, &amp;ldquo;div&amp;rdquo;, and &amp;ldquo;div2&amp;rdquo;. We first change the value of cell D2 to 20 and then refresh and calculate the pivot table using Aspose.Cells for Python via .NET APIs, and save the workbook in PDF format. The results in the &lt;a href=&#34;5115229.pdf&#34;&gt;output PDF&lt;/a&gt; show that Aspose.Cells for Python via .NET refreshed and calculated the pivot table with calculated items successfully. You can verify this using Microsoft Excel by manually placing the value 20 in cell D2 and then refreshing the pivot table via the Alt+F5 shortcut key or by clicking the Refresh button.&lt;/p&gt;
&lt;p&gt;&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/7bb30376b4d40cdfd596286870fb9752.js?file=PivotTable-RefreshAndCalculateItems-1.py&#34;&gt;&lt;/script&gt;

&lt;button class=&#34;floating-button&#34; id=&#34;openModalBtn&#34;&gt;AI Document Assistant&lt;/button&gt;

&lt;div class=&#34;modal&#34; id=&#34;modal&#34;&gt;
    &lt;button class=&#34;close-btn&#34; id=&#34;closeModalBtn&#34;&gt;Close&lt;/button&gt;
    &lt;iframe src=&#34;https://products.aspose.ai/cells/chat/document/python-net?source=docs&#34; frameborder=&#34;0&#34; width=&#34;100%&#34; height=&#34;100%&#34;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;style&gt;
    .floating-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #007bff;
        color: white;
        border: none;
        padding: 15px 20px;
        border-radius: 50px;
        cursor: pointer;
        font-size: 16px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .modal {
        display: none;
        position: fixed;
        top: 10%;
        left: 10%;
        width: 80%;
        height: 80%;
        background-color: white;
        border: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        padding: 20px;
        box-sizing: border-box;
    }

    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: #f44336;
        color: white;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        font-size: 16px;
        border-radius: 3px;
    }
&lt;/style&gt;

&lt;script&gt;
    const openModalBtn = document.getElementById(&#39;openModalBtn&#39;);
    const closeModalBtn = document.getElementById(&#39;closeModalBtn&#39;);
    const modal = document.getElementById(&#39;modal&#39;);

    openModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;block&#39;;
    });

    closeModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;none&#39;;
    });

    window.addEventListener(&#39;click&#39;, function(event) {
        if (event.target === modal) {
            modal.style.display = &#39;none&#39;;
        }
    });
&lt;/script&gt;
&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Pythonnet: Find and Refresh the Nested or Children Pivot Tables of Parent Pivot Table</title>
      <link>https://docs.aspose.com/cells/python-net/find-and-refresh-the-nested-or-children-pivot-tables-of-parent-pivot-table/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/python-net/find-and-refresh-the-nested-or-children-pivot-tables-of-parent-pivot-table/</guid>
      <description>
        
        
        &lt;h2 id=&#34;possible-usage-scenarios&#34;&gt;&lt;strong&gt;Possible Usage Scenarios&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;Sometimes, one pivot table uses another pivot table as a data source, so it is called a child pivot table or nested pivot table. You can find the children pivot tables of a parent pivot table using the &lt;a href=&#34;https://reference.aspose.com/cells/python-net/aspose.cells.pivot/pivottable/get_children/#&#34;&gt;&lt;strong&gt;PivotTable.get_children()&lt;/strong&gt;&lt;/a&gt; method.&lt;/p&gt;
&lt;h2 id=&#34;how-to-find-and-refresh-the-nested-or-children-pivot-tables-of-parent-pivot-table&#34;&gt;&lt;strong&gt;How to Find and Refresh the Nested or Children Pivot Tables of Parent Pivot Table&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;The following sample code loads the &lt;a href=&#34;61767747.xlsx&#34;&gt;sample Excel file&lt;/a&gt; that contains three pivot tables. The bottom two pivot tables are the children of the above pivot table as shown in this screenshot. The code finds the child pivot tables using the &lt;a href=&#34;https://reference.aspose.com/cells/python-net/aspose.cells.pivot/pivottable/get_children/#&#34;&gt;&lt;strong&gt;PivotTable.get_children()&lt;/strong&gt;&lt;/a&gt; method and then refreshes them one by one.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;find-and-refresh-the-nested-or-children-pivot-tables-of-parent-pivot-table_1.png&#34; alt=&#34;todo:image_alt_text&#34;&gt;&lt;/p&gt;
&lt;h2 id=&#34;sample-code&#34;&gt;&lt;strong&gt;Sample Code&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/7bb30376b4d40cdfd596286870fb9752.js?file=PivotTables-FindAndRefreshNestedOrChildrenPivotTables.py&#34;&gt;&lt;/script&gt;

&lt;button class=&#34;floating-button&#34; id=&#34;openModalBtn&#34;&gt;AI Document Assistant&lt;/button&gt;

&lt;div class=&#34;modal&#34; id=&#34;modal&#34;&gt;
    &lt;button class=&#34;close-btn&#34; id=&#34;closeModalBtn&#34;&gt;Close&lt;/button&gt;
    &lt;iframe src=&#34;https://products.aspose.ai/cells/chat/document/python-net?source=docs&#34; frameborder=&#34;0&#34; width=&#34;100%&#34; height=&#34;100%&#34;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;style&gt;
    .floating-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #007bff;
        color: white;
        border: none;
        padding: 15px 20px;
        border-radius: 50px;
        cursor: pointer;
        font-size: 16px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .modal {
        display: none;
        position: fixed;
        top: 10%;
        left: 10%;
        width: 80%;
        height: 80%;
        background-color: white;
        border: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        padding: 20px;
        box-sizing: border-box;
    }

    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: #f44336;
        color: white;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        font-size: 16px;
        border-radius: 3px;
    }
&lt;/style&gt;

&lt;script&gt;
    const openModalBtn = document.getElementById(&#39;openModalBtn&#39;);
    const closeModalBtn = document.getElementById(&#39;closeModalBtn&#39;);
    const modal = document.getElementById(&#39;modal&#39;);

    openModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;block&#39;;
    });

    closeModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;none&#39;;
    });

    window.addEventListener(&#39;click&#39;, function(event) {
        if (event.target === modal) {
            modal.style.display = &#39;none&#39;;
        }
    });
&lt;/script&gt;
&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Pythonnet: Get Pivot Table Refresh Date and Refresh‑by‑Who Information</title>
      <link>https://docs.aspose.com/cells/python-net/get-pivot-table-refresh-date-and-refresh-by-who-information/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/python-net/get-pivot-table-refresh-date-and-refresh-by-who-information/</guid>
      <description>
        
        
        

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

Aspose.Cells for Python via .NET now supports fetching the refresh date and refresh‑by‑who information from a workbook.
&lt;/div&gt;

&lt;h2 id=&#34;how-to-get-pivot-table-refresh-date-and-refreshbywho-information&#34;&gt;&lt;strong&gt;How to Get Pivot Table Refresh Date and Refresh‑by‑Who Information&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;&lt;a href=&#34;https://reference.aspose.com/cells/python-net/aspose.cells.pivot/pivottable/refresh_date/&#34;&gt;&lt;strong&gt;PivotTable.refresh_date&lt;/strong&gt;&lt;/a&gt; returns the date on which the PivotTable report was last refreshed. Similarly, the &lt;a href=&#34;https://reference.aspose.com/cells/python-net/aspose.cells.pivot/pivottable/refreshed_by_who/&#34;&gt;&lt;strong&gt;PivotTable.refreshed_by_who&lt;/strong&gt;&lt;/a&gt; property returns the name of the user who refreshed the report last time. The following example demonstrates this feature, and the sample file can be downloaded from the link below.&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;77496335.xlsx&#34;&gt;SourcePivotTable.xlsx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Sample Code&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/7bb30376b4d40cdfd596286870fb9752.js?file=PivotTables-GetPivotTableRefreshDate-1.py&#34;&gt;&lt;/script&gt;

&lt;button class=&#34;floating-button&#34; id=&#34;openModalBtn&#34;&gt;AI Document Assistant&lt;/button&gt;

&lt;div class=&#34;modal&#34; id=&#34;modal&#34;&gt;
    &lt;button class=&#34;close-btn&#34; id=&#34;closeModalBtn&#34;&gt;Close&lt;/button&gt;
    &lt;iframe src=&#34;https://products.aspose.ai/cells/chat/document/python-net?source=docs&#34; frameborder=&#34;0&#34; width=&#34;100%&#34; height=&#34;100%&#34;&gt;&lt;/iframe&gt;
&lt;/div&gt;

&lt;style&gt;
    .floating-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: #007bff;
        color: white;
        border: none;
        padding: 15px 20px;
        border-radius: 50px;
        cursor: pointer;
        font-size: 16px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .modal {
        display: none;
        position: fixed;
        top: 10%;
        left: 10%;
        width: 80%;
        height: 80%;
        background-color: white;
        border: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        z-index: 1000;
        padding: 20px;
        box-sizing: border-box;
    }

    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        background-color: #f44336;
        color: white;
        border: none;
        padding: 5px 10px;
        cursor: pointer;
        font-size: 16px;
        border-radius: 3px;
    }
&lt;/style&gt;

&lt;script&gt;
    const openModalBtn = document.getElementById(&#39;openModalBtn&#39;);
    const closeModalBtn = document.getElementById(&#39;closeModalBtn&#39;);
    const modal = document.getElementById(&#39;modal&#39;);

    openModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;block&#39;;
    });

    closeModalBtn.addEventListener(&#39;click&#39;, function() {
        modal.style.display = &#39;none&#39;;
    });

    window.addEventListener(&#39;click&#39;, function(event) {
        if (event.target === modal) {
            modal.style.display = &#39;none&#39;;
        }
    });
&lt;/script&gt;
&lt;/p&gt;

      </description>
    </item>
    
  </channel>
</rss>
