Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

% Deviation ?

HI All,

I am having Data

 

DivisionSubdivisionPlanActualDifference
Gen careMedical 066FALSE
Gen careWebinars077FALSE
Gen careConferences/ TTT110TRUE
Gen careTution4128FALSE
Gen careSMEs099FALSE
Gen careYoung Doctor prg02222FALSE
Gen careLaunch43834FALSE
Gen careClasses011FALSE

In this Table i am having 8 records,True & are false based on the Difference of Plan & Actual..

Difference is '0' Means on Time completed---True..

Difference is Value means not on time ------False

Deviation Should get---- (8-1)/8 = 87.5

How can i achiev this ...?

Kindly help me on this..

Regards,

Helen

1 Solution

Accepted Solutions
settu_periasamy
Master III
Master III

Try this.

LOAD *,Actual-Plan as Difference,if(Actual-Plan=0,'Yes','No') as IsTimeCompleted;

LOAD * INLINE [

     Division, Subdivision, Plan, Actual

    Gen care, Medical, 0, 6

    Gen care, Webinars, 0, 7

    Gen care, Conferences/ TTT, 1, 1

    Gen care, Tution, 4, 12

    Gen care, SMEs, 0, 9

    Gen care, Young Doctor prg, 0, 22

    Gen care, Launch, 4, 38

    Gen care, Classes, 0, 1

];

Then, in the Textbox, write the below expression

=Num((Count(TOTAL Division)-Count({<IsTimeCompleted={Yes}>}Division))/Count(TOTAL Division),'#,##0.0%')

View solution in original post

1 Reply
settu_periasamy
Master III
Master III

Try this.

LOAD *,Actual-Plan as Difference,if(Actual-Plan=0,'Yes','No') as IsTimeCompleted;

LOAD * INLINE [

     Division, Subdivision, Plan, Actual

    Gen care, Medical, 0, 6

    Gen care, Webinars, 0, 7

    Gen care, Conferences/ TTT, 1, 1

    Gen care, Tution, 4, 12

    Gen care, SMEs, 0, 9

    Gen care, Young Doctor prg, 0, 22

    Gen care, Launch, 4, 38

    Gen care, Classes, 0, 1

];

Then, in the Textbox, write the below expression

=Num((Count(TOTAL Division)-Count({<IsTimeCompleted={Yes}>}Division))/Count(TOTAL Division),'#,##0.0%')