Hi,
When I use a DBchart with the summary avg function on a field, null values are taken in the computation yielding false results.
Is there a way to ignore null values?
TIA
Markus
Teechart 7.12
TDBChart summary null values
-
- Advanced
- Posts: 103
- Joined: Tue Mar 02, 2004 5:00 am
- Location: Bad Wurzach
- Contact:
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Markus,
Yes, you can set IncludeNulls property to false as shown in the All Features\Welcome!\Functions\Standard\Average\Average and nulls example in the features demo, available at TeeChart's program group.
Yes, you can set IncludeNulls property to false as shown in the All Features\Welcome!\Functions\Standard\Average\Average and nulls example in the features demo, available at TeeChart's program group.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Advanced
- Posts: 103
- Joined: Tue Mar 02, 2004 5:00 am
- Location: Bad Wurzach
- Contact:
Hi Narcís,
thanks for your reply, but this is not what I was looking for. Rereading my question I have to admit that it was not quite clear. So here again my problem:
I use a DBChart with a Clientdataset as the value source. If I choose summary from the dropdown menu I can select different summaries from the dropdown menu in the editor (sum, count, high, low, avg). When I choose avg of one field grouped by another field, then NULL values go into that computation leading to false results. Hence my question if I can tell the series to ignore NULL values when computing the average.
Markus
thanks for your reply, but this is not what I was looking for. Rereading my question I have to admit that it was not quite clear. So here again my problem:
I use a DBChart with a Clientdataset as the value source. If I choose summary from the dropdown menu I can select different summaries from the dropdown menu in the editor (sum, count, high, low, avg). When I choose avg of one field grouped by another field, then NULL values go into that computation leading to false results. Hence my question if I can tell the series to ignore NULL values when computing the average.
Markus
Hi Markus,
yes, this feature has not been yet implemented, it's on our wish list as a feature request to be considered for further releases.
In meantime the only workaround I can think of would be to calculate the summaries manually.
yes, this feature has not been yet implemented, it's on our wish list as a feature request to be considered for further releases.
In meantime the only workaround I can think of would be to calculate the summaries manually.
Pep Jorge
http://support.steema.com
http://support.steema.com