When using the Chart widget- Sorting
Using the Chart widget,
the chart produced creates the group by in the order of work items.
Management wants the support tiers to always be in
alphabetic order. Has anyone been able to accomplish this?
Best Answers
-
Thomas_Hathaway Customer IT Monkey ✭I would recommend using an SQL chart Widget instead and query the ServiceManagement DB and use the order by tierid asc/desc at the end. Here's an example of a query I just wrote:select distinctwi.TierId as 'Support Group GUID',DS.DisplayString as 'Support Group'from [WorkItem] wi join DisplayString as DSon wi.TierId = ds.ElementIDorder by ds.DisplayString ascThis query gets you the the tierid's then matches it with its displayname then orders it by support group alphabetically.
Here's the KB on SQl Chart Widgets and there's a note that it doesn't allow aggregate functions like count which is a bummer but the order by works just fine.6 -
Geoff_Ross Cireson Consultant O.G.I have had something similar working without issue. Please see https://community.cireson.com/discussion/1525/working-with-dates-in-dashboard-designer-grids5
Answers
Here's the KB on SQl Chart Widgets and there's a note that it doesn't allow aggregate functions like count which is a bummer but the order by works just fine.
I had opened a ticket with support and was provided a fix of wi.WorkItemId as [Id] now I am getting the behavior needed for management.
Also learned the code I attempted wi.WorkItemId as [ID] will not work.
Now if the Date columns can get fixed my management would be happy.
What do you need fixed with the Date Columns?
Summary All Date Columns using the saved searchs or SQL widgets display as YYYY-MM-DDT00:00:00:000Z
Now that I have the row click working as needed attempted to use convert but the widget would not accept the query