Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
manojkumar_mk
Partner - Contributor II
Partner - Contributor II

Count of multiple field

Hi friends

I am facing a one problem please help me..

There are 400 leads in that leads only few leads will go to boarding... based on boarding time we should count.. can any one give me set analysis expression for that..

I want to count that leads which are going to boarding...

5 Replies
OmarBenSalem

do you have a field in your script for the bording?

I mean sthung like a state field that contains values : borading and not boarding?

if so:

count({<state={'boarding'}>}leads)

shraddha_g
Partner - Master III
Partner - Master III

In Load Script you can create a field for Boarding Status.

For Example,  if(isnull([Boarding Date]),0,1) as BoardingStatus

In Expression,

Count(Distinct {<BoardingStatus = {'1'}>} Leads)

manojkumar_mk
Partner - Contributor II
Partner - Contributor II
Author

Thank you for your reply..

In my script I am not using a master calendar script.. Based on field name(Created Date) I am getting a result..

My table is showing from 2017 jan 1st - till 23rd Nov 2017.

My Question:- Whenever I am opening an app, It must be show with Current month details:

  It is in Qliksense not in Qlikveiw

Where should i use month function, Can you please do correction in my expression:

Below is my script:

Count({$<assign_to_city={'Mumbai','Bangalore','Delhi','Jaipur','Ahmedabad','Pune','Cochin','Kolkata','Mohali','Lucknow','Indore','Hyderabad','Chennai'},campaign_no={'CAM31'}>}leadid)

shraddha_g
Partner - Master III
Partner - Master III

What should be the condition for 'Boarding'? how it should get calculated from Created Date?

manojkumar_mk
Partner - Contributor II
Partner - Contributor II
Author

Based on created date we can calculate, every month how many leads are receiving..

Load

id as leadid,

createdDate,

Month(createddate) as Month,

Year(createddate) as Year,

from T_CRMEntity.QVD;

Above is my script

I have taken One filter Month and Year  and I choose one Table their i have taken dimension as city name and measure as below script:

Count({$<assign_to_city={'Mumbai','Bangalore','Delhi','Jaipur','Ahmedabad','Pune','Cochin','Kolkata','Mohali','Lucknow','Indore','Hyderabad','Chennai'},campaign_no={'CAM31'}>}leadid)

In Qliksense When ever the app opening it must be open with current month..

Please give the correct expression..

For your question answer is I have a filed called Boarding time based on that we can calculate...