# 7.3 Summarize Values By — Sum की Count?

Source: https://ravindrabagale.com/mr/excel/ch07-pivottables-and-pivotcharts/7-3-summarize-values-by.html
Language: mr (Marathi with English technical terms)

Valuesमध्ये field टाकल्यावर Excelने निवडलेलं calculation नेहमीच तुम्हाला हवं ते असेल असं नाही. Heading वाचा आणि right-click › Summarize Values By किंवा Value Field Settings उघडा.

 | प्रश्न | Field | Calculation

 | Total sales किती? | Amount | Sum.

 | Order lines किती? | Order ID | Count; nonblank IDs.

 | Average delivery time? | Delivery Mins | Average.

 | सगळ्यात उशिराची delivery? | Delivery Mins | Max.

 | वेगळे customers किती? | Customer | Distinct Count; समर्थित Data Model Pivotमध्ये.

Min, Product आणि More Optionsही उपलब्ध आहेत. Amount दोनदा Valuesमध्ये drag करा: एकदा Sum, दुसऱ्यांदा Average. हा average row/lineमागचा amount आहे. एका orderच्या अनेक rows असतील तर तो AOV नाही.

Mini dataset

Rows = City; Values = Sum of Amount, Count of Order ID, Average of Delivery Mins. Puneसाठी ₹544, 4 nonblank order rows आणि 11 minutes येतात. या sampleमध्ये प्रत्येक row एक order असल्यामुळे count 4 ordersही आहे.

Count of Amount दिसत असेल तर

Sourceमध्ये text, blanks किंवा mixed types असतील तर Excel Count निवडू शकतो. Sourceमध्ये text numbers clean करा, refresh करा आणि Sum निवडा. फक्त heading Sales असं rename केल्याने Countचं Sum होत नाही.

Practice

प्रत्येक Cityसाठी sales, order-line count, average आणि maximum Delivery Mins दाखवा. Data Model उपलब्ध असेल तर distinct customers जोडा. Customer नावापेक्षा स्थिर Customer ID असल्यास तो वापरा; एकाच नावाचे दोन लोक असू शकतात.

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

Count आणि Distinct Count वेगळे आहेत. Order ID पाच rowsवर असेल तर Countमध्ये पाच, Distinct Countमध्ये एक. Reportवर कोणता count आहे ते स्पष्ट लिहा.
