3 Replies Latest reply: Oct 29, 2014 1:13 PM by SOULEIMANE BELARIBI RSS

    Multiple IF imbricated Qlikview

      Hi,

       

      I have a big problem with the IF Condition.
      I would like to write (translate) this code :

        CASE (D.DOC_TYPE)WHEN 'A' THEN 'Achat'

          WHEN 'V' THEN 'Ventes'

          END AS 'Type de doc.',

             

        CASE (D.DOC_TYPE)

          WHEN 'V'

                  THEN

                      CASE (D.DOC_STYPE)

                              WHEN 'P' THEN 'Pro-forma'

                              WHEN 'D' THEN 'Devis'

                              WHEN 'C' THEN 'Commandes'

                             WHEN '0' THEN 'Avoirs Financiers'

          END

          WHEN 'A' THEN

              CASE (D.DOC_STYPE)

                  WHEN 'D' THEN 'Demandes de Prix'

                  WHEN 'C' THEN 'Commandes'

                   WHEN 'A' THEN 'Avoirs'

                  WHEN '0' THEN 'Avoirs Financiers'

              END

          END AS 'Sous type de doc.',

       

      Someone can help me, please, it's very very urgent!!!!!!

       

      Regards