Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
john_henry
Contributor III
Contributor III

How do I create calculations in QlikSense?

I'm new to QlikSense and I'm trying to add a % of total column in a Pivot table I have created.  I have used the Measures feature to do basic "sum" formulas (e.g., for sales), but not sure how to create a % Mix based on each rows value relative to the whole dataset.

Here's a very basic illustration of what I'm trying to do:

   

ProductSales% Mix
A $             5 14%
B $          10 29%
C $          20 57%

Something tells me the answer is to use Expressions, but I'm not familiar with the language/syntax

Thanks for your help!

4 Replies
marcos_herrera
Partner - Creator III
Partner - Creator III

Hi Dear

You can create a new measure with this formula Sum(Sales) / Sum(TOTAL Sales)

Test please and if works mark with the correct answer

john_henry
Contributor III
Contributor III
Author

that worked!  thanks Marcos!

marcos_herrera
Partner - Creator III
Partner - Creator III

Hi Dear  John

Wonderfull please mark the answer with "correct answer"

Thanks

john_henry
Contributor III
Contributor III
Author

how?  I don't see a selection/action for that.  Do I just reply with "correct answer?