Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
sreenivas123
Contributor
Contributor

pivot table issue % of sub totals

Hi All,

I have below requirement,

At present pivot table  shows  sub total of compliance %= Incomplete+Late+Ontime,

But, I want to show sub total based on  below calculation.

Sub total formula of compliance % by course status  column= (Ontime) /(Ontime+Late+Incomplete)*100

MonthBucketMar 2016
OrganizationCourse StatusCompliance %90.77%
Breast and Skeletal Health OrganizationIncomplete2
Late88
Ontime721
Compliance %811
Commercial OperationsOntime66
Compliance %66
Corporate Business Development OrganizationOntime1
Compliance %1
Corporate Finance OrganizationIncomplete1
Late3
Ontime127
Compliance %131
Diagnostic OrganizationIncomplete8
Late37
Ontime369
Compliance %414
Human Resources OrganizationLate1
Ontime11
Compliance %12
Information Services OrganizationLate8
Ontime49
Compliance %57
International OrganizationIncomplete45
Late49
Ontime847
Compliance %941
Legal OrganizationIncomplete5
Ontime11
Compliance %16
Regulatory and Quality OrganizationIncomplete1
Late45
Ontime428
Compliance %474
Supply Chain OrganizationIncomplete7
Late104
Ontime1361
Compliance %1472
Surgical OrganizationIncomplete1
Ontime113
Compliance %114

Is it possible, if possible any one can help me to show  subtotal based on calculation.

below is example file.

Thanks.

2 Replies
Anonymous
Not applicable

Can you please try something like below in your expression.

=If(Dimensionality() = 1, (Ontime) /(Ontime+Late+Incomplete)*100, <The expression you used>).


sreenivas123
Contributor
Contributor
Author

i have tried same way(below is expression) , but not working.

Used expression as

if(Dimensionality()=1,

Num(Aggr(sum(aggr(Count(DISTINCT{<Bucket={Ontime}>}Employee_Number),Org_Hier.ORGANIZATION, Bucket,Complaince_Training_Program, MonthBucket)) /

Sum(Aggr(Count(DISTINCT Employee_Number),Org_Hier.ORGANIZATION, Bucket,Complaince_Training_Program, MonthBucket)), MonthBucket),'#,##0.00%') ,

sum(aggr(count(DISTINCT Employee_Number), Complaince_Training_Program, Org_Hier.ORGANIZATION, Bucket, MonthBucket )))