Ë®¾§±¨±íº¯Êý´óÈ«-»ã×ܺ¯Êý ÏÂÔر¾ÎÄ

»ã×ܺ¯ÊýµÄÌõ¼þ

ÒÔÏÂÊÇÿ¸ö»ã×ܺ¯ÊýµÄÌõ¼þÁÐ±í£º ²¼¶ûÐÍÌõ¼þ

? ? ? ? ? ?

ÈÕÆÚÌõ¼þ

? Èκθü¸Ä ¸ü¸ÄΪ¡°ÊÇ¡± ¸ü¸ÄΪ¡°·ñ¡± ¶Ôÿ¸ö¡°ÊÇ¡± ¶Ôÿ¸ö¡°·ñ¡±

¶ÔÏÂÒ»¸ö¡°ÊÇ¡± ¶ÔÏÂÒ»¸ö¡°·ñ¡±

? ? ? ? ? ? ? ?

ÿÌì ÿÖÜ Ã¿Á½ÖÜ Ã¿°ëÔ ÿÔ ÿ¼¾ ÿ°ëÄê ÿÄê ÿÃë ÿ·ÖÖÓ Ã¿Ð¡Ê± ÉÏÎç/ÏÂÎç

ʱ¼äÌõ¼þ

? ? ? ?

Sum

Basic Óï·¨ºÍ Crystal Óï·¨¡£

ÖØÔØ

? ? ? ?

²ÎÊý

Sum (fld) Sum (fld, condFld) Sum (fld, condFld, cond) Sum (x)

? ?

fld ÊÇ¿ÉÓɺ¯ÊýÇóÖµµÄÈκÎÓÐЧµÄÊý¾Ý¿â×ֶλò¹«Ê½×ֶΡ£ condFld ÊÇÓÃÓÚ¶Ô fld ÖеÄÖµ½øÐзÖ×éʱËùÒÀ¾ÝµÄ×ֶΡ£

? cond ÊDZíÃ÷ condFld ·Ö×éÀàÐ͵Ä×Ö·û´®¡£Ö»ÄÜÔÚ condFld ÊÇÒ»¸öÈÕÆÚ¡¢Ê±¼ä¡¢ÈÕÆÚʱ¼ä»ò²¼¶û×Ö¶Îʱ²ÅÖ¸¶¨´Ë²ÎÊý¡£Óйش˲ÎÊýÓÐЧ×Ö·û´®µÄÏêϸÐÅÏ¢£¬²Î¼û»ã×ܺ¯ÊýµÄÌõ¼þ¡£

?

·µ»Ø

x ÊÇ¿ÉÓÉÕýÔÚʹÓõĺ¯ÊýÇóÖµµÄÊý×Ö»ò»õ±ÒÖµµÄÊý×é¡£

Êý×Ö

²Ù×÷

ʹÄúÄܹ»Ìí¼Ó±¨±íÖгöÏÖµÄÖµ¡£ÀýÈ磺

? ? ?

Èç¹ûÏúÊÛ±¨±í°üº¬Ò»¸öÏÔʾÿÕŶ©µ¥½ð¶îµÄ×ֶΣ¬Ôò¿ÉÒÔ¼ÆË㱨±íÉϳöÏÖµÄËùÓж©µ¥µÄ×ܺͣ¨×ܼƺͣ©¡£

Èç¹û¶Ô¶©µ¥½øÐзÖ×飨ÀýÈ磬°´¶©µ¥ËùÀ´×ÔµÄÊ¡·Ý¶ÔÆä·Ö×飩£¬Ôò¿ÉÒÔ¼ÆËãÿ×鶩µ¥½ð¶îµÄ×ܺͣ¨ÔÚ±¾ÀýÖУ¬ÎªÃ¿¸öÊ¡£©¡£ Èç¹û½«¶©µ¥°´ÈÕÆÚ»ò²¼¶ûÖµ·Ö×飨ÀýÈ磬¶Ô¶©µ¥°´Æä·¢³öµÄÔ·ݽøÐзÖ×飩£¬Ôò¿ÉÒÔ¸ù¾ÝÈÕÆÚ×ֶλò²¼¶û×Ö¶ÎÖеÄÌض¨±ä»¯À´¼ÆËãÿ×鶩µ¥½ð¶îµÄ×ܺͣ¨ÔÚ±¾ÀýÖУ¬ÎªÃ¿Ô£©¡£

