วิธีเตรียมไฟล์ Excel สำหรับทำ Dashboard | How to Prepare an Excel File for a Dashboard (TH/EN)

🇹🇭 วิธีเตรียมไฟล์ Excel สำหรับทำ Dashboard ให้ต่อกับ Power BI, Tableau หรือ Looker Studio ได้ลื่นไหล

สรุปจากคลิปของช่อง Lin Davoy คลิปนี้พูดถึงขั้นตอนที่มักถูกมองข้ามที่สุดในการทำ Dashboard นั่นคือการเตรียมไฟล์ Excel ต้นทางให้พร้อมก่อนดึงเข้าเครื่องมือทำ Dashboard ไม่ว่าจะเป็น Power BI, Tableau หรือ Looker Studio เพราะหลายคนรีบไปโฟกัสที่การออกแบบกราฟให้สวยจนลืมไปว่าถ้าไฟล์ต้นทางเตรียมไม่ดี งานส่วนที่เหลือจะยากขึ้นหลายเท่า

ทำไมการเตรียมไฟล์ Excel ถึงสำคัญกว่าที่คิด

ในมุมคนทำงานจริง เครื่องมือทำ Dashboard อย่าง Power BI, Tableau หรือ Looker Studio ล้วนทำงานได้ดีที่สุดเมื่อข้อมูลต้นทางอยู่ในรูปแบบที่เป็นระเบียบและคาดเดาได้ ถ้าไฟล์ Excel ต้นทางมีปัญหาตั้งแต่แรก เช่น มีเซลล์ที่ Merge ไว้ มีหัวตารางซ้อนกันหลายชั้น หรือใส่สรุปยอดรวมปนอยู่กลางตาราง เวลาดึงเข้าไปทำ Dashboard จะต้องเสียเวลาแก้ปัญหาที่ต้นตอซ้ำแล้วซ้ำเล่า ในขณะที่ถ้าเตรียมไฟล์ให้ดีตั้งแต่แรก ขั้นตอนที่เหลือจะเร็วขึ้นมาก และไฟล์จะดูแลรักษาง่ายในระยะยาว

โครงสร้างข้อมูลแบบไหนที่เหมาะกับ Dashboard

หลักการสำคัญที่สุดคือข้อมูลควรอยู่ในรูปแบบตารางแนวยาว (Long format) ที่แต่ละแถวคือหนึ่งรายการข้อมูล และแต่ละคอลัมน์คือหนึ่งตัวแปร แทนที่จะเป็นตารางแนวกว้าง (Wide format) ที่กระจายค่าของตัวแปรเดียวออกไปหลายคอลัมน์ เช่น แทนที่จะมีคอลัมน์ยอดขายแยกเป็นเดือนมกราคม กุมภาพันธ์ มีนาคม ควรมีคอลัมน์เดียวคือเดือน แล้วอีกคอลัมน์คือยอดขาย เพราะรูปแบบนี้ทำให้เครื่องมือ Dashboard สร้างกราฟและ Filter ได้ยืดหยุ่นกว่ามาก แถวแรกของตารางควรเป็นชื่อหัวคอลัมน์ที่ชัดเจนเพียงแถวเดียว ไม่มีการรวมเซลล์หรือใส่หัวข้อซ้อนหลายบรรทัด

ข้อผิดพลาดที่พบบ่อยในไฟล์ Excel ก่อนทำ Dashboard

ข้อผิดพลาดที่เจอบ่อยที่สุดคือการ Merge เซลล์เพื่อความสวยงาม ซึ่งทำให้เครื่องมือ Dashboard อ่านค่าผิดพลาดหรืออ่านไม่ได้เลย รองลงมาคือการใส่แถวสรุปยอดรวมหรือค่าเฉลี่ยปนอยู่กลางตารางข้อมูล ทำให้ตัวเลขสรุปถูกนับซ้ำเข้าไปในกราฟโดยไม่ตั้งใจ อีกจุดที่พบบ่อยคือการใช้สีหรือรูปแบบตัวอักษรเป็นตัวสื่อความหมาย เช่น ทำแถวสีแดงแทนสถานะที่มีปัญหา เพราะเครื่องมือ Dashboard ส่วนใหญ่อ่านสีไม่ได้ ต้องแปลงเป็นคอลัมน์ข้อความหรือตัวเลขแทน

