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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
francisvandergr
Partner - Creator II
Partner - Creator II

0 instead of -

I have a qvw with a table and some fields. In my datamodel i wanna have a sum from some fields. I have an example

Project\Nummer 11000  has in the column Budget an '-'  . In the column Total i wanna have -2220.38

I wanna have 0 as number instead of -  in my table.

Can someone help me. I included an QVW file

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Hi Francis,

since I can't reload, I used a binary load of your qvw and a resident load of your table.

E voilá, it seems to work without any other change.

Strange.

Stefan

View solution in original post

12 Replies
swuehl
MVP
MVP

Francis,

as far as I see, you removed the data and objects from your qvw, so I can't see actual numbers (and I can't reload of course).

As far as I have seen in your script you played around with NullAsValue etc. which might be the solution.

I remember there were some issues with using that on a concatenate load, please check this:

http://community.qlik.com/message/137850

Hope this helps,

Stefan

SunilChauhan
Champion II
Champion II

sum(if( isnull(Budget),0,Budget))

or in script where Budget field available use this

if( isnull(Budget),0,Budget))

Sunil Chauhan
francisvandergr
Partner - Creator II
Partner - Creator II
Author

Sorry but this will not help. I still see a '-' at a lot of records

francisvandergr
Partner - Creator II
Partner - Creator II
Author

you can see the data with ctrl-t

SunilChauhan
Champion II
Champion II

can u share the sample .

you have attached the file which not reloaded .can u reload and share?

Sunil Chauhan
francisvandergr
Partner - Creator II
Partner - Creator II
Author

Her i have another example. In QV on the dashboard it goes good. When i do sum(Budget-Costs). When i do this in my datamodel Sum(Budget-Costs) it goes wrong.

And the problem is i have to count in my datamodel.

SunilChauhan
Champion II
Champion II

see the attached file

hope this helps

Sunil Chauhan
francisvandergr
Partner - Creator II
Partner - Creator II
Author

In dashboard it goes good but not in datamodel see Total.

SunilChauhan
Champion II
Champion II

ok  you need to check total field in script

weither calculation are correct.

Sunil Chauhan