Ravindra BagaleCourses & study guides English Track your progress

Power BI मध्ये Clustered vs Stacked Column Chart: Bar vs Column, Legend, 100% Stacked आणि Small Multiples

Column chart हा तुम्ही सगळ्यात जास्त वापराल असा visual आहे, आणि तो अनेक versions मध्ये येतो जे सारखे दिसतात पण वेगवेगळ्या प्रश्नांची उत्तरं देतात. Bar की column? Clustered की stacked? Stacked की 100% stacked? चुकीचा निवडला तरी chart काढला जातो, पण तो चुकीची गोष्ट सांगतो. या chapter मध्ये तुम्ही त्याच Blinkit sales table मधून प्रत्येक version बनवाल, त्यांच्यात निवड ठरवणारा एक प्रश्न शिकाल, आणि Small multiples व Tooltips well ने शेवट कराल.

या chapter मध्ये तुम्ही काय शिकाल

  • Bar vs column: लांब labels विरुद्ध time order
  • Clustered: Legend वापरून groups शेजारी शेजारी
  • Field order: X वर काय आणि Legend मध्ये काय
  • Stacked: एका total चे भाग
  • 100% stacked: shares, उदा. weekday vs weekend
  • Small multiples, visual type बदलणे, आणि Tooltips well

Practice file: blinkit-sales-2023-2025.csv (1,702 order lines).

काल्पनिक data: Blinkit सारखी काल्पनिक sales, फक्त practice साठी. Amounts ₹ मध्ये आणि dates DD-MM-YYYY.

1. Problem

Category ची नावं लांब आहेत ("Home, Kitchen & Pet Supplies"), आणि manager ला online आणि cash-on-delivery revenue compare करायचा आहे, प्रत्येक state चं category mix बघायचं आहे, आणि weekend ला कोणत्या categories जास्त विकल्या जातात ते जाणून घ्यायचं आहे. एकच chart type हे सगळं नीट करू शकत नाही.

2. सोप्या शब्दात idea

Chart कधी वापरायचा
Bar (आडवा) Labels लांब असतील, किंवा ranked list दाखवायची असेल
Column (उभा) X-axis वर time असेल (months, years, डावीकडून उजवीकडे) किंवा labels छोटे असतील
Clustered Sub-groups शेजारी शेजारी compare करायचे (Online vs COD)
Stacked तुकडे मिळून एक total होतो (state च्या revenue मध्ये प्रत्येक category चा भाग)
100% stacked फक्त shares महत्त्वाचे (weekday vs weekend %)

Comparison Legend मध्ये ठेवा, आणि त्यात 2–4 values ठेवा; खूप items असलेला legend वाचायला अवघड.

Classroom line

When do we use a bar chart? When the names are long and the full word must show.

3. Data

Category Revenue (₹) Online COD Weekday Weekend
Atta, Rice, Oil & Dals 1,01,540 74,905 26,635 70,247 31,293
Dairy, Bread & Eggs 55,512 38,895 16,617 40,521 14,991
Home, Kitchen & Pet Supplies 52,843 38,068 14,775 52,843 —
Snacks & Munchies 44,655 32,425 12,230 27,250 17,405
Fruits & Vegetables 39,107 27,024 12,083 29,077 10,030
Cold Drinks & Juices 37,186 25,509 11,677 26,708 10,478
Total 3,30,843 2,36,826 94,017 2,46,646 84,197

या data मध्ये Home, Kitchen & Pet Supplies च्या weekend orders नाहीत.

4. Step by step

Bar vs column

  1. Stacked bar chart add करा: Y-axis category, X-axis revenue. प्रत्येक category चं नाव पूर्ण दिसतं.
  2. तो Stacked column chart करा (visual select असताना icon वर click). Fields तसेच राहतात; लांब नावं wrap होतात किंवा कापली जातात.
Bar chart: लांब category नावं वाचता येतात (₹)Atta, Rice, Oil & Dals101,540Dairy, Bread & Eggs55,512Home, Kitchen & Pet Supplies52,843Snacks & Munchies44,655Fruits & Vegetables39,107Cold Drinks & Juices37,186चित्र (काल्पनिक data)

