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: 
Lalita_Rai
Partner - Contributor II
Partner - Contributor II

Contribution %

Hi,

How do I do this?

The question given  (show contribution % to sales of each Employee in the dept )

 

Thank you so much.

LOAD * INLINE [

DeptID, Employee, Price, Quantity
101, Tom, 10, 1
101, Sara, 100, 2
101, Maya, 350, 7
102, Carl, 450, 4
102, Martha, 560, 6
103, Layra, 450, 7
103, Ten, 320, 4
103, Mark, 560,3
];

 

1 Solution

Accepted Solutions
Lisa_P
Employee
Employee

Just go to Number tab of Straight table and format fixed to 1 decimal place and tick the box show in percent%

View solution in original post

5 Replies
rubenmarin

Hi, if you have a table with DeptID and Employee as dimensions you can use this expression:

Sum(Price*Quantity)/Sum(TOTAL <DeptID> Price*Quantity)

Lalita_Rai
Partner - Contributor II
Partner - Contributor II
Author

Thank you Ruben.

But I am not getting it in percent.

Below is the outcome I am suppose to get.

 

Capture.PNG

 Many Thanks.

Lisa_P
Employee
Employee

Just go to Number tab of Straight table and format fixed to 1 decimal place and tick the box show in percent%

Lalita_Rai
Partner - Contributor II
Partner - Contributor II
Author

Got it .Thank you so much!

Lalita_Rai
Partner - Contributor II
Partner - Contributor II
Author

Hi Ruben. I got the answer. Thank you for your help:)