Unpivot เดือน ม.ค.-มี.ค.
เก็บคอลัมน์ Product ไว้ แล้วแปลง Jan, Feb ลงมาเป็นแถวในคอลัมน์ Month
Power Query Formula:
let
Source = #table(
{"Product", "Jan", "Feb"},
{{"A", 10, 20}} ),
Unpivoted = Table.UnpivotOtherColumns(
Source, {"Product"}, "Month", "Sales"
)
in
Unpivoted
Result:
Table (Product, Month, Sales)


