Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How split a table

Dear all,

I've ta table with all my maintenance tickets.

I need to create two straight tables, the first one for the new tickets and the second one for the others, like these.

New tickets                       Status                 Others                                   Status

bug_id     bug_description     NEW                 bug_id     bug_description      other status codes

Do I've to create two different tables in  my script ?

I'm sorry but I'm a bit confused

Help please

1 Solution

Accepted Solutions
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     You dont need to do anything in script.

     All you have to do is create two straight table.

     1. with dimension as Bug_ID

        and Expression as Only({<Status = {"*New*"}>}Status )

     2 with dimension as Bug_ID

        and Expression as only({<Status -= {"*New*"}>}Status )

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!

View solution in original post

5 Replies
tresesco
MVP
MVP

Not really. You can get it done in several ways in the front-end.

Using

-Calculated dimension -

For Status dimension use expression like: If(Status='NEW', Status) // and in the dimension tab check 'Supress When Value is Null'

And for second table : If(Status<>'NEW', Status)

-Set Analysis

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     You dont need to do anything in script.

     All you have to do is create two straight table.

     1. with dimension as Bug_ID

        and Expression as Only({<Status = {"*New*"}>}Status )

     2 with dimension as Bug_ID

        and Expression as only({<Status -= {"*New*"}>}Status )

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
israrkhan
Specialist II
Specialist II

as tresesco said, dont need to split tables, load as one table.

and easily can do with set analysis, calculated dimensions are slower in performance, if you have large data set.

Not applicable
Author

Hi,

If client required separate tables create a two straight tables with the condition of new and old.

Regrads,

Santhosh G

Anonymous
Not applicable
Author

Thanks very much !!!