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: 
Anonymous
Not applicable

Counting no of items per prescription

I have the following data:

Screen Shot 2014-12-03 at 00.25.33.png

I need to be able to count the number of items per prescription.  Each prescription has a unique identifier 'Script Number'.  For example Script Number 181848 has 6 different items and  Script Number 18149 has 2 items.  What expression can i use to achieve this?

Regards.

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

Create a Straight Table

Dimension

[Script Number]

Expression

COUNT(Distinct [Drug Name])

View solution in original post

2 Replies
MK_QSL
MVP
MVP

Create a Straight Table

Dimension

[Script Number]

Expression

COUNT(Distinct [Drug Name])

Anonymous
Not applicable
Author

Many thanks Manish