Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Sai_Krishna
Contributor III
Contributor III

% in InLine Load

Load * InLine [
Type, "Num_Format"
Rev, 0.00%
Cost, 0.00
];

Above load, both records are loading 0.00%. How to handle % in inline load. Tried '0.00%' and "0.00%" AND [0.00%]. Its not working.

Labels (1)
1 Solution

Accepted Solutions
tresesco
MVP
MVP

This is another classic example of what @rwunderlich  has noticed and has come up with a fix. Check it here: https://qlikviewcookbook.com/2020/02/num-script-vs-chart/.

Though this is not about num() unlike Rob's post, but it seems that the qlik engine behavior is actually working on same logic and the format values are implicitly being treated similarly here. The new qlik engine QIX is a bit more intelligent now, and sometimes intelligent people do/interpret simpler things a bit differently that you didn't expect. 😋 

 

Try like:

Load *,

          Text("Num_Format") as "Num_Format_Corrected"

InLine [
Type, "Num_Format"
Rev, 0.00%
Cost, 0.00
];

View solution in original post

4 Replies
sergio0592
Specialist III
Specialist III

Hi,

You can use num() function in your load inline. But what is the expected output?

Sai_Krishna
Contributor III
Contributor III
Author

It should load as it is but now it loading with % to all records (Below Screenshot). I will use this in Pivot expression like Num(SUM(...),Num_Format). This will improve performance instead of having if condition and defining number format.

Untitled.png

tresesco
MVP
MVP

This is another classic example of what @rwunderlich  has noticed and has come up with a fix. Check it here: https://qlikviewcookbook.com/2020/02/num-script-vs-chart/.

Though this is not about num() unlike Rob's post, but it seems that the qlik engine behavior is actually working on same logic and the format values are implicitly being treated similarly here. The new qlik engine QIX is a bit more intelligent now, and sometimes intelligent people do/interpret simpler things a bit differently that you didn't expect. 😋 

 

Try like:

Load *,

          Text("Num_Format") as "Num_Format_Corrected"

InLine [
Type, "Num_Format"
Rev, 0.00%
Cost, 0.00
];

Sai_Krishna
Contributor III
Contributor III
Author

Thanks for quick solution tresesco (MVP).