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: 
mandilicious
Creator II
Creator II

How to counting comments in a Colum

Hi Champs 

Still new, i would like to implement below scenario from excel to qliksense.

First i need to count customer comments and get the number of comments, then sum number of comments to get Total number of comments. Then after get the percentage by doing like this Number of Comments(1) / Total number of comments(28) to get % = 3.57.

 

Regards

 

Labels (4)
15 Replies
HeshamKhja1
Partner - Creator II
Partner - Creator II

Hi @mandilicious ,

No, it should be one field. Like this:

Pick(WildMatch( "Overall Comment", '*latency*', '*Incomplete*', '*Not Delivered*', '*No Communication*', '*Price*')
, 'Latency', 'Incomplete', 'Not Received', 'Lack of communication', 'Total Price') AS CommentKeyWords

The order is important as WildMatch() is returning numbers corresponding to the order of match. if latency matches --> 1, if Not Delivered matches --> 3, etc.

Pick() takes number n and returns the n attribute. E.g. WildMatch() returns 2, Pick() returns 'Incomplete' (the second attribute).

mandilicious
Creator II
Creator II
Author

Hi Heshamkhja,

Which chat can i use for such queries?

HeshamKhja1
Partner - Creator II
Partner - Creator II

As you are interested in the percentage of each comment category in respect to all comments, I think pie chart is best suited.

mandilicious
Creator II
Creator II
Author

Hi Heshmkhja

What will be my dimension and Measure based on above info?

Regards

HeshamKhja1
Partner - Creator II
Partner - Creator II

Hi @mandilicious ,

Dimension: CommentKeywords (The new field)

Measure: Count(CommentKeywords)

The chart will calculate the percentages % and present it.

Aasir
Creator III
Creator III

1. Count Customer Comments:
Count(CommentField)
2. Sum of Number of Comments:
Sum(Count(CommentField))
3. Calculate the Percentage:
(Count(CommentField) / Sum(Count(CommentField))) * 100

Remember to replace CommentField with the actual field name where your customer comments are stored in your Qlik Sense data model.