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

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

7.8 ₹, commas आणि text मधले numbers

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

Currency symbols असलेली value अनेकदा Text म्हणून येते. खाली conversion आधी व नंतरचा data आहे.

Order ID Amount Delivery Fee
BLK-30001 ₹1,250 ₹25
BLK-30002 ₹ 86.50 Free
BLK-30003 2,40,000 ₹0
BLK-30004 Rs. 499 ₹30
Order ID Amount Delivery Fee
BLK-30001 1250.00 25
BLK-30002 86.50 0
BLK-30003 240000.00 0
BLK-30004 499.00 30
  1. Amount आणि Delivery Fee मधून Replace Values वापरून ₹ काढा.
  2. Rs., thousands commas आणि अनावश्यक spaces काढा.
  3. Delivery Fee मधलं Free खरोखर free असेल तर 0 करा.
  4. Fixed Decimal Number type द्या.
  5. Quality bar तपासा. उरलेले errors वेगळ्या duplicate query मध्ये Keep Errors करून पाहा.
Numbers = Table.TransformColumns(Source, {
    {"Amount", each Number.From(Text.Remove(Text.Replace(_, "Rs.", ""), {"₹", ",", " "})), Currency.Type},
    {"Delivery Fee", each if _ = "Free" then 0 else Number.From(Text.Remove(_, {"₹", ",", " "})), Currency.Type}
})

2,40,000 च्या commas काढल्यावर 240000 मिळतं. Text.Remove ने अनेक ठरलेली characters एकदम काढता येतात.

Practice

Nashik College Road च्या test sheet मधले ₹ 1,099, ₹99.00 आणि N/A clean करा. N/A → null; बाकी Fixed Decimal.