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

Qlikview Interpreting "1" as "-1"

Hi,

I am loading some data from sql into a QVD.

For the Active column its showing : 1

In the QVD data is stored as -1.

Please help

Issue2.jpg

Issue1.jpg

14 Replies
tresesco
MVP
MVP

Without going into the cause analysis, can suggest a work around. Try loading multiplying it with -1, like:

Load

          Active*(-1) as Active

Not applicable
Author

Yeah i am using the same method as suggested by you.

But just wanted to know why  this is  happening?

tabisen1
Contributor II
Contributor II

Poornima,

Please try the fabs function fabs(Active) to get the -1 to 1.

Not applicable
Author

TRY THIS

FABS(ACTIVE)

tresesco
MVP
MVP

I have not faced such issue so far, so it would be hard for me to help without being on the actual platform. May be somebody faced the issue could help you answer 'why?'.

iktrayanov
Creator III
Creator III

Probably your Active in SQL is type Bit which is interpreted as TRUE in QlikView hence -1

Regards,

Ivan

Not applicable
Author

HI

TRY THIS IN Active  FIELD

Text(Active)

tresesco
MVP
MVP

Hi Ivan,

Good point ! could be the actual reason.

iktrayanov
Creator III
Creator III

If that is the case cast(Active as char(1)) in the load should do the trick.