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

Announcements
Only at Qlik Connect! Guest keynote Jesse Cole shares his secrets for daring to be different. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

how to add and exclude row data in qlikview

my source like below..

How to get cont MeetingA and Meeting B

   

clientmeetingcountmeetingtype
ddd5MeetingA
ddd6MeetingB
ddd7MeetingC
sss8MeetingA
sss9MeetingB
sss10MeetingC
aaa11MeetingA
aaa12MeetingB
aaa13MeetingC

i am excepted o/p is

client  meetingtype        meetingcount       total

aaa  MeetingA                           11                   24

aaa MeetingB                              12                 27

aaa MeetingC                              13                 13

ddd MeetingA                               5                     24

ddd MeetingB                               6                    27

ddd MeetingC                             7                      7

sss MeetingA                                8                         24

sss MeetingB                                   9                      27

sss MeetingC                              10                        10

12 Replies
Anil_Babu_Samineni

Perhaps this?

Sum(TOTAL <meetingtype> meetingcount)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Anonymous
Not applicable
Author

Hi Anil,

Weneed only count in Meeting A,Meeting B.

Thanks,

sunny_talwar

May be this

If(Match(meetingtype, 'Meeting A', 'Meeting B'), Sum(TOTAL <meetingtype> meetingcount), Sum(meetingcount))

Anil_Babu_Samineni

Like this?

Sum(TOTAL <meetingtype> {<meetingtype={'MeetingA','MeetingB'}>} meetingcount)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
susovan
Partner - Specialist
Partner - Specialist

Hi,

It should be work,

Capture.JPG

PFA

Warm Regards,
Susovan
sunny_talwar

This is a good way also and you can add this to the above expression (without needing to use an if statement)

Sum(TOTAL <meetingtype> {<meetingtype = {'MeetingA','MeetingB'}>} meetingcount) +

Sum({<meetingtype -= {'MeetingA','MeetingB'}>} meetingcount)

Anonymous
Not applicable
Author

hi anil ,

After using ur expression only count Meeting,Metting B is commng Meeting C is gone.

I am expacted  o/p  MeetingA and Meeting B count and Meeting C asusal data.

Thanks,

sunny_talwar

Did you try one of these?

If(Match(meetingtype, 'Meeting A', 'Meeting B'), Sum(TOTAL <meetingtype> meetingcount), Sum(meetingcount))


Sum(TOTAL <meetingtype> {<meetingtype = {'MeetingA','MeetingB'}>} meetingcount) +

Sum({<meetingtype -= {'MeetingA','MeetingB'}>} meetingcount)

Anonymous
Not applicable
Author

Hi

I am

i am excepted o/p is like this (Not for all sum )

client  meetingtype        meetingcount       total

aaa  MeetingA                           11                   24

aaa MeetingB                             12                 27

aaa MeetingC                             13                 13

ddd MeetingA                               5                     24

ddd MeetingB                              6                    27

ddd MeetingC                            7                        7

sss MeetingA                               8                       24

sss MeetingB                                9                    27

sss MeetingC                              10                       10