Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
0li5a3a
Creator III
Creator III

Set analysis help

Hi ,

I would like to create a chart t where I can show just a specific statutes from a column.

tabel1:

id,

date,

stas as status

from test.qvd

concatenate

tabel2:

id,

date,

stat1 as status

from test.qvd

The status column has more 'statues' like (Approved, Implementation, Scheduled, Work In Progress,Analysis, Approval Requested, Assigned,Closed, Cleared, Completed, Withdrawn) .


I would like to group them by 3 categories like:

AAA( Approved, Implementation, Scheduled, Work In Progress)

BBB(Analysis, Approval Requested, )

CCC(Assigned,Closed, Cleared, Completed, Withdrawn)


I want to group them in a chart to have something like this:

   

Main Table
iddatestatus
101/01/2000Approved
202/01/2000Implementation
303/01/2000Scheduled
404/01/2000Assigned
505/01/2000Assigned
606/01/2000Approved
707/01/2000Implementation
808/01/2000Closed
909/01/2000Closed
1004/01/2000Requested
1105/01/2000Approved
1206/01/2000Work In Progress
1307/01/2000Approval Requested
1414/01/2000Analysis
1515/01/2000Approved
1616/01/2000Work In Progress
1717/01/2000Approved
1818/01/2000Scheduled
1919/01/2000Approved
2020/01/2000Cleared
2115/01/2000Completed
2216/01/2000Completed
2317/01/2000Withdrawn
2418/01/2000Withdrawn
2519/01/2000Approved

   

AAA
iddatestatus
101/01/2000Approved
606/01/2000Approved
1105/01/2000Approved
1515/01/2000Approved
1717/01/2000Approved
2519/01/2000Approved
202/01/2000Implementation
707/01/2000Implementation
303/01/2000Scheduled
1818/01/2000Scheduled
1206/01/2000Work In Progress
1616/01/2000Work In Progress

   

BBB
iddatestatus
1414/01/2000Analysis
1307/01/2000Approval Requested

   

CCC
iddatestatus
404/01/2000Assigned
505/01/2000Assigned
808/01/2000Closed
909/01/2000Closed
2020/01/2000Cleared
2115/01/2000Completed
2216/01/2000Completed
2317/01/2000Withdrawn
2418/01/2000Withdrawn
1 Solution

Accepted Solutions
sunny_talwar

5 Replies
sunny_talwar

Like attached?

Capture.PNG

avinashelite

Try like this

tabel1:

id,

date,

stas as status,

if(stas= 'Approved' or stas='Implementation 'or stas='Scheduled' or stas='Work In Progress ',

'AAA',

if(stas= 'Analysis ' or stas= 'Approval Requested''=, 'BBB',

if(stas= 'Assigned'or stas= 'Closed' or stas= ' Cleared' or stas= 'Completed ' or stas= 'Withdrawn' ,'CCC',

stas

)

)

) as New_Stauts

from test.qvd

concatenate

tabel2:

id,

date,

stat1 as status,

if(stas= 'Approved' or stas='Implementation 'or stas='Scheduled' or stas='Work In Progress ',

'AAA',

if(stas= 'Analysis ' or stas= 'Approval Requested''=, 'BBB',

if(stas= 'Assigned'or stas= 'Closed' or stas= ' Cleared' or stas= 'Completed ' or stas= 'Withdrawn' ,'CCC',

stas

)

)

) as New_Stauts

from test.qvd

now in the front end

1.For  AAA table

     *add the dimensions

     *Expression count({<New_Stauts={'AAA'}>}id)

similarly follow for other tables like BBB and CCC

Kushal_Chawda

you can create the Category field in script like below, then you can use this Category field as selection

LOAD *,

if(match(status,'Approved', 'Implementation', 'Scheduled', 'Work In Progress'),'AAA',

if(match(status,'Analysis', 'Approval Requested'),'BBB',

if(match(status,'Assigned','Closed', 'Cleared', 'Completed', 'Withdrawn'),'CCC'))) as Category


Capture.JPG

antoniotiman
Master III
Master III

Hi Constantin,

Calculated Dimension like this

=Pick(Match(status,'Approved', 'Implementation', 'Scheduled','Work In Progress'),'AAA','AAA','AAA','AAA')&
Pick(Match(status,'Analysis','Approval Requested'),'BBB','BBB')&
Pick(Match(status,'Assigned','Closed','Cleared','Completed','Withdrawn'),'CCC','CCC','CCC','CCC','CCC')

Regards,

Antonio

0li5a3a
Creator III
Creator III
Author

Thank you for your answer now all sorted.