briangriffin,
Thank you for your reply. However, I can't sum by the formula field either, when I tried to insert a summary, I can't find the formula field in the "choose the field to summarize" field. Is there any other ways that you can think of? Thank you!
I have a report that I have grouped it by name first and insert a sum(hours A), another sum(hours B), created a formula field = Sum(Hours A) + Sum(Hours B), so now I would like to have the report in the descending order based on the formula field, but I can't find the formula field in the group...
Madawc,
Thank you very much for your reply. The problem is that I can't just do a sum(distinctcount), it is not supported in Crystal Report, that's why I set a variable. Do you have any other suggestions? Thanks.
My scenario is like this, I grouped by person and then by date, but there are a lot of records in one day, and now I only care about distinct count of days under each person, i used
shared numbervar sumofd:=sumofd + DistinctCount ({date}, {people})
and then display
local numbervar...
My scenario is like this, I grouped by person and then by date, but there are a lot of records in one day, and now I only care about distinct count of days under each person, i used
shared numbervar sumofd:=sumofd + DistinctCount ({date}, {people})
and then display
local numbervar...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.