Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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&'%'