<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Documentation – 在 Aspose.Cells for .NET 中管理数据透视表的值字段</title>
    <link>https://docs.aspose.com/cells/zh/net/manage-value-fields/</link>
    <description>Recent content in 在 Aspose.Cells for .NET 中管理数据透视表的值字段 on Documentation</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>zh</language>
    
	  <atom:link href="https://docs.aspose.com/cells/zh/net/manage-value-fields/index.xml" rel="self" type="application/rss+xml" />
    
    
      
        
      
    
    
    <item>
      <title>Net: 合并函数</title>
      <link>https://docs.aspose.com/cells/zh/net/consolidation-function/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/zh/net/consolidation-function/</guid>
      <description>
        
        
        &lt;h2 id=&#34;合并函数&#34;&gt;&lt;strong&gt;合并函数&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;Aspose.Cells 可用于将合并函数应用于数据透视表的数据字段（或值字段）。在 Microsoft Excel 中，您可以右键单击值字段，然后选择“值字段设置&amp;hellip;”选项，然后选择选项卡“按以下方式汇总值”。从那里，您可以选择任何您喜欢的合并函数，如求和、计数、平均值、最大值、最小值、乘积、去重计数等。&lt;/p&gt;
&lt;p&gt;Aspose.Cells提供&lt;a href=&#34;https://reference.aspose.com/cells/net/aspose.cells/consolidationfunction&#34;&gt;&lt;strong&gt;ConsolidationFunction&lt;/strong&gt;&lt;/a&gt;枚举以支持以下合并功能。&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;ConsolidationFunction.Average&lt;/li&gt;
&lt;li&gt;ConsolidationFunction.Count&lt;/li&gt;
&lt;li&gt;ConsolidationFunction.CountNums&lt;/li&gt;
&lt;li&gt;ConsolidationFunction.DistinctCount&lt;/li&gt;
&lt;li&gt;ConsolidationFunction.Max&lt;/li&gt;
&lt;li&gt;ConsolidationFunction.Min&lt;/li&gt;
&lt;li&gt;ConsolidationFunction.Product&lt;/li&gt;
&lt;li&gt;ConsolidationFunction.StdDev&lt;/li&gt;
&lt;li&gt;ConsolidationFunction.StdDevp&lt;/li&gt;
&lt;li&gt;ConsolidationFunction.Sum&lt;/li&gt;
&lt;li&gt;ConsolidationFunction.Var&lt;/li&gt;
&lt;li&gt;ConsolidationFunction.Varp&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;应用合并功能到数据字段的数据透视表&#34;&gt;&lt;strong&gt;应用合并功能到数据字段的数据透视表&lt;/strong&gt;&lt;/h3&gt;
&lt;p&gt;以下代码将&lt;strong&gt;平均值&lt;/strong&gt;整合函数应用于第一个数据字段（或数值字段），将&lt;strong&gt;不重复计数&lt;/strong&gt;整合函数应用于第二个数据字段（或数值字段）。&lt;/p&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/88c9872508ec3150c552eb5155edf06e.js?file=Examples-CSharp-PivotTable-ConsolidationFunctions-1.cs&#34;&gt;&lt;/script&gt;



&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

Microsoft Excel 2013仅支持去重计数合并功能。
&lt;/div&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/csharp?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;


      </description>
    </item>
    
    <item>
      <title>Net: 在数据透视表中处理数据字段的数据显示格式</title>
      <link>https://docs.aspose.com/cells/zh/net/working-with-data-display-formats-of-datafield-in-pivot-table/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://docs.aspose.com/cells/zh/net/working-with-data-display-formats-of-datafield-in-pivot-table/</guid>
      <description>
        
        
        

&lt;div class=&#34;alert alert-primary&#34; role=&#34;alert&#34;&gt;

Aspose.Cells支持数据透视表中所有数据字段的数据显示格式。
&lt;/div&gt;

&lt;h2 id=&#34;从最小到最大的排名和从最大到最小的排名显示格式选项&#34;&gt;&lt;strong&gt;“从最小到最大的排名”和“从最大到最小的排名”显示格式选项&lt;/strong&gt;&lt;/h2&gt;
&lt;p&gt;ASpose.Cells提供了设置数据透视字段显示格式选项的功能。为此，API提供了&lt;a href=&#34;https://reference.aspose.com/cells/net/aspose.cells.pivot/pivotshowvaluessetting/calculationtype/&#34;&gt;&lt;strong&gt;PivotField.ShowValuesSetting.CalculationType&lt;/strong&gt;&lt;/a&gt;属性。为了从最大到最小排名，您可以将&lt;a href=&#34;https://reference.aspose.com/cells/net/aspose.cells.pivot/pivotshowvaluessetting/calculationtype/&#34;&gt;&lt;strong&gt;PivotField.ShowValuesSetting.CalculationType&lt;/strong&gt;&lt;/a&gt;属性设置为&lt;a href=&#34;https://reference.aspose.com/cells/net/aspose.cells.pivot/pivotfielddatadisplayformat&#34;&gt;&lt;strong&gt;PivotFieldDataDisplayFormat.RankLargestToSmallest&lt;/strong&gt;&lt;/a&gt;。以下代码片段演示了设置显示格式选项。&lt;/p&gt;
&lt;p&gt;可从此处下载示例源文件和输出文件以测试示例代码:&lt;/p&gt;
&lt;p&gt;【源 Excel 文件】（101089332.xlsx）&lt;/p&gt;
&lt;p&gt;【输出 Excel 文件】（101089333.xlsx）&lt;/p&gt;
&lt;script type=&#34;application/javascript&#34; src=&#34;https://gist.github.com/aspose-cells-gists/88c9872508ec3150c552eb5155edf06e.js?file=Examples-CSharp-PivotTables-PivotTableDataDisplayFormatRanking-1.cs&#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/csharp?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;


      </description>
    </item>
    
  </channel>
</rss>
