Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Expression Help

Hi,

I have the following table in my Qlikview app:

ClubElectronicScannedOtherTotal
Western Bulldogs1,133001,133
Gold Coast Titans27500275
Freemantle Dockers18700187
St. Kilda16100161
Sydney Swans490049
West Coast Eagles100010
Adelaide Crows5005
Port Adelaide Power2002
Fitzroy Lions03280328
North Melbourne Kangaroos013013
Total1,82234102,163

What expression would I use to get the electronic for each club divided by the grand grand total. So for instance, 1,133 / 2,163 for Western Bulldogs.

My current expression is below, but it only gives me the the electronic divided by the total number of "Type" for the individual club, not them all.

Count({<[Type]={"E"} >}Distinct [Invoice Number])

/

Count({<[Type]={"E","P","S","T"} >}Distinct [Invoice Number])

Many thanks,

Gareth

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Try using TOTAL keyword like:

Count({<[Type]={"E"} >}Distinct [Invoice Number])

/

Count(TOTAL {<[Type]={"E","P","S","T"} >}Distinct [Invoice Number])

View solution in original post

4 Replies
tresesco
MVP
MVP

Try using TOTAL keyword like:

Count({<[Type]={"E"} >}Distinct [Invoice Number])

/

Count(TOTAL {<[Type]={"E","P","S","T"} >}Distinct [Invoice Number])

swuehl
MVP
MVP

Maybe just use the TOTAL qualifier:

Count({<[Type]={"E"} >}Distinct [Invoice Number])

/

Count({<[Type]={"E","P","S","T"} >} TOTAL Distinct [Invoice Number])

Anonymous
Not applicable
Author

Thanks, that works a treat.

Anonymous
Not applicable
Author

Thanks, yours also works.