Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
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