Power Pivot (Basic Concept)

Power Pivot Excel के अंदर एक data model बनाता है: सब कुछ एक विशाल sheet में ठूँसने के बजाय, आप keys से जुड़ी अलग related tables रखते हैं (sales, products, shops), ठीक relational database idea, और उन सबके पार एक साथ pivot करते हैं।

10 min read · 8 cards · 2 checks

Read in: English · हिन्दी · ગુજરાતી


Theory

सब कुछ एक sheet में मत रखिए

Aryan हर तथ्य, sale, product ब्योरे, shop ब्योरे, को एक विशाल sheet में ठूँस सकता था। पर आप BCA105 से ठीक जानते हैं वह किस चीज़ का कारण बनता है: redundancy और anomalies (shop का पता हर sale row पर फिर से लिखा)।

Database का जवाब था keys से जुड़ी अलग tables। और अब, उल्लेखनीय रूप से, Excel वही चीज़ कर सकता है, Power Pivot से।

Power Pivot आपको अलग related tables रखने देता है (Sales, Products, Shops), उन्हें relationships से जोड़ने देता है, और उन सबके पार एक साथ pivot करने देता है। यह relational model को Excel में लाता है। आपका database unit गुप्त रूप से आपको इसके लिए तैयार कर रहा था।

Theory

जुड़े filing cabinets, एक ठसाठस भरी दराज़ नहीं

एक ठसाठस भरी दराज़ जिसमें सब कुछ आपस में मिला है एक दुःस्वप्न है, दोहराया गया, update करना कठिन (Meera की मूल mega-sheet)। बजाय, अलग labelled cabinets रखिए, एक Sales के लिए, एक Products के लिए, एक Shops के लिए, और एक cross-reference (एक key) उन्हें जोड़ती। एक संयुक्त report चाहिए? relationships उन्हें माँगने पर जोड़ती हैं। Power Pivot वे जुड़े cabinets हैं: अलग, साफ़ tables, keys से related, एक साथ query की। यह Excel के अंदर रहती एक database है।

Theory

Data model: tables + relationships

Power Pivot में आप कई tables को एक Data Model में load करते हैं और उनके बीच उनकी keys से relationships define करते हैं, ठीक BCA105 वाला foreign key idea:

  • Sales table में product_id और shop_id है।
  • Products table (product_id, category, price)।
  • Shops table (shop_id, region)।
  • Sales.product_id -> Products.product_id, और Sales.shop_id -> Shops.shop_id relate कीजिए।

अब एक PivotTable product category से और shop region से कुल sales दिखा सकता है, तीनों tables से खींचते हुए बिना उन्हें एक फूली sheet में merge किए। कोई redundancy नहीं, कोई anomalies नहीं, और यह लाखों rows संभालता है जो एक सामान्य sheet नहीं कर सकती।

Quiz

Power Pivot का data model उससे कैसे संबंधित है जो आपने BCA105 में सीखा?

  1. यह Excel में relational model है: keys से जुड़ी अलग tables (relationships), एक फूली table टालते हुए
  2. यह एक अकेली flat spreadsheet का बड़ा संस्करण है
  3. इसका databases से कोई लेना-देना नहीं
  4. यह keys की ज़रूरत की जगह लेता है
Show the answer

यह Excel में relational model है: keys से जुड़ी अलग tables (relationships), एक फूली table टालते हुए

Power Pivot Excel के अंदर relational model है: कई tables उनकी keys पर relationships से जुड़े (foreign-key idea), जो एक flat mega-sheet की redundancy और anomalies टालता है, ठीक BCA105 का normalization lesson। यह पहचानना कि आपका database unit और यह Excel feature वही अवधारणा हैं मुख्य अंतर्दृष्टि है, और एक संतोषजनक पूर्ण-चक्र पल।

Think first

बस सब कुछ एक table में VLOOKUP क्यों न करें?

Aryan category और region को Sales table में VLOOKUP कर सकता था, एक बड़ी table बनाकर, फिर उसे pivot कर सकता। बड़े, multi-table data के लिए एक Power Pivot data model बेहतर क्यों है?

Show the answer

सब कुछ VLOOKUP करना product और shop ब्योरों को हर sales row पर दोहराता है (वह redundancy जिसके ख़िलाफ़ BCA105 ने चेताया), और लाखों rows पर यह धीमा और फूला है। Power Pivot tables को अलग और दुबला रखता है, relationships से जुड़ा, तो हर तथ्य एक बार store होता है और सिर्फ ज़रूरत पर join होता है, तेज़, साफ़, और यह उन data आकारों तक scale करता है जिन पर VLOOKUP दम तोड़ देता। यह हाथ से denormalize करने और एक उचित relational model इस्तेमाल करने के बीच का फ़र्क़ है। वही वजह कि databases mega-spreadsheets को हराते हैं।

Watch out

Marks कहाँ कटते हैं

Power Pivot को relational model से न जोड़ना (BCA105 वाले tables + keys + relationships)। यह सोचना कि यह बस एक बड़ी flat sheet है, इसका मक़सद कई related tables है, redundancy टालते हुए। यह चूकना कि यह tables को keys से relate करता है (foreign-key relationships) और उनके पार pivot करता है, और यह कि यह बहुत बड़ा data संभालता है। DAX इसकी formula/measure भाषा है (हल्का उल्लेख)। full-circle-to-databases अंतर्दृष्टि वह है जो समझ के marks कमाती है।

Theory

Excel और databases मिलते हैं

Power Query (साफ़ और जोड़ें) जमा Power Pivot (model और relate) Excel को एक असली data-analysis platform में बदलते हैं, और दोनों BCA105 की database सोच पर टिके हैं। जब आप BCA602 (Data Analytics) पहुँचेंगे, यह घर जैसा महसूस होगा। एक topic subject बंद करता है: workbook security और protection, यह सारा मूल्यवान काम सुरक्षित रखना। आगे, और BCA106-01 के लिए आख़िरी।

Summary

Key takeaways

  • Power Pivot एक data model बनाता है: Excel के अंदर कई related tables, एक flat sheet नहीं।
  • Tables उनकी keys पर relationships से जुड़ते हैं, ठीक BCA105 वाला foreign-key/relational idea।
  • एक अकेला PivotTable एक साथ कई related tables से खींच सकता है, बिना उन्हें merge किए।
  • यह एक फूली table की redundancy और anomalies टालता है और लाखों rows संभालता है।
  • DAX इसकी measure/formula भाषा है (हल्का उल्लेख)।
  • याद रखने का hook: एक cross-reference से जुड़े filing cabinets, Excel के अंदर एक database।

Study this properly

This page is the lesson to read. In Gri-Learn the same topic is a graded deck: the self-checks are scored and your weak topics are tracked. Free to start.

Start this topic

Already have an account? Sign in

More from Automation & Advanced Tools

Gri-Learn · syllabus-mapped B.C.A. lessons in English, Hindi and Gujarati

Power Pivot (Basic Concept) · Mastering Worksheet (SEC-01 option A) · Gri-Learn