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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
rathnam_qv
Creator
Creator

Expressions

hi all,

i need to find

i. Total losses when Scenario=Actual

ii . Total losses when Scenario=Plan

iii.Actual as a % of planned

please help me to write quries for that

Thanks in advance

smiley

Labels (1)
5 Replies
Qlik__Vinodh
Partner - Creator II
Partner - Creator II

Hi muni,

did u got the soluation for this ?

regards,

vinod

Not applicable

if( Scenario=Actual, losses)

*********************************************************

if( Scenario=Planl, losses)

***************************************************

or try this

if( Scenario='Actual', losses)

*********************************************************

if( Scenario='Planl', losses)

rathnam_qv
Creator
Creator
Author

no yar

can u help me plz...

Thanks in advance

smiley

NavinReddy
Creator II
Creator II

if(Scenario=Actual,1,Total(Losses))

try this

er_mohit
Master II
Master II

1)sum(Total {$<Scenario='Actual'}>}losses)

2)sum(Total {$<Scenario='Plan'}>}losses)

3)sum(if(Scenario='Plan',losses))/sum(if(Scenario='Plan',total losses)) or

try this way

sum( {$<Scenario='Plan'}>}losses)/sum(TOTAL<Scenario>losses)

//and for this in presentation tab Fixed to 2 and check on show %

or if you using straight table then simply write

sum(Total {$<Scenario='Plan'}>}losses)


or tick on expression total in expression tab

try this

sum(Total {$<field=>}losses)