# 7.3 Excel export मधले title, headers, footer आणि transpose

Source: https://ravindrabagale.com/mr/powerbi/ch07-data-cleaning-a-z-in-power-query/7-3-messy-excel-exports-title-rows-headers-footers.html
Language: mr (Marathi with English technical terms)

Store export मध्ये headers वर title, export date आणि blank row असू शकते; खाली Total row असते. खाली आधीचा व अपेक्षित data आहे.

 | Column1
 | Column2
 | Column3

 | Blinkit Kothrud – Daily Sales
 | null
 | null

 | Exported on 14-03-2025 10:05 IST
 | null
 | null

 | null
 | null
 | null

 | Order ID
 | Product
 | Amount

 | BLK-10001
 | Gokul Cow Milk 500 ml
 | 32

 | BLK-10002
 | Kolhapuri Misal Masala
 | 85

 | Total
 | null
 | 117

 | Order ID
 | Product
 | Amount

 | BLK-10001
 | Gokul Cow Milk 500 ml
 | 32

 | BLK-10002
 | Kolhapuri Misal Masala
 | 85

Home › Remove Rows › Remove Top Rows मध्ये 3 द्या.

Use First Row as Headers करा. Promoted Headers व automatic Changed Type steps तपासा.

Remove Bottom Rows = 1 ने Total काढा. Footer count बदलत असेल तर Order ID › Text Filters › Begins With › BLK- सारखा योग्य pattern वापरा.

Order ID व Product Text आणि Amount योग्य numeric type ठेवा.

Skipped   = Table.Skip(Source, 3),
Promoted  = Table.PromoteHeaders(Skipped, [PromoteAllScalars = true]),
NoFooter  = Table.RemoveLastN(Promoted, 1),
OnlyOrders = Table.SelectRows(Promoted, each Text.StartsWith([Order ID], "BLK-"))

Transpose

Rows चे columns करण्यासाठी Transform › Transpose वापरा. Headers हवे असतील तर आधी Use Headers as First Row करा.

 | Metric
 | Pune
 | Nashik
 | Nagpur

 | Orders
 | 1,240
 | 610
 | 705

 | Stores
 | 5
 | 2
 | 2

 | City
 | Orders
 | Stores

 | Pune
 | 1,240
 | 5

 | Nashik
 | 610
 | 2

 | Nagpur
 | 705
 | 2

या काल्पनिक example साठी Use Headers as First Row → Transpose → Use First Row as Headers करा. Metric column चं नाव City करा.

Practice

Nagpur Dharampeth च्या test export मधल्या दोन title rows आणि Grand Total काढा; फक्त orders ठेवा आणि types द्या.

रवींद्र बागले यांची tip

Headers promote करण्याआधी type लावल्यास header text वर error येतो. Fixed top-row count पुढच्या file मध्ये बदलू शकतो; pattern आणि row counts दोन्ही तपासा.
