Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Splitting the value of a field using Table Filter and Charts

Craig.Harley
Contributor
November 15, 2023

2nd basic question of the day

I am returning a list of values in a table that are split into 4 categories looking at the raw data. the format is as follows

create-aaa

read-bbb

update-ccc

delete-ddd

create-eee

read-fff

I want to be able to show the info as a simple chart for the totals of the 4 categories create, read, update and delete, so in the example above i would see 

create = 2, read=2, update=1 and delete=1

is there a simple way of doing this without going into complex CQL in the table transformer macro?

1 answer

1 accepted

2 votes
Answer accepted
Tim Kopperud
Community Champion
November 15, 2023

@Hi @Craig.Harley,  will this code example help solving the problem? 

SELECT ColA::string->split("-")->0 as res 
FROM T*

Source looks like this

image.png

Result looks like this:

image.png

TimK

Craig.Harley
Contributor
November 15, 2023

Thats perfect, thank you ever so much Tim

Stiltsoft support
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 15, 2023

Thank you @Tim Kopperud for your help, couldn't have given a better example ourselves!

Like # people like this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events