Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Chanty4u
MVP
MVP

RE:Ratio

Hi all,

I need to calucalte the raio between

Frmulae: Onsite Hours/Offshore Hours

Dim:Period

sample data lik dis

     

yearperiodon_0ff_flagtotal_hrstotal_amt
2011Per10Onsite    152456
2011Per10Onsite    152456
2011Per10Onsite    72216
2011Per10Offshore  152304
2011Per10Offshore  152304
2011Per10Offshore  816
2011Per10Offshore  142284

how can i achve dis?

thanks

Suresh

10 Replies
Anonymous
Not applicable

this as well:

=num(Sum({<onsite_offshore_flag = {'Onsite'}>} total_hrs)/Sum({<onsite_offshore_flag = {'Offshore'}>} total_hrs)*100,'0')&'%'