Hi all!
I tried to search for an answer to my question, but I'm not native english speaker so maybe I'm not using the right words - forgive me if this has maybe answered in the past.
I have a set of data (sales report) coming in week after week. Suppose columns are something like this:
Customer name, date, address, zip, product number, product description, quantity, value
I could be able to create a Pivot Table so that I can group Value by Customer name. Easy.
The incoming reports include all of our customers, but sometimes I need to see all the data... and sometimes I only need to see a few of them (let's call it "Customer set"), so I created a macro to filter and only show customers I'm interested to:
With ActiveSheet.PivotTables("PivotTable1").PivotFields("Customer name")
.PivotItems("3P S.R.L.").Visible = True
...
...
...
.PivotItems("BCS S.R.L.").Visible = True
.PivotItems("BEANTECH S.R.L.").Visible = True
.PivotItems("D.S.C. DIGITAL SYSTEM").Visible = True
.PivotItems("D.S.C. DIGITAL SYSTEM COMPUTERS SRL").Visible = True
End With
All is fine.
Suppose a new sales report comes in. I add new sales data to the Data Source Range and refresh the Pivot. Values for customers currently shown are updated, but new (if any) customers are not shown because of the filter in the pivot table.
What I need is: if a new Customer in "Customer name" is found, then I would like the Pivot Table to show it along with the previously selected Customers, so that I can easily see if new customers have bought some products and decide if such customers are interesting and I will add them to the above macro so that the next time I execute it I will have the data of the updated Customer set.
Please note I do not have a current "complete list" of customers that I am interested into; I need to manually be able to add them week after week. Moreover the sales report is coming in from different Resellers and very often the name of the same Customer is spelled with some differences, in example:
D.S.C. DIGITAL SYSTEM
D.S.C. DIGITAL SYSTEM COMPUTERS SRL
is the same Customer.
Seeing new Customers along previoulsy selected Customers in the Pivot Table will help me to spot very quickly new Customers (if any) and let me decide whether to add them to the above macro or not.
Do you think there is a way to do this?
Thank you for your suggestions,
Andrea
Bookmarks