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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
mohan2391
Creator III
Creator III

Replace multiple fields data

Hi,

How to replace , with . in multiple fields ?

Ex: I have 30 fields, in which I have to replace ,(comma) with .(dot) -- in Qlikview script itself

    I know that, replace function can be used for this purpose but I need to write it for every field.

    So is there any possibility to replace all the 30 fields data at a time ?

Regards

mohan

7 Replies
Anil_Babu_Samineni

Does 30 fields are in same table?

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
stabben23
Partner - Master
Partner - Master

change here maybe?

mohan2391
Creator III
Creator III
Author

YES

mohan2391
Creator III
Creator III
Author

If  I use this, it will effect in all fields, right.

but i want to change in those 30 only there are lot more fields in that table available.

stabben23
Partner - Master
Partner - Master

Havent test but if you change back after this table, for ex

SET DecimalSep='.';
LOAD
;
from your table;

SET DecimalSep=',';

sudhirpkuwar
Partner - Creator II
Partner - Creator II

Hi

Better is to write replace() for every field individually 

stabben23
Partner - Master
Partner - Master

or this maybe

SET DecimalSep='.';
//first 30 field with .
LOAD
ItemId,
Field1,
Field2

FROM
[create.xlsx]
(
ooxml, embedded labels, table is Blad1);

SET DecimalSep=',';

//join other field with ,
join LOAD
ItemId
Field3,
Field4
FROM
[create.xlsx]
(
ooxml, embedded labels, table is Blad1);