Power BI · मराठी आवृत्ती
7.18 Rows ठेवणं, काढणं, sort आणि filter
| Home command | काय करतं? | उदाहरण |
|---|---|---|
| Keep Top Rows | पहिल्या N rows | Testing साठी 100 rows. |
| Keep Bottom Rows | शेवटच्या N rows | Time sort केलेल्या log मधल्या शेवटच्या 50. |
| Keep Range of Rows | ठरावीक offset पासून N rows | 11–60 rows. |
| Keep Duplicates / Errors | तपासणीसाठी निवडक rows | Investigation query. |
| Remove Top / Bottom | Title / footer rows काढतो | तीन title rows. |
| Remove Alternate Rows | पुनरावृत्ती pattern काढतो | प्रत्येक order नंतर blank line. |
| Remove Duplicates / Blank Rows / Errors | Cleaning | 7.4, 7.5, 7.15 पाहा. |
| Sort Ascending / Descending | क्रम बदलतो | Order DateTime नुसार. |
| Column filter | Text / Number / Date conditions | मागचे 12 months; TEST नसलेले customers. |
Order, blank, order, blank अशा pattern साठी Remove Alternate Rows मध्ये First row to remove 2, rows to remove 1, rows to keep 1 द्या. M code मधला offset zero-based आहे.
Top100 = Table.FirstN(Source, 100),
RangeRows = Table.Range(Source, 10, 50), // skip 10, keep 50
Alternate = Table.AlternateRows(Source, 1, 1, 1), // offset, skip, take
NoTests = Table.SelectRows(Source, each not Text.Contains([Customer Name], "TEST"))
Practice
Customer Name मध्ये TEST असलेल्या orders आणि 01-01-2025 आधीच्या orders filter करा. फक्त तपासणीच्या Duplicate query मध्ये date descending sort करून top 20 ठेवा.