Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
sagaraperera
Creator
Creator

RATIO

DEAR ALL

I want to get the relevant RATIO as mentioned  below. The required EXPRESSION is given below.

 

REG MONTH MO 2022 RATIO    
F 05 MOTOR 21,572,659 A/T   A
F 05 NON_MOTOR 89,835,261 B/T   B
F 05 Total 111,407,919 T/T   T
M 05 MOTOR 75,337,371 A/T   A
M 05 NON_MOTOR 12,378,710 B/T   B
M 05 Total 87,716,081 T/T   T
             
      EXPRESSION= Sum ( {$<FLAG= {'Y'} >}[GROSSTOT]) 
Labels (1)
1 Solution

Accepted Solutions
hic
Former Employee
Former Employee

It seems as if you want to get the relative numbers, i.e. divide by the total for the group. If so, you should try

Sum ( {$<FLAG= {'Y'} >}[GROSSTOT])
/
Sum ( {$<FLAG= {'Y'} >}total <REG,MONTH> [GROSSTOT])

View solution in original post

1 Reply
hic
Former Employee
Former Employee

It seems as if you want to get the relative numbers, i.e. divide by the total for the group. If so, you should try

Sum ( {$<FLAG= {'Y'} >}[GROSSTOT])
/
Sum ( {$<FLAG= {'Y'} >}total <REG,MONTH> [GROSSTOT])