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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Shinooj_M
Partner - Contributor II
Partner - Contributor II

Need to create a count variable according to the different fields and that count value should increa

Hi All,

 I have some sample data here.

 

I WANT TO CREATE A INCREMENT COUNT VARIABLE .

USER RAM VISITS ABC CATEGORY AND XYZ SUB CATEGORY , SO COUNT VARIABLE IS 1

AND NEXT TIME IF THE SAME USER VISITS THE SAME CATEGORY AND SUBCATEGORY THE COUNT VARIABLE SHOULD INCREASE  TO 2 AND SO AND SO. CAN ANYONE HELP ME TO GET THAT DONE .

NOTE : THE USERS ARE NOT STATIC , THE USERS WILL BE CHANGE EVERYDAY .

User IDCategorySub CategoryUpdatedCREATED
RAMABCXYZ2020-10-28 12:31:182020-09-28 10:31:18
RAMABCXYZ2020-10-29 10:40:322020-10-29 9:20:32
RAMABCLMN2020-11-02 18:02:002020-10-02 12:52:00
ADAMABCXYZ2020-10-30 08:56:052020-08-30 18:56:05
ADAMABCLMN2020-11-02 12:00:562020-11-02 12:00:56

 

Thankfully,

Shinooj 

Labels (1)
4 Replies
Taoufiq_Zarra
MVP
MVP

@Shinooj_M  can you share the expected output from this sample ?

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
Shinooj_M
Partner - Contributor II
Partner - Contributor II
Author

Please find the expected output below .

want to create a counter variable which gives how many times the user visits the same category an subcategory .

  • User RAM Visits Category EDF and Subcategory LMN is 1 time.
  • User RAM Visits Category ABC and Subcategory PQR is 2 times
  • User ADAM Visits Category ABC and Subcategory XYZ is 3 time's.
  • User ADAM Visits Category EDF and Subcategory LMN is 2 time.
  • User RAM Visits Category ABC and Subcategory XYZ is 2 times.

Please find the sample data below

Shinooj_M
Partner - Contributor II
Partner - Contributor II
Author

Any Update . Is this possible..Please respond

 

kfoudhaily
Partner - Creator III
Partner - Creator III

hello,

 

load

User, 
[ID Category],
[Sub Category],
Updated,
CREATED,
autonumber (User&[ID Category]&[Sub Category]) as [you var]
from ...

 

 

please don't forget to mark accepted if response is ok for you.

 

regards,

QlikView Qlik Sense consultant