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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

tMap : #DIV/0! disapperars

Hi !

 

I have a column A(in string) : 

12

10

48

16

27

24

#DIV/0!

116

147

#DIV/0!

#DIV/0!

#DIV/0!

 

I use a tMap to put the number in double. So, i have that :

 

12

10

48

16

27

24

#DIV/0!     (disappears)

116

147

#DIV/0!    (disappears)

#DIV/0!    (disappears)

#DIV/0!    (disappears)

 

So, I use in Expressions : 

row4.ColumnA.equals("#DIV/0!")?Double.toString(row4.ColumnA):row4.ColumnA

but it doesn't work.

 

I want keep "#DIV/0!" in Excel. I want keep numbers in double.

 

Thank you in advance

Labels (2)
1 Solution

Accepted Solutions
manodwhb
Champion II
Champion II

@Beauchamp_J,please check this wil be usefull.

0683p000009Lx0u.png0683p000009Lwue.png

View solution in original post

6 Replies
manodwhb
Champion II
Champion II

@Beauchamp_J,are you looking for the following?

0683p000009Lx0a.png0683p000009Lx0y.png

Anonymous
Not applicable
Author

No, I always want see "#DIV/0!" in my Excel.

But, when i put the column in double, Talend doesn't keep "#DIV/0!". I need them to stay because there are informations linked to the "#DIV/0!"

manodwhb
Champion II
Champion II

@Beauchamp_J,in to double column you cannot populate sting value as #DIV/0!. if you want numbers into one column and string value into another column you can do.

manodwhb
Champion II
Champion II

@Beauchamp_J,please check this wil be usefull.

0683p000009Lx0u.png0683p000009Lwue.png

Anonymous
Not applicable
Author

Thank you for that solution but i can't have two columns. (in my Excel, it is many column with number, SUM, DIV....) I just keep three columns (A= ID, B= Name and AF= Number and DIV/0!) (and other columns (D, E, F, G, ....) aren't filtered)

 

I will try to use tReplace.

Anonymous
Not applicable
Author

@manodwhb

I added a tMap more with your proposition and this works! 

I needed take a pause and i had a idea after. 

 

Thanks for your help.