สิ่งที่ควรเลี่ยงควรทำแทน
Merge เซลล์ในหัวตารางหรือข้อมูลแยกทุกเซลล์เป็นอิสระ ไม่ Merge
ใส่แถวสรุปยอดรวมปนในตารางข้อมูลแยกสรุปยอดไปไว้ Sheet หรือส่วนอื่นต่างหาก
ใช้สีหรือตัวหนาสื่อความหมายสถานะเพิ่มคอลัมน์ข้อความหรือตัวเลขระบุสถานะชัดเจน
ตารางแนวกว้าง แยกคอลัมน์ตามเดือน/หมวดจัดเป็นตารางแนวยาว หนึ่งแถวต่อหนึ่งรายการ

สรุป

ถ้าอยากให้การทำ Dashboard ราบรื่นไม่ว่าจะใช้ Power BI, Tableau หรือ Looker Studio จุดเริ่มต้นที่คุ้มเวลาที่สุดคือกลับไปจัดระเบียบไฟล์ Excel ต้นทางก่อน ให้เป็นตารางแนวยาว หัวคอลัมน์ชัดเจนแถวเดียว ไม่มีการ Merge เซลล์หรือแถวสรุปปนอยู่ เพราะเวลาที่ลงทุนตรงนี้จะช่วยประหยัดเวลาการแก้ปัญหาที่ปลายทางได้มากกว่าหลายเท่าตัว


🇬🇧 How to Prepare an Excel File for a Dashboard in Power BI, Tableau, or Looker Studio

This article is summarized from the Lin Davoy channel. The video covers a step that gets overlooked far too often when building a dashboard: preparing the source Excel file before pulling it into a dashboard tool such as Power BI, Tableau, or Looker Studio. Many people jump straight to designing pretty charts and forget that a poorly prepared source file makes every step after it harder.

Why File Prep Matters More Than People Think

From a practitioner point of view, dashboard tools like Power BI, Tableau, and Looker Studio all perform best when the source data is organized and predictable. If the source Excel file has problems from the start, such as merged cells, multi-row headers, or summary totals mixed into the middle of the data, pulling it into a dashboard means fixing the same root problems over and over. Preparing the file properly up front makes every later step faster and keeps the file easier to maintain long term.

The Data Structure That Works Best for Dashboards

The most important principle is that data should sit in long format, where each row is one record and each column is one variable, rather than wide format, where a single variable gets spread across many columns. For example, instead of separate columns for January, February, and March sales, there should be one column for month and one column for sales value. This format gives dashboard tools far more flexibility when building charts and filters. The first row should contain a single clear row of column headers, with no merged cells and no stacked header rows.

Common Mistakes in Excel Files Before Building a Dashboard

The most common mistake is merging cells for visual neatness, which causes dashboard tools to misread the data or fail to read it at all. Close behind is inserting summary rows like totals or averages into the middle of the data table, which accidentally double-counts those numbers inside charts. Another frequent issue is using color or font formatting to carry meaning, such as coloring a row red to flag a problem status, since most dashboard tools cannot read cell color and need that information as a text or numeric column instead.

AvoidDo This Instead
Merging cells in headers or dataKeep every cell independent, no merging
Summary or total rows mixed into the dataMove summaries to a separate sheet or section
Using color or bold text to signal statusAdd a clear text or numeric status column
Wide tables with columns split by month/categoryUse long format, one row per record

Verdict

For a smooth dashboard build in Power BI, Tableau, or Looker Studio, the most time-efficient starting point is going back and organizing the source Excel file first: long format, one clear row of headers, no merged cells, and no summary rows mixed into the data. Time invested here saves far more time fixing problems downstream.


ติดตามข่าวสาร Data & AI ได้ที่:
Facebook: https://www.facebook.com/davoytech
YouTube: https://www.youtube.com/@linlinmhee

📌 อย่าลืมกด Like, Share และ Subscribe เป็นกำลังใจให้ด้วยนะคะ!

💬 ปกติเตรียมไฟล์ Excel ก่อนทำ Dashboard ยังไงกันบ้างคะ มีขั้นตอนไหนที่อยากแชร์เพิ่มก็คอมเมนต์บอกกันได้เลยค่ะ

#Davoy #DavoyTech #Linlinmhee #เรียนAI #คอร์สAI #DataAndAI #PowerBI #Tableau #LookerStudio #Dashboard #DataPrep

Chat Widget - Davoy.tech