Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Count Problem

Hi ppl, I guess this should be pretty simple but I cant figured it out.

I have a table with tickets and his status. Every tickets has status Open but not all of them are Closed. So I want to do a count with all the ticket in a pie chart showing how many are closed.


Ticket, Status

1, Open

1, Close

2, Open

3, Open

4, Open

4, Close

I have 4 tickets 2 of them are closed, so I want the chart showing me 2 open and 2 closed.

I do a count distinct

=count(DISTINCT Ticket)

But It shows me 6 tickets in total, 4 open and 2 closed, so what I want is that if a ticket is closed it shouldnt be counted with the status "Open"

How Can I do this ?

I attached the example

Thx

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Maybe like attached?

View solution in original post

4 Replies
swuehl
MVP
MVP

Maybe like attached?

Not applicable
Author

Yeah, thx... I never would guess the problem was in the dimension, could u explain this code, pls or tell me another work around more "simple" perhaps

=aggr( FirstSortedValue( Status, -RecID), Ticket)

I have no idea what -RecID is

Thx

swuehl
MVP
MVP

I've created RecID in the load script, it's just numbering your record, assuming that higher record number describe a more recent status. You can also use a timestamp / date field instead of the RecID, if available.

There are probably several different approaches, script based or front end based (or combining the two).

I've attached another pure front end approach using the idea that closed tickets have two records, and open tickets only one.

Not applicable
Author

Thx, very appreciate.

gl