Forum Discussion

VViskaz's avatar
VViskaz
Regular Visitor
5 years ago
Solved

Counting a percentile based on conditional column

Hello,

 

I have a table with a list of states and time entity spent in these states.

I need to calculate a percentile for each state from this table.

Is there any way to make something like this:

Let's put it rough 

"if State == "New"; percentile.exe([TimeInState];075)"

Or maybe I need to transform this table somehow.

The table looks like this:

 

 

  • VViskaz ,

    Not very sure , but try like

    new TimeInState = if (State = "New";[TimeInState]; blank()) //new column or use this cal in next step
    percentile.exe([new TimeInState];075)

1 Reply

  • VViskaz ,

    Not very sure , but try like

    new TimeInState = if (State = "New";[TimeInState]; blank()) //new column or use this cal in next step
    percentile.exe([new TimeInState];075)