आकृती 1. Bar chart लांब category नावं वाचता येतील अशी ठेवतो (illustration).

Clustered

  1. नवीन Clustered column chart: X-axis category, Y-axis revenue, Legend payment. प्रत्येक category ला दोन columns, Online आणि COD.
  2. अदलाबदल करा: X-axis payment, Legend category. आता प्रत्येकी सहा बारीक columns असलेले दोन clusters: वाचायला अवघड. Field order महत्त्वाचा.

Stacked आणि 100% stacked

  1. पहिला chart Stacked column करा: Online आणि COD एकावर एक बसतात, आणि प्रत्येक column ची उंची म्हणजे category total.
  2. नवीन chart: X-axis state, Y-axis revenue, Legend category: प्रत्येक state चा column त्याच्या categories मध्ये विभागला जातो.
  3. 100% stacked column करा, X-axis category आणि Legend week_type: प्रत्येक column 100% उंच, weekday आणि weekend shares दाखवतो.
Clustered: Online आणि COD शेजारी शेजारीAttaDairyHomeSnacksFruitsCold DrinksStacked: प्रत्येक category total चे भाग म्हणून Online आणि CODAttaDairyHomeSnacksFruitsCold DrinksOnlineCODचित्र (काल्पनिक data)

आकृती 2. Clustered मध्ये Online आणि COD शेजारी शेजारी; stacked मध्ये category total चे भाग म्हणून एकावर एक (illustration).

Small multiples आणि tooltips

  1. State chart मध्ये category Legend मधून Small multiples मध्ये हलवा: प्रत्येक category साठी एक छोटा chart, प्रत्येकात state नुसार revenue.
  2. sales ला Tooltips well मध्ये drag करा: column वर hover करा आणि chart वर दुसरी series न आणता विकलेले units बघा.

Classroom line

What does stacked column chart mean? One on top of the other.

Classroom line

Clustered means side by side; that's the difference.

5. तुमचा result असा दिसायला हवा

100% stacked: revenue मध्ये weekday आणि weekend चा shareAtta, Rice, Oil & Dals69%Dairy, Bread & Eggs73%Home, Kitchen & Pet Supplies100%Snacks & Munchies61%Fruits & Vegetables74%Cold Drinks & Juices72%WeekdayWeekendचित्र (काल्पनिक data)

आकृती 3. 100% stacked: प्रत्येक category चा weekday vs weekend share (illustration).

  • Clustered: Atta, Rice, Oil & Dals ची जोडी सगळ्यात उंच, Online 74,905 आणि COD 26,635.
  • Legend सकट state chart: Maharashtra चा column (₹1,22,142) सगळ्यात मोठा; त्याचा सगळ्यात मोठा भाग Atta, Rice, Oil & Dals (₹39,276).
  • 100% stacked: Snacks & Munchies चा weekend share सगळ्यात जास्त (39%); Home, Kitchen & Pet Supplies 100% weekday.

Classroom line

People go out on weekends; maybe nobody cooks at home.

6. काय झालं

  • Legend प्रत्येक column दुसऱ्या field नुसार, रंगाने, वाटतो.
  • Clustered तुकडे एकमेकांशेजारी काढतो; stacked ते एकावर एक रचतो, म्हणून total म्हणजे column ची उंची.
  • 100% stacked प्रत्येक तुकडा त्याच्या column total ने भागतो, म्हणून सगळे columns सारख्या उंचीचे.
  • Visual type बदलला तरी fields त्यांच्या wells मध्ये राहतात.

Classroom line

What is a legend? It splits the data by colour; that's what we call the legend.

