Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
scheibercamo
Contributor III
Contributor III

How to get ratio of specific dimension within a chart?

If I have a table such as the below (a straight table or pivot), is there a way to get the % Headcount of specific locations, and not just overall Headcount globally? 

I need "% of Location" populated without manually writing the Location in a set analysis. 

% of Total HC I already have - SUM(Headcount) / SUM(Total(Headcount))

So now I need % of Location (text in red). Any way to do this? Much appreciated!

LocationProjectHeadcount% of Total HC% of Location
San JoseAuto895%100%
ChicagoBanking674%46%
ChicagoHealth785%54%
TampaHealth34523%28%
TampaAuto89059%72%
Buenos AiresBanking423%100%
-Total1,511100%-
Labels (1)
1 Solution

Accepted Solutions
Saravanan_Desingh

Try this,

Dim: Location, Project

Exp:

Sum(Headcount)/Sum(TOTAL Headcount)

Sum(Headcount)/Sum(TOTAL <Location> Headcount)

commQV47.PNG

View solution in original post

2 Replies
Saravanan_Desingh

Try this,

Dim: Location, Project

Exp:

Sum(Headcount)/Sum(TOTAL Headcount)

Sum(Headcount)/Sum(TOTAL <Location> Headcount)

commQV47.PNG

scheibercamo
Contributor III
Contributor III
Author

This is literally exactly what I wanted to see - thank you so much! The real MVP!