Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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
Without going into the cause analysis, can suggest a work around. Try loading multiplying it with -1, like:
Load
Active*(-1) as Active
Yeah i am using the same method as suggested by you.
But just wanted to know why this is happening?
Poornima,
Please try the fabs function fabs(Active) to get the -1 to 1.
TRY THIS
FABS(ACTIVE)
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?'.
Probably your Active in SQL is type Bit which is interpreted as TRUE in QlikView hence -1
Regards,
Ivan
HI
TRY THIS IN Active FIELD
Text(Active)
Hi Ivan,
Good point ! could be the actual reason.
If that is the case cast(Active as char(1)) in the load should do the trick.