Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

return the value that matched the category.

Hi Everyone,

Really new in Qlik. and I have no idea how to start an expression with the below Condition.

Appreciate your help.

   

Sample Data
ID: conversationCLIDirectionParticipant Purpose
1+61123456710Inboundacd
1+61123456711Inboundivr
1+61123456789Inboundcustomer
1+61123456788Inboundcustomer
3+61123456790Inboundacd
2+61123456795Outboundivr
2+61123456799Outboundcustomer
4+61123456889OutboundIvr

  

Condition:
Return CLI for 1st Participant "customer" Purpose INBOUND Direction
Return CLI for "customer" Participant Purpose OUTBOUND Direction

Result
ID: conversationCLIDirectionParticipant Purpose
1+61123456789Inboundcustomer
2+61123456799Outboundcustomer
13 Replies
Anonymous
Not applicable
Author

Hi Luis,

thanks.

    

Sample Data
ID: conversationCLIDateDirectionParticipant Purpose
16112345671011/01/2017Inboundacd
16112345671111/01/2017Inboundivr
16112345678911/01/2017Inboundcustomer
16112345678811/01/2017Inboundcustomer
36112345679011/01/2017Inboundacd
26112345679511/01/2017Outboundivr
26112345679911/01/2017Outboundcustomer
46112345688911/01/2017OutboundIvr

     =FirstSortedValue( DISTINCT {<[Participant Purpose]={customer},Direction={Inbound,Outbound}>} CLI, Date)

Result of the given expression
ID: conversationCLIDateDirectionParticipant Purpose
1 -11/01/2017Inboundacd
1 -11/01/2017Inboundivr
16112345678911/01/2017Inboundcustomer
16112345678811/01/2017Inboundcustomer
3 -11/01/2017Inboundacd
2 -11/01/2017Outboundivr
26112345679911/01/2017Outboundcustomer
4 -11/01/2017OutboundIvr

It still shows the 2 Inbound. And "-" for the CLI that doesn't matched the critea.

    

Desired Result
ID: conversationCLIDateDirectionParticipant Purpose
16112345678911/01/2017Inboundcustomer
26112345679911/01/2017Outboundcustomer

Is there a way to only show the data that matched all the criteria?
luismadriz
Specialist
Specialist

HI I,

Did you create the table with only the 4 dimension and 1 measure as I described. It's strange because I'm getting the results here. Please review this screenshot:

Untitled.png

Anonymous
Not applicable
Author

Hi Luis,

oooohhh I see. Now it is working.

But I need to add more columns to it.. when I'm adding, the "-" is showing.

columns I should show are:

1. ID

2. CLI

3. DATE

4. START TIME

5. DIRECTION

6. MEDIA TYPE

7. USER NAME

8. QUEUE NAME

9. AHT

10. ATT

11.HOLD

12. ACW

13. ENTRY POINT

14. REASON

15. SUB-REASON

16. PROCESS

17. WRAP UP NAME

PARTICIPANT PURPOSE IS NOT INCLUDED ON THE COLUMNS TO SHOW. but we will based one of the criteria there. PARTICIPANT PURPOSE = customer

I just can't re arrange the format of the columns as they are standard.

luismadriz
Specialist
Specialist

Hi,

Maybe you need to create a new post attaching the data or the qvf?

It's difficult to troubleshoot without more information,

I hope this helps,

Cheers,

Luis