Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
selcukcadir
Creator II
Creator II

expression sum and ?

hi all,

//Sum ({$<SAP_ANAGRUP={"JELLY"}>} MIKTAR)     >>>> working

I want to do ,


if ( SAP_ANAGRUP="JELLY" and mid(MALZEME_NO,11,2) ="16" and ISTUR2 = "WR" and (ISTUR = "101" OR ISTUR = "102"), MIKTAR )

but it does not work

sum (

       {$<

       SAP_ANAGRUP={"JELLY"},

       mid(MALZEME_NO,11,2) ={"16"},

       ISTUR2 = {"WR"},

       (ISTUR = {"101"} OR ISTUR = {"102"}),

       >}

       MIKTAR

       )

picture Added

1 Solution

Accepted Solutions
jagan
Luminary Alumni
Luminary Alumni

Hi,

You create another field in your script for MALZEME_NO by using the

mid(MALZEME_NO,11,2) as Dimension1

Now try expression below.  If you calculate in load script the performance would be better.

sum (

       {$<

       SAP_ANAGRUP={"JELLY"},

       Dimension1 ={"16"},

       ISTUR2 = {"WR"},

       ISTUR = {"101, 102"} >}

       MIKTAR

       )

Hope this helps you.

Regards,

jagan.

View solution in original post

1 Reply
jagan
Luminary Alumni
Luminary Alumni

Hi,

You create another field in your script for MALZEME_NO by using the

mid(MALZEME_NO,11,2) as Dimension1

Now try expression below.  If you calculate in load script the performance would be better.

sum (

       {$<

       SAP_ANAGRUP={"JELLY"},

       Dimension1 ={"16"},

       ISTUR2 = {"WR"},

       ISTUR = {"101, 102"} >}

       MIKTAR

       )

Hope this helps you.

Regards,

jagan.