首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > PB >

帮小弟我看下这句话的意思

2012-02-17 
帮我看下这句话的意思cumulativeSum( if(phone[-1] phone[0],0,1) for all )[解决办法]而你上面的意思是

帮我看下这句话的意思
cumulativeSum( if( phone [-1] = phone [0],0,1) for all )

[解决办法]
而你上面的意思是指的如果phone重复的话,累计数为0,否则为1,
所以最终得到的是不重复的phone的个数;
CumulativeSum很实用的,一般用于累计和,显示到当前列为止的指定列累计;
如果列值为
n_qty
1
3
5
如果n_sum为CumulativeSum(n_qty)的话,其值为
n_qty n_sum
1 1
3 4
5 9

[解决办法]
2樓正解

CumulativeSum DataWindow expression function
Description 

Calculates the total value of the rows up to and including the current row in the specified column (a running total).
[解决办法]

探讨
cumulativeSum( if(  phone  [-1] =  phone  [0],0,1) for all )

热点排行