कस्टम कॉलम्स

इंटरमीडिएट Power Query in Excel

Lyndsay Girard

Performance Analytics Consultant

M Formula Language

  • संक्षेप में 'M' (Data Mashup)
  • Power Query की फंक्शनल प्रोग्रामिंग भाषा
  • Case-sensitive
  • कई बिल्ट-इन फंक्शंस

लैपटॉप पर प्रोग्रामिंग

इंटरमीडिएट Power Query in Excel

M कोड बनाना

  • हर applied query step के पीछे
    • अपने-आप लिखा जाता है
  • M कोड देखा जा सकता है:
    • Formula bar
    • Advanced Editor

Formula bar: Ch2_Formula_Bar.png

Advanced Editor: Ch2_Advanced_Editor.png

इंटरमीडिएट Power Query in Excel

कस्टम कॉलम्स

  • यूज़र-डिफ़ाइंड calculated कॉलम
  • M भाषा में लिखा
  • बिल्ट-इन transformations की क्षमता बढ़ाता है
    • Nested conditional logic
    • Advanced indexing
    • Complex calculations

Ch2_Custom_Column_Ribbon_Screenshot.png

इंटरमीडिएट Power Query in Excel

Nested Conditional Logic

  • कॉलम और वैल्यू को रेफ़र करना
  • कई स्तरों की conditional statements हो सकती हैं
    • If... Then... Else statements
  • logical operators के साथ जोड़ सकते हैं
    • AND
    • OR

Basic Conditional Logic

if age >= 65  
    and arrivalmode = "Car"
    then "group1"
else "group2"
इंटरमीडिएट Power Query in Excel

Nested Conditional Logic

  • कॉलम और वैल्यू को रेफ़र करना
  • कई स्तरों की conditional statements हो सकती हैं
    • If... Then... Else statements
  • logical operators के साथ जोड़ सकते हैं
    • AND
    • OR

Custom Conditional Logic

if age >= 65 and age <= 80
    and arrivalmode = "Car" 
   then "group1" 
    else if age >= 65 and age <= 80
    and arrivalmode = "ambulance" 
   then "group1a"
else "group2"
इंटरमीडिएट Power Query in Excel

एडवांस्ड इंडेक्सिंग

Ch2_Before_Groupby_AllRows.png

  • परिभाषित groups के आधार पर कस्टम index या rank बनाएँ
इंटरमीडिएट Power Query in Excel

एडवांस्ड इंडेक्सिंग

Ch2_Before_Groupby_AllRows_SimpleIndex.png

  • परिभाषित groups के आधार पर कस्टम index या rank बनाएँ
    • Simple Index
इंटरमीडिएट Power Query in Excel

एडवांस्ड इंडेक्सिंग

Ch2_Before_Groupby_AllRows_GroupedIndex.png

  • परिभाषित groups के आधार पर कस्टम index या rank बनाएँ
    • Advanced Index (समूहों के भीतर)
इंटरमीडिएट Power Query in Excel

एडवांस्ड इंडेक्सिंग

Ch2_GroupBy_Aggregation.png

  • परिभाषित groups के आधार पर कस्टम index या rank बनाएँ
  • Group By ऑपरेशन, "All Rows" aggregation के साथ
इंटरमीडिएट Power Query in Excel

एडवांस्ड इंडेक्सिंग

Ch2_GroupBy_AllRows.png

  • परिभाषित groups के आधार पर कस्टम index या rank बनाएँ
  • Group By ऑपरेशन, "All Rows" aggregation के साथ
  • कस्टम M table function के साथ जोड़ें
    Table.AddIndexColumn
    
इंटरमीडिएट Power Query in Excel

अभ्यास करते हैं!

इंटरमीडिएट Power Query in Excel

Preparing Video For Download...