Có 2 bảng sau link với nhau bằng productID
Tạo bảng này trên Dashboard, trong đó Cheap:đơn giá (price)<10, Expensive:đơn giá (price)=>10
1. 2 Cột đầu kéo vào
2.2 Cột sau tạo new Measure và điền công thức vào
Cheap = SUMX(filter(Purchase,Purchase[Price]<10),Purchase[Quantity])
Expensive = sumx(filter(Purchase,Purchase[Price]>=10),Purchase[Quantity])
Hoặc:
Cheap = CALCULATE(sum(Purchase[Quantity]),Purchase[Price]<10)
Expensive = CALCULATE(sum(Purchase[Quantity]),Purchase[Price]>=10)
Nhận xét
Đăng nhận xét