7. अजून explore करा

  • Weekend snacks. Snacks & Munchies चा 39% revenue weekend ला येतो, सगळ्यात जास्त share: weekend च्या सवयी वेगळ्या, snacks जास्त आणि स्वयंपाक कमी. Home, Kitchen & Pet Supplies च्या orders फक्त weekdays ला येतात.
  • Small multiples. खूप groups असतील तर ते गर्दीचे दिसू शकतात; 3–6 groups साठी वापरा, आणि छोटे charts नीट compare व्हावेत म्हणून Y-axis shared ठेवा.
  • वेगळ्या गोष्टी stack करू नका. Revenue (₹) आणि sales (units) एका total चे भाग नाहीत; त्यांना clustered दाखवा, किंवा sales tooltip मध्ये ठेवा.
  • अजून. Main course मधले Bar and Column Charts: Stacked, Clustered, 100% आणि Small Multiples and Visual Calculations हे lessons यापुढे जातात.

Classroom line

Small multiples means groups get created here, one small chart each.

Classroom line

Small multiples don't look that good, so we mostly don't use them.

8. नेहमीच्या चुका

चुकीचा result कारण उपाय
Category नावं कापली जातात लांब labels सकट column chart Bar chart वापरा
बारीक columns चे दोन clusters Legend मध्ये category, X वर payment X वर category, Legend मध्ये payment
Revenue आणि units एकावर एक वेगळ्या values साठी stacked Clustered, किंवा units Tooltips मध्ये
20 रंगांचा legend Legend मध्ये खूप values असलेला field Legend मध्ये 2–4 values
100% chart काहीच सांगत नाही Values एका total चे भाग नाहीत week_type सारखा Legend वापरा

Ravindra Bagale's Tip

Chart निवडण्याआधी हे वाक्य पूर्ण करा: "मला … compare करायचं आहे". Groups शेजारी शेजारी असतील तर cluster. एका total चे भाग असतील तर stack. फक्त percentages असतील तर 100%.

Classroom line

Interviews will ask the difference between a bar chart and a column chart.

9. स्वतः practice करा

Practice task

blinkit-sales-2023-2025.csv वापरून:

  1. Clustered column बनवा: X वर category, Y वर revenue, Legend मध्ये payment. Dairy, Bread & Eggs चा COD revenue किती?
  2. X वर category आणि Legend मध्ये week_type असलेला 100% stacked column बनवा. Fruits & Vegetables चा weekday share किती?
  3. X वर state आणि Legend मध्ये category असलेला stacked column बनवा. Karnataka चा Atta, Rice, Oil & Dals भाग किती?
  4. एकूण Online vs COD: कोणता chart आणि किती totals?
Solution दाखवा
  1. ₹16,617.
  2. 74% (39,107 पैकी 29,077).
  3. ₹23,464.
  4. Payment नुसार साधा column (किंवा pie): Online ₹2,36,826, COD ₹94,017.

10. Professional सारखा विचार करा

  • Business दृष्टी. Chart type हा message चा भाग आहे; तो प्रश्नावरून निवडा.
  • Time डावीकडून उजवीकडे. Time साठी columns (किंवा lines); categories आणि rankings साठी bars.
  • कमी legend items. दोन ते चार रंग एका नजरेत वाचता येतात.
  • Tooltip वापरा. दुय्यम numbers tooltip मध्ये, दुसरी series म्हणून नाही.

Interview questions

  1. Bar vs column chart? Bars आडवे, लांब labels आणि rankings साठी; columns उभे, time order साठी.
  2. Clustered vs stacked? Clustered sub-groups शेजारी शेजारी ठेवतो; stacked त्यांना एका total चे भाग म्हणून रचतो.
  3. 100% stacked कधी उपयोगी? फक्त shares महत्त्वाचे असतील तेव्हा, उदा. weekday vs weekend.
  4. Small multiples काय करतात? एक visual field च्या प्रत्येक value साठी एक, अशा छोट्या charts च्या grid मध्ये वाटतात.

Recap

थोडक्यात

  1. लांब labels आणि rankings साठी bar; time साठी column.
  2. Clustered: Legend ने शेजारी शेजारी; field order महत्त्वाचा.
  3. Stacked: एका total चे भाग; 100% stacked: shares.
  4. Small multiples: प्रत्येक group साठी एक छोटा chart.
  5. Visual type बदलला तरी fields राहतात; जास्तीचं Tooltips मध्ये.

या lesson साठी Ravi Sir's Cards

English cards