我想计算纽约市5个行政区,布鲁克林,布朗克斯曼哈顿,皇后区和史坦顿岛的公寓的中位数销售价格和中位数租金。在Tableau中,销售和租赁是ListPrice的组 - 变量ListPrice是NUMBER(十进制)类型(包括Sales& Rentals,Borough
感谢任何帮助
我尝试使用Tableau的表格计算功能,但这不起作用,我试过
WINDOW_MEDIAN(SUM([ListPrice])-1, -1)
ERROR: WINDOW_MEDIAN is being called with (float, integer), did mean
(float,integer,integer)
数据
Type Borough ListPrice
RentalType1 Manhattan $5,000
RentalType2 Bronx $3,000
RentalType2 Brooklyn $3,000
SalesType2 Manhattan $900,000
SalesType1 Brooklyn $100,000
SalesType1 Bronx $500,000
SalesType2 Queens $800,000
SalesType2 Staten Island $400,000