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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to get correct values

Hi,

I have a straight table with fields as below

Address1= =SUBFIELD(Home_Address_20026,',',1)

Address2=  =If(Address2<>Postcode,SUBFIELD(Home_Address_20026,',',2))

Address3=  =If(Address3<>Postcode,SUBFIELD(Home_Address_20026,',',3))

Town=  =If(Town<>Postcode,SUBFIELD(Home_Address_20026,',',4))

County= =If(County<>Postcode,SUBFIELD(Home_Address_20026,',',5))

PostCode=  =Subfield(Home_Address_20026,',',-1)

Here Home_Address_20026 is the column from sql table.

When I am using above in expressions it is showing values incorrect order. I,e under address3 it is showing Town values and under County it is showing Adrress2 values and so on.

Please could anyone help me how to set this to get correct order values.

Thanks.


17 Replies
nilesh_gangurde
Partner - Specialist
Partner - Specialist

Hi,

Please attach the sample qvw file.

-Nilesh

preminqlik
Specialist II
Specialist II

provide sample data fields

Anonymous
Not applicable
Author

This could be as you are using ',' as your delimiter,

so There might be a ',' in address3 field also, due to which wrong values are reflected.

Please post some sample data , which would help me to check the issue.

Regard

Nitin

Not applicable
Author

Please find attached.

Not applicable
Author

Please find attached.

Not applicable
Author

You have inconsistancy in the number of delimiters ',' in your address field B. they have to be correct, before you can use this method.

Not applicable
Author

Thanks and there is no possibility for me to change the onconsistancy as it is the field values in SQL table which I don't have write access.

nilesh_gangurde
Partner - Specialist
Partner - Specialist

Hope this will help you

-Nilesh

Not applicable
Author

Hi,

When I am try to opening the document it is showing "Failed to Load"

I am not able to open the document please help