Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
danielle_v
Creator
Creator

Maintain Number Format of Excel Import

Hi All,

I am importing an Excel table into Qlikview, as per the below extract;

AreaMeasureYearJanFeb
ABCValue2014£1,234,766£2.367,720
ABC%20142.1%3.3%
DEFValue2014£3,331,755£2,776,637
DEF%20141.9%4.8%

In the front end of my report, I am creating a pivot table out of this data and need all of the figures to maintain the same format as they have in the source file - so there should be a mixture of £ values and % values.

However, I can't see if there's a way of having multiple number formats per expression (in my case, an expression would be sum(Jan), sum(Feb) etc., with Area, Measure and Year as the dimensions).

Is there a way of doing this at all?

Any help much appreciated!

1 Solution

Accepted Solutions
sushil353
Master II
Master II

Hi,

You can use NUM() function with condition to specify desired no format.

View solution in original post

3 Replies
sushil353
Master II
Master II

Hi,

You can use NUM() function with condition to specify desired no format.

PrashantSangle

Hi,

try

FindOneOF()

like

if(findOneOf(FieldName,'%')>0,num(fieldName,'#,#0.0%'),num(fieldName,'£#,###,#00'))

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
danielle_v
Creator
Creator
Author

Thanks Sushil - I added an if statement into my expression and used the NUM function within this