Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
beck_bakytbek
Master
Master

zero value

Hi Folks

i have a question, i am using this expression:

num# (Einstandspreis, '#.#', '.', ',') as Einstandspreis

i have some ZeroValue, but i am not able to convert these zero values into 'no values'

does anybody have any idea how to resolve this issue

Thanks a lot

Beck

1 Solution

Accepted Solutions
big_dreams
Creator III
Creator III

can you explain with sample data??

try like

Replace(Trim(Replace(fieldName,'0',' '),' ','0') as newFieldName

Regards,

View solution in original post

5 Replies
big_dreams
Creator III
Creator III

can you explain with sample data??

try like

Replace(Trim(Replace(fieldName,'0',' '),' ','0') as newFieldName

Regards,

Ivan_Bozov
Luminary
Luminary

Maybe this: If(Einstandspreis>0, YourExpression) as Einstandspreis

vizmind.eu
felipedl
Partner - Specialist III
Partner - Specialist III

Hi Beck,

Not quite sure I understood, but you want to have null values when the value of your Einstandspreis is zero?

If so, you can use a conditional on your load statement, like this:

Table:

Load

     if (num# (Einstandspreis, '#.#', '.', ',')>0,num# (Einstandspreis, '#.#', '.', ','),null() as Einstandspreis

From [Whatever];


If your number interpretation is greate than zero, it will input null as "value".

If I misunderstood your problem, please add more to it and i'll try to help.


Felipe.

beck_bakytbek
Master
Master
Author

Hi Felip,

i am using this expression:

num# (Einstandspreis, '#.#', '.', ',') as Einstandspreis

and i want to replce zero-values with 'no value' and this is my problem

big_dreams
Creator III
Creator III

can you explain with sample data???

Regards,