Ravindra Bagale · Power BIसर्व coursesया course चे lessonsशोधाEnglish

Power BI · मराठी आवृत्ती

7.5 Blanks, nulls, Fill Down आणि Fill Up

रवींद्र बागले यांच्या course वर आधारित · सहज मराठीत explanation

Power Query मधला null आणि रिकामा text "" वेगळे आहेत. रिकाम्या value चा अर्थ समजून मग बदल करा.

Category Product Discount Partner ID
Dairy & Breakfast Gokul Cow Milk 500 ml null DP-01
null Amul Butter 100 g 5 null
null Poha 1 kg null DP-03
Fruits & Vegetables Nashik Grapes 500 g 10 DP-02
null Nagpur Oranges 1 kg null null
Category Product Discount Partner ID
Dairy & Breakfast Gokul Cow Milk 500 ml 0 DP-01
Dairy & Breakfast Amul Butter 100 g 5 Unknown
Dairy & Breakfast Poha 1 kg 0 DP-03
Fruits & Vegetables Nashik Grapes 500 g 10 DP-02
Fruits & Vegetables Nagpur Oranges 1 kg 0 Unknown
परिस्थितीयोग्य कृती
Grouped export मध्ये category पहिल्या row वरचTransform › Fill › Down
Group ची value खाली दिलेलीTransform › Fill › Up
Blank discount चा अर्थ खरंच discount नाहीnull → 0
Cancelled order ला partner नाहीगरजेनुसार Unknown label
Order ID नसलेली junk rowयोग्य filter किंवा Remove Blank Rows
  1. Category निवडून Transform › Fill › Down करा.
  2. Discount › Replace Values मध्ये null च्या जागी 0 द्या, जर हाच business अर्थ असेल.
  3. Partner ID मध्ये null → Unknown करा.
  4. सगळे columns रिकामे असलेल्या rows साठी Remove Blank Rows. एका column साठी त्याच्या filter मधला (null) काढा.
Filled   = Table.FillDown(Source, {"Category"}),
Zeroed   = Table.ReplaceValue(Filled, null, 0, Replacer.ReplaceValue, {"Discount"}),
Unknown  = Table.ReplaceValue(Zeroed, null, "Unknown", Replacer.ReplaceValue, {"Partner ID"}),
NoEmptyRows = Table.SelectRows(Unknown, each not List.IsEmpty(List.RemoveMatchingItems(Record.FieldValues(_), {"", null})))

Practice

CIDCO product list मध्ये group च्या पहिल्या row वरच Sub Category असेल तर fill down करा. Blank MRP null ठेवा; योग्य असल्यास blank Brand ला Unbranded द्या.