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: 
sk88024
Creator
Creator

Calculation expression in a Text Object

Can somebody please help me to get the expression in a text object to calculate the share of profit contributed by Shirt category in %.

categoryProfit
Shoe500
Tablets3000
Mobile500
Shirt1000
1 Solution

Accepted Solutions
Anil_Babu_Samineni

Sum(Profit)/Sum({<Category={'Shirt'}>} Profit)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

3 Replies
Anil_Babu_Samineni

Sum(Profit)/Sum({<Category={'Shirt'}>} Profit)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
sk88024
Creator
Creator
Author

It worked with a little modification.

=Sum({<Category={'Shirt'}>} Profit)/Sum(Profit)*100 & '%'

Thank You!

manoranjan_d
Specialist
Specialist

=Sum({<category={'Shirt'}>} Profit)/sum( total Profit)*100&'%'