• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Pivot Row, when value does not appear in Dataset|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / Pivot Row, when value does not appear in Dataset|General Excel Questions & Answers|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumGeneral Excel Questions & Answe…Pivot Row, when value does not appe…
sp_PrintTopic sp_TopicIcon
Pivot Row, when value does not appear in Dataset
Avatar
Darren Price

Active Member
Members

Dashboards

Power Query

Power Pivot
Level 0
Forum Posts: 3
Member Since:
November 12, 2020
sp_UserOfflineSmall Offline
1
November 12, 2020 - 9:05 pm
sp_Permalink sp_Print

Hi all,

I'm very new to the wonder of Pivot Tables and the ability to produce fantastic dashboards. I'm trying to work through a simple example, but I have hit a blocker that I cannot find the answer too.

I have a 'status' column for my data. This can only have 5 fixed values. (Almost certain, Likely, Possible, Unlikely and Rare). However, if one of those values - say rare, is not currently used and does not appear in my data, how can I show it in the pivot table? (even if the count is zero). 

By the default the Pivot table will only show the first four values, as my dataset currently ONLY has those values. Is there a way to force the pivot to also show 'rare', even though no data currently has that value?

Regards,

Confused new user!

Darren. 

sp_AnswersTopicSeeAnswer See Answer
Avatar
Velouria
London or thereabouts
Moderator
Members


Trusted Members

Moderators
Level 4
Forum Posts: 625
Member Since:
November 1, 2018
sp_UserOfflineSmall Offline
2
November 12, 2020 - 9:14 pm
sp_Permalink sp_Print

Try changing the settings for that field to 'Show items with no data'

Avatar
Darren Price

Active Member
Members

Dashboards

Power Query

Power Pivot
Level 0
Forum Posts: 3
Member Since:
November 12, 2020
sp_UserOfflineSmall Offline
3
November 12, 2020 - 9:48 pm
sp_Permalink sp_Print

Ah - that option is greyed out for me, but I think you have set me off on the right path...

Sounds like I need an OLAP cube to tell the pivot what is the structure of my data-table. I need to tell it, there are 5 values. At the moment, my very basic pivot is just reading the data, and seeing only 4 values, so it assumes there are only 4.

Thank you for pushing me to the right path....

Cheers

Darren. 

Avatar
Anders Sehlstedt
Eskilstuna, Sweden

VIP
Members


Trusted Members
Level 3
Forum Posts: 871
Member Since:
December 7, 2016
sp_UserOfflineSmall Offline
4
November 13, 2020 - 6:38 am
sp_Permalink sp_Print

Hello,

As mentioned in an earlier post.
”Be sure to select a cell in the column labels area before right clicking > Field Settings (not 'Value Field Settings') > Layout & Print tab > 'Show items with no data'.”

Give it a try.

Br,
Anders

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4449
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
5
November 13, 2020 - 10:00 am
sp_Permalink sp_Print

Hi Darren,

You're going in the right direction. To clarify Anders suggestion, the 'show items with no data' option is not available with Power Pivot PivotTables, and will also only work if the items are actually in the dataset at a completely unfiltered level, which it sounds like yours aren't.

You can use CUBE formulas to build your table that queries your Power Pivot model, however you need to add another table to your model first.

This table will contain all the status values (this is known as a dimension table). It can be a single column table. Then you create a relationship between your original table and the new dimension table. 

In the attached file I've created a PivotTable from the two tables, then coverted it to CUBE formulas (PivotTable Analyze tab > OLAP Tools > Convert to Formulas). This will give you the formula structure. I then copied the formulas and edited them to reference the status that wasn't in the source data.

Hope that helps.

Mynda

sp_AnswersTopicAnswer
Answers Post
Avatar
Velouria
London or thereabouts
Moderator
Members


Trusted Members

Moderators
Level 4
Forum Posts: 625
Member Since:
November 1, 2018
sp_UserOfflineSmall Offline
6
November 13, 2020 - 7:31 pm
sp_Permalink sp_Print sp_EditHistory

and will also only work if the items are actually in the dataset at a completely unfiltered level, which it sounds like yours aren't.

 

As long as the data was in there at some point, and the pivot table options haven't been changed from the default (automatic saving of old data), then the option should still work even if the item in question is not present at all in the current data set.

 

But it does sound like this is a data model pivot, so the question is moot anyway. 🙂

Avatar
Mynda Treacy
Admin
Level 10
Forum Posts: 4449
Member Since:
July 16, 2010
sp_UserOfflineSmall Offline
7
November 13, 2020 - 7:41 pm
sp_Permalink sp_Print

Ooh, good idea, Velouria! Although, like you say, not relevant in this case, but crafty workaround to keep in mind for other scenarios.

Avatar
Darren Price

Active Member
Members

Dashboards

Power Query

Power Pivot
Level 0
Forum Posts: 3
Member Since:
November 12, 2020
sp_UserOfflineSmall Offline
8
November 13, 2020 - 9:12 pm
sp_Permalink sp_Print

Wow - Thank you everyone. This has nailed it for me. FANTASTIC.

Much appreciated everyone's help. 

Regards

Darren.

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Kim Knox, Mitchell Dahms, michael serna, Kathryn Patton
Guest(s) 11
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 871
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
Jessica Stewart: 204
A.Maurizio: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
Kathryn Patton
Maria Conatser
Jefferson Granemann
Glen Coulthard
Nikki Fox
Rachele Dickie
Raj Mattoo
Mark Luke
terimeri dooriyan
Jack Aston
Forum Stats:
Groups: 3
Forums: 24
Topics: 6221
Posts: 27285

 

Member Stats:
Guest Posters: 49
Members: 31909
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.