Συγκεντρωτικός πίνακας: Συγκεντρωτικός πίνακας τελευταίους 12 μήνες -

Πίνακας περιεχομένων

Για να δημιουργήσετε έναν συγκεντρωτικό πίνακα που εμφανίζει τους τελευταίους 12 μήνες δεδομένων (δηλαδή κυλιόμενο 12 μήνες), μπορείτε να προσθέσετε μια βοηθητική στήλη στα δεδομένα προέλευσης με έναν τύπο για να επισημάνετε τις εγγραφές τους τελευταίους 12 μήνες και, στη συνέχεια, χρησιμοποιήστε τη στήλη βοηθού για φιλτράρισμα τα δεδομένα στον συγκεντρωτικό πίνακα. Στο παράδειγμα που εμφανίζεται, η τρέχουσα ημερομηνία είναι 23 Αυγούστου 2019 και ο συγκεντρωτικός πίνακας δείχνει 12 μήνες πριν. Όταν προστίθενται νέα δεδομένα με την πάροδο του χρόνου, ο συγκεντρωτικός πίνακας θα συνεχίσει να παρακολουθεί τους προηγούμενους 12 μήνες με βάση την τρέχουσα ημερομηνία.

Πεδία

Στον συγκεντρωτικό πίνακα που εμφανίζεται, υπάρχουν τρία πεδία στα δεδομένα προέλευσης: Ημερομηνία, Πωλήσεις και Φίλτρο. Το φίλτρο είναι μια βοηθητική στήλη με τύπο που επισημαίνει τους τελευταίους 12 μήνες. Το πεδίο Ημερομηνία ομαδοποιήθηκε κατά Έτος και Μήνα:

Τύπος

Ο τύπος που χρησιμοποιείται στο E5, έχει αντιγραφεί, είναι:

=AND(B5>=EOMONTH(TODAY(),-13)+1,B5

This formula returns TRUE when a date is greater than or equal to the first day of the month 12 months earlier and when the date is less than the last day of the previous month. The formula uses the AND, TODAY, and EOMONTH functions as explained here.

Steps

  1. Add helper column with formula to data as shown
  2. Create a pivot table
  3. Add Sales as a Value field
  4. Add Date as a Row field
  5. Group Date by Year and Month
  6. Disable subtotals for Year
  7. Add helper column as a Filter, filter on TRUE

Related pivots

Pivot table last 7 days To create a pivot table that shows the last 7 days of data (or, more generally, the last n days) you can add a helper column to the source data with a formula to flag records in the last 7 days, then use the helper column to filter the data in the… Pivot table filter by weekday To create a pivot table with a filter for day of week (i.e. filter on Mondays, Tuesdays, Wednesdays, etc.) you can add a helper column to the source data with a formula to add the weekday name, then use the helper column to filter the data in the…

Pivot Table Training

If you use Excel, but don't know how to use Pivot Tables, you're missing out… wasting time trying to do things that a Pivot Table can do for you automatically. Core Pivot is a step-by-step Excel video course that will teach you everything you need to know to use this powerful tool. With a small investment, Pivot Tables will pay you back again and again. See details here.

ενδιαφέροντα άρθρα...