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: 
cena_abhishek
Contributor
Contributor

How does calculation time depend on 'IF' condition

How does my calculation time of a measure depend on nested 'If' statement?

I have expressions which have atleast 4 nested 'If' statements. I want to know how does calculation time depend on nested 'If'?

Labels (1)
1 Reply
Anil_Babu_Samineni
MVP
MVP

May be this?

If(FieldName = 'A', Sum(Sales),

     If(FieldName = 'A1', Sum(Sales1),

          If(FieldName = 'A2', Sum(Sales2),

               If(FieldName = 'A3', Sum(Sales3)

                 )

             )

        )

  )

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful