---
title: VARX.P – ฟังก์ชัน DAX
url: https://www.thepexcel.com/functions/dax/statistical/varx-p-dax/
type: function-explainer
program: DAX
syntax: "VARX.P(<Table>, <Expression>)"
date: 2025-12-15
updated: 2025-12-17
scores:
  popularity: 3
  difficulty: 5
  usefulness: 3
---

# VARX.P – ฟังก์ชัน DAX

> คำนวณความแปรปรวน (Variance) ของประชากร

## คำอธิบาย

VARX.P คำนวณความแปรปรวน (Variance) โดยสมมติว่าข้อมูลเป็นประชากรทั้งหมด ไม่ใช่ตัวอย่าง วัดความกระจายตัวของค่ารอบค่าเฉลี่ย VARX.P ต่างจาก VARX.S ซึ่งใช้กับตัวอย่าง ความแปรปรวนเป็นกำลังสองของความเบี่ยงเบนมาตรฐาน

## Syntax

```excel
VARX.P(&lt;Table&gt;, &lt;Expression&gt;)
```

## Arguments

| Name | Required | Type | Default | Description |
| --- | --- | --- | --- | --- |
| Table | Yes | table | ไม่มี | ตารางข้อมูล |
| Expression | Yes | expression | ไม่มี | นิพจน์ที่ประเมิน |

## ตัวอย่าง

### 1. คำนวณ Variance ของราคา

```excel
VARX.P(Products, Products[Price])
```

**ผลลัพธ์:** `2500`

ความแปรปรวน = 2500 (พิจารณาข้อมูลทั้งหมด)

### 2. เปรียบเทียบ .P และ .S

```excel
VARX.P(...) vs VARX.S(...)
```

**ผลลัพธ์:** `.P = 2500, .S = 2750`

.S สูงกว่า .P เพราะ .S คำนึง Sampling Correction

### 3. ความสัมพันธ์กับ StDev

```excel
SQRT(VARX.P(...))
```

**ผลลัพธ์:** `50`

SQRT(2500) = 50 ความแปรปรวนเป็นกำลังสองของ StDev

## หมายเหตุเพิ่มเติม

⚠️ Microsoft ไม่แนะนำ (Not Recommended) | 💡 .P = Population, .S = Sample | 🔗 Variance = StDev²

## คำถามที่พบบ่อย

**Q: Variance ใช้สำหรับอะไร**

วัดความกระจายตัว ยิ่ง Variance สูง ยิ่งข้อมูลกระจายจากค่าเฉลี่ย ใช้เพื่อเปรียบเทียบ Risk

**Q: .P vs .S ต่างกันเท่าไหร่**

.S / .P = n/(n-1) ซึ่งต่างกันเล็กน้อย ในข้อมูลมาก ต่างกันแค่ 1-2%

## ฟังก์ชันที่เกี่ยวข้อง

- [VARX.S – ฟังก์ชัน DAX](https://www.thepexcel.com/functions/dax/statistical/varx-s-dax/)
- [STDEVX.P – ฟังก์ชัน DAX](https://www.thepexcel.com/functions/dax/statistical/stdevx-p-dax/)
- [AVERAGEX – หาค่าเฉลี่ยจากนิพจน์ที่คำนวณในแต่ละแถว](https://www.thepexcel.com/functions/dax/aggregation/averagex-dax/)

## แหล่งข้อมูลเพิ่มเติม

- [DAX.Guide: VARX.P](https://dax.guide/varx-p/) _(documentation)_
- [Microsoft Learn](https://learn.microsoft.com/en-us/dax/function/varx-p) _(documentation)_

---

_Source: [https://www.thepexcel.com/functions/dax/statistical/varx-p-dax/](https://www.thepexcel.com/functions/dax/statistical/varx-p-dax/)_