?

ʾÀý

Èç¹ûÖ¸¶¨µ¥¸öÖµµÄ¼¯ºÏ£¬ÔòÒ²¿ÉÒÔ¼ÆËã¸Ã¼¯ºÏÖÐÖµµÄ×ܺ͡£ÓйØÕâÖÖ»ã×ܵÄÏêϸÐÅÏ¢£¬²Î¼û Êý×é»ã×ܺ¯Êý¡£

ÏÂÁÐʾÀýÊÊÓÃÓÚ Basic Óï·¨ºÍ Crystal Óï·¨£º

Sum({file.QTY})

¼ÆËã QTY ×Ö¶ÎÖÐËùÓÐÖµµÄ×ܺ͡£

Sum({¶©µ¥.½ð¶î}, {¶©µ¥.¿Í»§ ID})

¶Ô¡°½ð¶î¡±×Ö¶ÎÖÐÿ¸ö¶©µ¥×éµÄ¶©µ¥ÇóºÍ£¨×ܼƣ©¡£Ã¿µ±¡°¿Í»§ ID¡±×Ö¶ÎÖеÄÖµ±ä»¯Ê±£¬¶©µ¥¶¼½«½øÐзÖ×é¡£

Sum({¶©µ¥.½ð¶î}, {¶©µ¥.ÈÕÆÚ}, \¶©µ¥.½ð¶î })

¶Ô¡°½ð¶î¡±×Ö¶ÎÖеÄÖµ°´Ô·Ö×飬²¢¼ÆËãÿ¸öÔÂ×éÖÐÖµµÄ×ܺÍÏà¶ÔÓÚÕû¸ö±¨±íÖµµÄ×ܺ͵İٷֱȡ£

Sum([{file.AMOUNT}, {file.PRICE}, {file.COST}])

¡°½ð¶î¡±¡¢¡°¼Û¸ñ¡±ºÍ¡°·ÑÓá±×Ö¶ÎÖÐÖµµÄ×ܺ͡£

×¢Ò⣺ ÔÚ¹«Ê½ÖÐʹÓô˺¯ÊýÇ¿ÖÆÔÚ´òӡʱ¶Ô¹«Ê½ÇóÖµ¡£ÓйØÇóֵʱ¼ä¿¼ÂÇÒòËصÄÏêϸÐÅÏ¢£¬²Î¼ûÇóֵʱ¼ä¡£

Average

Basic Óï·¨ºÍ Crystal Óï·¨¡£

ÖØÔØ

? ? ? ?

²ÎÊý

Average (fld) Average (fld, condFld) Average (fld, condFld, cond) Average (x)

? ? ?

fld ÊÇ¿ÉÓɺ¯ÊýÇóÖµµÄÈκÎÓÐЧµÄÊý¾Ý¿â×ֶλò¹«Ê½×ֶΡ£ condFld ÊÇÓÃÓÚ¶Ô fld ÖеÄÖµ½øÐзÖ×éʱËùÒÀ¾ÝµÄ×ֶΡ£

cond ÊDZíÃ÷ condFld ·Ö×éÀàÐ͵Ä×Ö·û´®¡£Ö»ÄÜÔÚ condFld ÊÇÒ»¸öÈÕÆÚ¡¢Ê±¼ä¡¢ÈÕÆÚʱ¼ä»ò²¼¶û×Ö¶Îʱ²ÅÖ¸¶¨´Ë²ÎÊý¡£Óйش˲ÎÊýÓÐЧ×Ö·û´®µÄÏêϸÐÅÏ¢£¬²Î¼û»ã×ܺ¯ÊýµÄÌõ¼þ¡£

?

·µ»Ø

x ÊÇ¿ÉÓÉÕýÔÚʹÓõĺ¯ÊýÇóÖµµÄÊý×Ö»ò»õ±ÒÖµµÄÊý×é¡£

Êý×Ö

²Ù×÷

ʹÄúÄܹ»¶Ô±¨±íÖгöÏÖµÄÖµÇóƽ¾ùÖµ¡£ÀýÈ磺

? ? ?

Èç¹ûÏúÊÛ±¨±í°üº¬ÏÔʾÿ¸ö¶©µ¥½ð¶îµÄ×ֶΣ¬Ôò¿ÉÒÔ¼ÆËã¸Ã±¨±íÉϳöÏÖµÄËùÓж©µ¥µÄƽ¾ùÖµ£¨×ܼÆƽ¾ùÖµ£©¡£

