How to Display Text in Pivot Table Values Area?

Display Text in Pivot Table Values Area to elevate the clarity and effectiveness of your data analysis. By incorporating textual data alongside numerical insights, you create a more comprehensive and accessible report that speaks to a wider audience. Whether it’s summarizing data categories, highlighting key findings, or indicating data quality, using text transforms your pivot tables into more informative, actionable tools. Master the skill of displaying text in the pivot table values area to unlock new dimensions in your Excel reports and dashboards.

This Content Covers:

  1. How to Display Text in Pivot Table Values Area using Data Model?
  2. How to Display Text in Pivot Table Values Area using Conditional Formatting?

1. How to Display Text in Pivot Table Values Area using Data Model?

Suppose we have this data table and we want to show the students’ names in the values area. Normally if we put the students category in the values area, it will give us the count of students. Now we will see how we can display the students’ names as text, instead of count inside Pivot table values area using the data model.

Display Text in Pivot Table Values Area

Step 1: Select the data-table and go to Insert>>Pivot Table.

Display text in Pivot Table value area

Step 2: This Pivot Table dialogue box will appear in your screen. Choose New Worksheet and check the box (Add this data to the Data Model). Click Ok.

Display Text in Pivot Table Values Area

Step 3: A new worksheet will open in your workbook. From PivotTable Fields, right on the table name and choose Add Measure.

Display text in Pivot Table value area

Step 4: The Measure dialogue box will pop up. Type a name inside Measure Name box and insert the following formula inside Formula box. From the Category list, keep it to General. Click on Check Dax Formula to see if there are any errors in the formula or not. If the formula is fine then press OK.

=CONCATENATEX(Values(Table1[Students]), Table1[Students], “, “)

Display text in Pivot Table value area

Step 5: Inside the PivotTable Fields there is now a new option added (Student Names) that we just created from Measure box. Drag Student Names inside Values field and drag Class and Result inside Rows field.

Display text in Pivot Table value area

Step 6: The pivot table is created and it looks like this, where the texts are inside Values area. To give it a better look we will remove the grand total from this table.

Display text in Pivot Table value area

Step 7: Click on the table and go to Design>>Grand Totals and select Off for Rows and Columns from the drop-down list.

Display text in Pivot Table value area

Step 8: The table will look like this after removing the grand total.

Display text in Pivot Table value area

2. How to Display Text in Pivot Table Values Area using Conditional Formatting?

Now we will see how we can display text in pivot table values area by using conditional formatting.

Display text in Pivot Table value area

Step 1: First we have to create a pivot table by using the data above. Select the table and go to Insert>>Pivot Table. From the Pivot Table dialogue box, choose New Worksheet and keep the Add this data to the Data Model box unchecked. Click OK.

Display text in Pivot Table value area

Step 2: Drag Salesman inside Rows field and Product Code inside Values field.

Display text in Pivot Table value area

Step 3: Click on Sum of Product Code and go to Value Field Settings.

Display text in Pivot Table value area

Step 4: Select Max from Summarize values field by category and click OK.

Display text in Pivot Table value area

Step 5: This is our pivot table now where the product code has three values (101,103,105).

Display text in Pivot Table value area

Step 6: Now we will change these values into text. For that select the range (B2:B10) and go to Home>>Conditional Formatting>>New Rules.

Display text in Pivot Table value area

Step 7: The New Formatting Rule dialogue box will appear on your screen. Select the third option from the first box (All cells showing “Max of Product Code” values for “Salesman”) and input the range inside Apply Rule To box. Then select Use a formula to determine which cells to format from the Select a Rule Type box. Inside the formula box, type this formula, =B2=101. After all these are done, click on Format option which is at the bottom right of this dialogue box.

Display text in Pivot Table value area

Step 8: From the Format Cells dialogue box, go to Number tab>>Custom. Now type this, [=101]”Mango” inside Type box.

Display text in Pivot Table value area

Step 9: Click OK>>OK. All the Product codes 101 which was for the product Mango are now changed into text.

Display text in Pivot Table value area

Step 10: To change the other two product codes into product names, simply follow Step 6-9 again.

To change product 103 into Lichi, use =B2=103 inside New Formatting Rule dialogue box and type [=103]”Lichi” inside the Type box in Format Cells prompt.

To change product 105 into Apple, use =B2=105 inside New Formatting Rule dialogue box and type [=105]” Apple” inside the Type box in Format Cells prompt. When you are done, the pivot table will look like this.

Display text in Pivot Table value area

Step 11: To remove the Grand Total, select the table and go to Design>>Grand Totals>>Off for Rows and Columns.

Display text in Pivot Table value area

Step 12: Final result.

Display text in Pivot Table value area

Application of Display Text in Pivot Table Values Area

  • Categorization Display: Use text in the values area to display categorical data, such as status labels or product names, alongside numerical values for a comprehensive overview.
  • Conditional Text Display: Implement conditional formatting to display text, such as “High”, “Medium”, or “Low”, based on numerical thresholds within the pivot table, aiding in quick assessment.
  • Data Grouping Labels: Show group names or descriptors in the values area when summarizing data by categories, providing clearer insights into segmented data analysis.
  • Custom Calculations Description: Display custom calculation results as text, like “Above Target” or “Below Target”, based on the analysis of numerical data within the pivot table.
  • Summary Text Results: Use text entries to summarize non-numerical data, such as the most common or last entry in a series, enhancing data interpretation.
  • Error Indicators: Present error messages or warnings as text in the values area, based on the analysis of related data points, for immediate attention and action.

For ready-to-use Dashboard Templates:

  1. Financial Dashboards
  2. Sales Dashboards
  3. HR Dashboards
  4. Data Visualization Charts

Leave a Comment

Your email address will not be published. Required fields are marked *

Categories