# Power BI - DAX และแดชบอร์ดขั้นสูง (Data Analytics) > DAX (measures, calculated columns, CALCULATE, FILTER, ALL), drill-down, bookmarks, การเผยแพร่ - 20 คำถามสัมภาษณ์ - Senior - [คำถามสัมภาษณ์: Data Analytics](https://sharpskill.dev/th/technologies/data-analytics/interview-questions.md) ## 1. ความแตกต่างพื้นฐานระหว่าง measure และ calculated column ใน DAX คืออะไร? **คำตอบ** Measure คำนวณแบบไดนามิกในแต่ละการโต้ตอบของผู้ใช้ (filter, slicer) ในบริบทการแสดงผลปัจจุบัน ในขณะที่ calculated column ถูกประเมินเพียงครั้งเดียวระหว่างการโหลดข้อมูลและจัดเก็บในหน่วยความจำภายในตาราง Measure เหมาะสำหรับการรวมและ KPI ที่เปลี่ยนแปลงตามบริบท ส่วน calculated column เหมาะสำหรับแอตทริบิวต์คงที่ที่ต้องการการจัดเรียงหรือการจัดกลุ่ม ## 2. บทบาทหลักของฟังก์ชัน CALCULATE ใน DAX คืออะไร? **คำตอบ** CALCULATE เป็นฟังก์ชัน DAX ที่ทรงพลังที่สุด เนื่องจากช่วยให้แก้ไขบริบทตัวกรองที่นิพจน์ถูกประเมินได้ โดยรับนิพจน์เป็นอาร์กิวเมนต์แรก ตามด้วยตัวกรองหนึ่งหรือหลายตัวที่แทนที่หรือแก้ไขบริบทปัจจุบัน ทำให้สามารถสร้าง measure ที่ละเว้นตัวกรองบางตัวหรือเพิ่มตัวกรองใหม่ โดยไม่ขึ้นกับ slicer ที่ผู้ใช้นำมาใช้ ## 3. ควรใช้ฟังก์ชัน DAX ใดในการลบตัวกรองทั้งหมดออกจากตารางหรือคอลัมน์ใน measure? **คำตอบ** ฟังก์ชัน ALL ลบตัวกรองทั้งหมดที่ใช้กับตารางหรือคอลัมน์ที่ระบุ ทำให้ได้ผลรวมทั้งหมดโดยไม่ขึ้นกับ slicer ที่ใช้งานอยู่ มักใช้ร่วมกับ CALCULATE เพื่อคำนวณเปอร์เซ็นต์ของผลรวมหรือเปรียบเทียบกับชุดข้อมูลทั้งหมด ALLEXCEPT เป็นรูปแบบที่ลบตัวกรองทั้งหมดยกเว้นของคอลัมน์เฉพาะ ## มีอีก 17 คำถาม - วิธีคำนวณเปอร์เซ็นต์การมีส่วนร่วมของหมวดหมู่เทียบกับผลรวมทั้งหมดใน DAX? - ความแตกต่างระหว่าง ALL และ ALLEXCEPT ใน DAX คืออะไร? สมัครฟรี: https://sharpskill.dev/th/login ## หัวข้อสัมภาษณ์ Data Analytics อื่นๆ - [Google Sheets - พื้นฐาน](https://sharpskill.dev/th/technologies/data-analytics/interview-questions/google-sheets-basics.md): 20 คำถาม, Junior - [Google Sheets - สูตรขั้นสูง](https://sharpskill.dev/th/technologies/data-analytics/interview-questions/google-sheets-advanced.md): 20 คำถาม, Junior - [SQL - พื้นฐาน](https://sharpskill.dev/th/technologies/data-analytics/interview-questions/sql-basics.md): 25 คำถาม, Junior - [SQL - การรวมและการจัดกลุ่ม](https://sharpskill.dev/th/technologies/data-analytics/interview-questions/sql-aggregations.md): 20 คำถาม, Junior - [SQL - Joins](https://sharpskill.dev/th/technologies/data-analytics/interview-questions/sql-joins.md): 20 คำถาม, Junior - [BigQuery - พื้นฐาน](https://sharpskill.dev/th/technologies/data-analytics/interview-questions/bigquery-fundamentals.md): 20 คำถาม, Junior - [Data Cleaning - การทำความสะอาดข้อมูล](https://sharpskill.dev/th/technologies/data-analytics/interview-questions/data-cleaning.md): 20 คำถาม, Junior - [KPI และเมตริกทางธุรกิจ](https://sharpskill.dev/th/technologies/data-analytics/interview-questions/kpis-metrics.md): 20 คำถาม, Junior - [สถิติเชิงพรรณนา](https://sharpskill.dev/th/technologies/data-analytics/interview-questions/descriptive-statistics.md): 20 คำถาม, Junior - [Zapier และระบบอัตโนมัติ No-Code](https://sharpskill.dev/th/technologies/data-analytics/interview-questions/zapier-automation.md): 20 คำถาม, Junior - [หลักการ Data Visualization](https://sharpskill.dev/th/technologies/data-analytics/interview-questions/data-viz-principles.md): 20 คำถาม, Junior - [Python & Pandas - พื้นฐาน](https://sharpskill.dev/th/technologies/data-analytics/interview-questions/python-pandas-basics.md): 20 คำถาม, Junior - [Google Sheets - แดชบอร์ดอัตโนมัติ](https://sharpskill.dev/th/technologies/data-analytics/interview-questions/google-sheets-dashboards.md): 20 คำถาม, Mid-Level - [SQL - Subquery และ CTE](https://sharpskill.dev/th/technologies/data-analytics/interview-questions/sql-subqueries-ctes.md): 20 คำถาม, Mid-Level - [SQL - Window Functions](https://sharpskill.dev/th/technologies/data-analytics/interview-questions/sql-window-functions.md): 20 คำถาม, Mid-Level - [BigQuery - ฟีเจอร์ขั้นสูง](https://sharpskill.dev/th/technologies/data-analytics/interview-questions/bigquery-advanced.md): 20 คำถาม, Mid-Level - [Data Modeling](https://sharpskill.dev/th/technologies/data-analytics/interview-questions/data-modeling.md): 20 คำถาม, Mid-Level - [การวิเคราะห์ Funnel และ Conversion](https://sharpskill.dev/th/technologies/data-analytics/interview-questions/funnel-analysis.md): 20 คำถาม, Mid-Level - [การวิเคราะห์ Cohort และ Retention](https://sharpskill.dev/th/technologies/data-analytics/interview-questions/cohort-retention.md): 20 คำถาม, Mid-Level - [Google Tag Manager และการติดตาม](https://sharpskill.dev/th/technologies/data-analytics/interview-questions/gtm-tracking.md): 20 คำถาม, Mid-Level - [API และ Webhook](https://sharpskill.dev/th/technologies/data-analytics/interview-questions/apis-webhooks.md): 20 คำถาม, Mid-Level - [dbt - พื้นฐาน](https://sharpskill.dev/th/technologies/data-analytics/interview-questions/dbt-fundamentals.md): 20 คำถาม, Mid-Level - [AB Testing และสถิติประยุกต์](https://sharpskill.dev/th/technologies/data-analytics/interview-questions/ab-testing.md): 20 คำถาม, Mid-Level - [Looker Studio (Google Data Studio)](https://sharpskill.dev/th/technologies/data-analytics/interview-questions/looker-studio.md): 20 คำถาม, Mid-Level - [Power BI - พื้นฐาน](https://sharpskill.dev/th/technologies/data-analytics/interview-questions/power-bi-fundamentals.md): 20 คำถาม, Mid-Level - [SQL - การคิวรีเชิงวิเคราะห์ขั้นสูง](https://sharpskill.dev/th/technologies/data-analytics/interview-questions/sql-advanced-analytics.md): 20 คำถาม, Senior - [dbt - ฟีเจอร์ขั้นสูง](https://sharpskill.dev/th/technologies/data-analytics/interview-questions/dbt-advanced.md): 20 คำถาม, Senior - [Python Analytics - การวิเคราะห์ขั้นสูงและ ML](https://sharpskill.dev/th/technologies/data-analytics/interview-questions/python-analytics-advanced.md): 20 คำถาม, Senior --- Source: SharpSkill (https://sharpskill.dev), tech interview preparation for your real stack. HTML version of this page: https://sharpskill.dev/th/technologies/data-analytics/interview-questions/power-bi-dax