Èç¹û½«¶©µ¥½øÐзÖ×飨ÀýÈ磬¶Ô¶©µ¥°´ÆäÀ´×ÔµÄÊ¡·Ý½øÐзÖ×飩£¬Ôò¿ÉÒÔ¼ÆËãÿ×鶩µ¥µÄƽ¾ù½ð¶î£¨ÔÚ±¾ÀýÖУ¬ÎªÃ¿¸öÊ¡£© Èç¹û½«¶©µ¥°´ÈÕÆÚ»ò²¼¶ûÖµ·Ö×飨ÀýÈ磬°´¶©µ¥·¢³öµÄÔ·ݷÖ×飩£¬Ôò¿ÉÒÔ¸ù¾ÝÈÕÆÚ×ֶλò²¼¶û×Ö¶ÎÖеÄÌض¨±ä»¯À´¼ÆËãÿ×鶩µ¥µÄƽ¾ù½ð¶î£¨ÔÚ±¾ÀýÖУ¬ÎªÃ¿Ô£©¡£

?

ʾÀý

Èç¹ûÖ¸¶¨µ¥¸öÖµµÄÊý×飬ÔòÒ²¿ÉÒÔ¼ÆËã¸Ã¼¯ºÏµÄƽ¾ùÖµ¡£ÓйØÕâÖÖ»ã×ܵÄÏêϸÐÅÏ¢£¬²Î¼û Êý×é»ã×ܺ¯Êý¡£

ÏÂÁÐʾÀýÊÊÓÃÓÚ Basic Óï·¨ºÍ Crystal Óï·¨£º

Average({¶©µ¥.¶©µ¥½ð¶î})

¼ÆËã¡°½ð¶î¡±×Ö¶ÎÖÐËùÓÐÖµµÄƽ¾ùÖµ¡£

Average ({¶©µ¥.¶©µ¥½ð¶î}, {¿Í»§.¿Í»§ ID})

µÃµ½Ïòÿ¸ö¿Í»§ÏúÊÛµÄƽ¾ù½ð¶î¡£

ÏÂÁÐʾÀýÊÊÓÃÓÚ Crystal Óï·¨£º

Average ([10,12,32,48])

¼ÆËãÒ»¸ö³£Á¿Êý×éÖÐÖµµÄƽ¾ùÖµ¡£

×¢Ò⣺ ÔÚ¹«Ê½ÖÐʹÓô˺¯ÊýÇ¿ÖÆÔÚ´òӡʱ¶Ô¹«Ê½ÇóÖµ¡£ÓйØÇóֵʱ¼ä¿¼ÂÇÒòËصÄÏêϸÐÅÏ¢£¬²Î¼ûÇóֵʱ¼ä¡£

StdDev

Basic Óï·¨ºÍ Crystal Óï·¨¡£

ÖØÔØ

? ? ? ?

²ÎÊý

StdDev (fld) StdDev (fld, condFld) StdDev (fld, condFld, cond) StdDev (x)

? ? ?

fld ÊÇ¿ÉÓɺ¯ÊýÇóÖµµÄÈκÎÓÐЧµÄÊý¾Ý¿â×ֶλò¹«Ê½×ֶΡ£ condFld ÊÇÓÃÓÚ¶Ô fld ÖеÄÖµ½øÐзÖ×éʱËùÒÀ¾ÝµÄ×ֶΡ£

cond ÊDZíÃ÷ condFld ·Ö×éÀàÐ͵Ä×Ö·û´®¡£Ö»ÄÜÔÚ condFld ÊÇÒ»¸öÈÕÆÚ¡¢Ê±¼ä¡¢ÈÕÆÚʱ¼ä»ò²¼¶û×Ö¶Îʱ²ÅÖ¸¶¨´Ë²ÎÊý¡£Óйش˲ÎÊýÓÐЧ×Ö·û´®µÄÏêϸÐÅÏ¢£¬²Î¼û»ã×ܺ¯ÊýµÄÌõ¼þ¡£

?

·µ»Ø

x ÊÇ¿ÉÓÉÕýÔÚʹÓõĺ¯ÊýÇóÖµµÄÊý×Ö»ò»õ±ÒÖµµÄÊý×é¡£

Êý×Ö

²Ù×÷