excel - Different count results in PivotTable based on 0-values in database -


i have following excel spreadsheet:

                        b              c                    sent quantity      returned products 1  product             500              0 2  product             400            300 3  product             600            400 4  product b             250              0 5  product b             300            150 6  product c             700              0 

the table shows sent quantity (column b) , returned quantity (column c) of each sale (order) of product (column a).

i created pivottable based on data gives me following result:

            count of sent quantity       count of returned quantity product          3                             3 product b          2                             2 product c          1                             1 

as can see counts sales (orders) of product no matter if there 0-return.

now want achieve sales wich have no returns (0-value in column c) excluded count of returned quantity should still included in count of sent quantity. therefore, desired result following:

            count of sent quantity       count of returned quantity product          3                             2 product b          2                             1 product c          1                             0 

do have idea how can achieve this?

you need insert calculated field in pivot says if returned products>0 1 else o

and @ pivot use sum , not count field


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -