Conditionally format pivot table calculated field.

Hello,


I am creating an excel workbook with a pivot table on one worksheet, and I have a calculated field for that pivot table that I need to conditionally format. I looked at the formatting section for the pivot table in the documentation, and there was nothing there about how to add formatting to individual cells/columns in the pivot table. I came across this post that talks about conditional formatting in a pivot table, but it didn't help resolve my issue. The solution that was proposed in the post was to use the IPivotTable.Layout() function, but when I used it in my code, the calculated field values were all zeros; the Layout function, in the notes of it in Visual Studio said "This property is not supported in... ASP.NET Core platforms." So, it seems I can't use this either.


I have found no other applicable posts for this issue, nor anything in the documentation. Is conditional formatting for pivot tables in XlsIO for ASP.NET Core not supported?

I have attached a code snippet where I am testing creating the excel spreadsheet.


Attachment: ExcelExport_420eb2bc.zip

2 Replies 1 reply marked as answer

AH Alex Harson James Henso Syncfusion Team March 12, 2025 02:25 PM UTC

Hi Ethan,

 

We are reproduced the reported issue at our end and currently validating it. We will share the validation details on Mar 14th, 2025.

 

Best regards,

Alex Harson James H



AH Alex Harson James Henso Syncfusion Team March 14, 2025 12:43 PM UTC

Hi Ethan,

 

Currently, XlsIO does not support pivot table calculate field with formula in Layout method. As a result, conditional formatting does not appear in pivot tables.

At this time, we do not have immediate plans to implement this feature. However, for future updates, please follow the feedback link below:

Support for pivot table calculate field with formula in Layout method in ASP.NET Core | Feedback Portal

Please let us know if you need any further clarification.

 

Best regards,

Alex Harson James H


Marked as answer
Loader.
Up arrow icon