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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Help to aggr a result

Hi guys,

I'm in trouble with an aggregation.

I have a straight table with two dimension and one expression:

nominativoDnominativoRGAP -1
Berti ValterAvondoglio Marco1
Berti ValterBeldi' Paola0
Berti ValterCotto Giovanni0
Berti ValterDiretti Berti Valter0
Berti ValterMorera Maurizio2
Berti ValterValperga Giovanni0

the expression for GAP-1 is:

if(

    sum(

        if(annomese_MNG=$(vTrimAct_MNG), left(ConsAvanzata,1))

        )

    -

    sum(

        if(annomese_MNG=$(vTrimPrec_MNG), left(ConsAvanzata,1))

        )

    =-1

,

    1

,

    0

)

I'd like to have a table with only one dimension "nominativoD" and aggr the result of GAP-1.

In poor words I'd like to have a table like this:

nominativoDGAP -1
Berti Valter3

How can I change my expression to reach my goal ??

Thank you so much in advance

Giampiero

My question is in the attached image.

10 Replies
Not applicable
Author

Thank you so much Nirmal Raj.

It works fine.

Best regards

Giampiero