Count Distinct on Incident_Metric -> Number column

brandimore
Kilo Expert

Hello

I would like to count distinct on the Number column in this table. Unfortunately it's not an option when I go to review the list of Aggregates. I saw another post about creating a new Indicator and Source for this to work. This seems like a lot of work for something this simple, but I did this anyways. When I'm in my report it's not an option to select.

I want to make sure that I'm not making more work for something. Can someone confirm how you can make a new field as an option to Aggregate?

Thanks

Instanbul is the version I'm running. We do have PA also.

find_real_file.png

1 ACCEPTED SOLUTION

gr.reference_field = 'mi_field_value';


View solution in original post

21 REPLIES 21

niveknonrev
Kilo Explorer

I know this is old but I came across the very same need and ended up solving it a different way.  We implemented some more SLA's and I was able to use the count distinct on "tasks" since it is the same as the incident number, to get what I wanted. Specifically to track when someone actually did work on a ticket we made this one INC M Work In Progress

find_real_file.png

Start condition with

find_real_file.png

Stop condition

find_real_file.png

 

Then you can use a pivot table to display how many distinct tickets they "worked" on

find_real_file.png

find_real_file.png

 

Now clicking on any number will take you to the list and still show duplicates, but you get the "count" on the pivot table. 

These type of SLA's also provide benefits like showing how long they actually worked on a ticket and how long it was in each state.

May not be useful for you, but it helped us greatly.

find_real_file.png

Thanks

 

 

Jessica6
Tera Contributor

You can try to set the count distinct field to the ID field in the metric. This is a reference field to the specific task. In the report output the number of records is only shown based on unique values, however when you click on the bar in the report to open the results, all records (including double) are shown.

 

So keep in mind that only the report shows the number of records based on the count distinct.