This is a migrated thread and some comments may be shown as answers.

Value Error in Column Graph

2 Answers 53 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Lachlan
Top achievements
Rank 1
Lachlan asked on 10 Mar 2020, 05:40 AM
I have a dataset of products I'm trying to graph from a web service. When using the date field (which is a unix timestamp) as the category and the count of IDs as the values it's providing the incorrect results, even when I set the base unit to days/months/years etc. When I use another field other than date, the count returns what it should (as displayed in the difference between the two graphs in the screenshot). I've experimented with changing the groupings via the ToString() method on the date however it is producing inconsistent results. Any advice on what might be causing this?

2 Answers, 1 is accepted

Sort by
0
Accepted
Todor
Telerik team
answered on 12 Mar 2020, 03:23 PM

Hi Lachlan,

I have attached a sample report demonstrating that when the CategoryGroup Grouping is on '= Fields.date.Year', i.e. the 'Year' property of the date field, the proper values are displayed in the Graph. You may use the sample and try to adjust your Graph.

You may also send us a runnable report definition with sample data that demonstrates the issue for investigation.

Regards,
Todor
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Lachlan
Top achievements
Rank 1
answered on 12 Mar 2020, 10:23 PM
Thanks. That worked.
Tags
General Discussions
Asked by
Lachlan
Top achievements
Rank 1
Answers by
Todor
Telerik team
Lachlan
Top achievements
Rank 1
Share this question
or