I'm a novice to Sage Report Designer, though I'd say I'm relatively experienced with computers. My approach to Sage Reports is similar to if I were using Excel/OpenOffice Calc. And I'm using Sage 50 Accounts 2010.
I'm trying to make a report that shows how many customers buy a specific product at least once.
Although it's a very tedious and clumsy way to do it, I thought I would get a report of all transactions, grouped by customer. Then I use CountIf(AUDIT_ACCOUNT.DETAILS = [the specific product]), called Expr1. This worked fine to give a total number for each customer. I then used the same code for the total in the report footer to get a total number of times the product has been purchased by anyone. However, I thought I would be able to count the number of Expr1s that are not zero, to find the number of unique purchasers of the product, with CountIf(Expr1>0). It generates a number, generally larger than the total number of times the product has been purchased so it's clearly not right.
Can anyone help with my problem? It would be even better if someone could tell me a neater, more intelligent way to do what I'm trying to do but, considering my experience with Sage in general, this seems unlikely.
Thanks for your help and sorry for my lack of clarity.
Need more, need help now?
- - - - - - - - - - - - - - - - - - pay-as-you-go support - no contract - tenth of an hour billing - expert help - fast service - no call queues
Need integration?
- - - - - - - - - - - - - - - - - - with your shipping system - website - invoicing system - crm - cms - manufacturing - order import - back to back orders..
Need a report?
- - - - - - - - - - - - - - - - - - Excel reporting that pulls data from Sage - custom layouts - layouts that change adapt to your brands and/or for drop shipping.
Want web hosting?
- - - - - - - - - - - - - - - - - - Your own domain name - email - a shop - wordpress - woo commerce - ticket systems - help desks - forums - portals
- - - - - - - - - - - - - - - - - - pay-as-you-go support - no contract - tenth of an hour billing - expert help - fast service - no call queues
Need integration?
- - - - - - - - - - - - - - - - - - with your shipping system - website - invoicing system - crm - cms - manufacturing - order import - back to back orders..
Need a report?
- - - - - - - - - - - - - - - - - - Excel reporting that pulls data from Sage - custom layouts - layouts that change adapt to your brands and/or for drop shipping.
Want web hosting?
- - - - - - - - - - - - - - - - - - Your own domain name - email - a shop - wordpress - woo commerce - ticket systems - help desks - forums - portals
Counting non-zero Expressions
- brucedenney
- Site Admin
- Posts: 4631
- Joined: 28 Feb 2006, 09:56
- Sage Version: v28 UK/Europe/Africa
Re: Counting non-zero Expressions
I think I would need to see the report to comment. Perhaps you could attach it to a post.
I suspect that you are counting things more times than you think.
Perhaps your report includes splits/usages in the details section and you are counting a criteria based on the header/split multiple times.
I suspect that you are counting things more times than you think.
Perhaps your report includes splits/usages in the details section and you are counting a criteria based on the header/split multiple times.
For just about anything Sage :- Discount subscriptions, pay-as-you-go support, application integration, reports, layouts, linked excel spreadsheets, analysis or any other help making life with sage easier/less time consuming Contact me.
Who is online
Users browsing this forum: Ahrefs [Bot] and 2 guests