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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
anagharao
Creator II
Creator II

Row level total - pivot

Hi ,

I have a pivot table that looks something like this

               compliant           in office          no time booked          TOTAL

BU

------------------------------------------------------------------------------------------------------

BU1          16                         5                    3                         24

BU2                                       4                    9                         13

BU3          10                         2                                               12

The BU dimension is straight forward. However the second column in the pivot is an aggregation:

Aggr(FirstSortedValue(COMPLIANCE_DESC , -PRIORITY), EMP_ID)

Now, I want the % of compliance , not just the headcount. I tried adding Count(Total EMP_ID) to the expression, however the results were 49 (24+13+12) in every cell.

How will i get the total value per row? 24 in the first, 13 in the second...

Thanks

Anagha

1 Solution

Accepted Solutions
sunny_talwar

May be this

Count(TOTAL <BU> EMP_ID)

View solution in original post

5 Replies
Anil_Babu_Samineni

If you use Partial Sum option checked this will automatic do and display

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
sunny_talwar

May be this

Count(TOTAL <BU> EMP_ID)

anagharao
Creator II
Creator II
Author

Thank you !

anagharao
Creator II
Creator II
Author

Also, what if it is a drilldown group and not just BU?

sunny_talwar

May be like this

Count(TOTAL <$(='[' & GetCurrentField([GroupName]) & ']')> EMP_ID)