Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
haymarketpaul
Creator III
Creator III

Percentage based on another straight table column

I want to work out the percentage per brand in a straight table.  Not quite sure the best way to go about calculating the percentage column.  Any ideas most welcome.

Example

Last PageBrandBrand CountPercentage
BasicBR106.25
StandardBR3018.75
BulletinBR12075
BasicCAM6519.12
StandardCAM25073.53
BulletinCAM257.35
1 Solution

Accepted Solutions
sunny_talwar

Try this expression:

=Count(UserID)/Count(TOTAL <Brand> UserID)


Capture.PNG

View solution in original post

4 Replies
sunny_talwar

May be this:

Count([Brand Count])/Count(TOTAL <Brand> [Brand Count])

haymarketpaul
Creator III
Creator III
Author

Thanks for reply - that seems to make the %age column NULL ?

I've attached my qvw

sunny_talwar

Try this expression:

=Count(UserID)/Count(TOTAL <Brand> UserID)


Capture.PNG

haymarketpaul
Creator III
Creator III
Author

Perfect - Thank you