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: 
etrotter
Creator II
Creator II

Where not Match

Hi I'm trying to create a calculated dimension where the values are 'Both', 'GLS/HT', 'Encore', or 'Neither' but the 'Neither' isn't working. this is what I have so far:


=

IF(

    Match([Workday.W_CODE],[GLS.W_CODE]) AND Match([Workday.W_CODE],[Encore.W_CODE])

    , 'Both'

    , IF(

    Match([Workday.W_CODE],[GLS.W_CODE])

        , 'GLS/HT'

        , IF(

        Match([Workday.W_CODE],[Encore.W_CODE])

            , 'Encore'

            , IF(

            Match([Workday.W_CODE],[Encore.W_CODE],[GLS.W_CODE])=0

            ,'Neither')

                )

         )

)

      

Please let me know if you have any ideas to fix it!

Thanks

1 Solution

Accepted Solutions
wdchristensen
Specialist
Specialist

=

IF(

    Match([Workday.W_CODE],[GLS.W_CODE]) AND Match([Workday.W_CODE],[Encore.W_CODE])

    , 'Both'

    , IF(

    Match([Workday.W_CODE],[GLS.W_CODE])

        , 'GLS/HT'

        , IF(

        Match([Workday.W_CODE],[Encore.W_CODE])

            , 'Encore'

            , IF(

            Match([Workday.W_CODE],[Encore.W_CODE],[GLS.W_CODE])=0

           'ZeroValue','Neither')

                )

         )

)

View solution in original post

5 Replies
YoussefBelloum
Champion
Champion

Hi,

can you attach some sample data ?

etrotter
Creator II
Creator II
Author

I saw it on another thread Where not match?

YoussefBelloum
Champion
Champion

Sorry I deleted the first message because I was maybe wrong..

would you be able to attach some data ?

gerry_hdm
Creator II
Creator II

IF(

    Match([Workday.W_CODE],[GLS.W_CODE]) AND Match([Workday.W_CODE],[Encore.W_CODE])

    , 'Both' ,
   IF( Match([Workday.W_CODE],[GLS.W_CODE])

        , 'GLS/HT',
      IF( Match([Workday.W_CODE],[Encore.W_CODE])
         , 'Encore',
          IF( Match([Workday.W_CODE],[Encore.W_CODE],'Neither')

                )

         )

)

IF( Match([Workday.W_CODE],[Encore.W_CODE])

and  the next ceil  idnetity

  IF( Match([Workday.W_CODE],[Encore.W_CODE] 

you see no datas

wdchristensen
Specialist
Specialist

=

IF(

    Match([Workday.W_CODE],[GLS.W_CODE]) AND Match([Workday.W_CODE],[Encore.W_CODE])

    , 'Both'

    , IF(

    Match([Workday.W_CODE],[GLS.W_CODE])

        , 'GLS/HT'

        , IF(

        Match([Workday.W_CODE],[Encore.W_CODE])

            , 'Encore'

            , IF(

            Match([Workday.W_CODE],[Encore.W_CODE],[GLS.W_CODE])=0

           'ZeroValue','Neither')

                )

         )

)