I want to convert a column of text values into percentage.
STATUS |
ontime |
late |
ontime |
late |
| makeresults
| eval _raw="STATUS
ontime
late
ontime
late"
| multikv
| top STATUS
try top
But what if I don't know how many times ontime and late has occured and i have to convert it based on customer name. For example my excel sheet looks like this:
customer | STATUS |
ALEX | ontime |
CHRIS | late |
ALEX | late |
DAVE | ontime |
ALEX | ontime |
CHRIS | ontime |
ALEX | late |
how can i calculate STATUS based on customer name in percentage format?
| makeresults
| eval _raw="customer STATUS
ALEX ontime
CHRIS late
ALEX late
DAVE ontime
ALEX ontime
CHRIS ontime
ALEX late"
| multikv forceheader=1
| top customer STATUS
Well, Have you tried top?