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: 
Not applicable

fill on calculated field

Hi All

I've been playing around with an excel file which i use in one of my files and trying to get Qlikview to deal with a column on it's own as apposed to me adding a definitions column.

I'm trying to load a spreadsheet which contains something like below:

month 1month 2month 3month 4month 5
Actual
ActualProduct 1xxxxx
ActualProduct 2xxxxx
ActualProduct 3xxxxx
Plan
PlanProduct 1xxxxx
PlanProduct 2xxxxx
PlanProduct 3xxxxx


Currenlty i'm having to put in the Actual/ Plan column manually in to the spreadsheet. I can create a calculated line which recognises where actual and Plan are. The problem i am having is trying to get this to fill further down the list. For the second line it's not a problem using "Previous" or "Peek" but for the third it doesn't work. I have also tried to use the data transformation tool in the wizard but it does not recognise the calculated column as being "real".

Any help would be greatly appreciated.

Thanks

Michel

2 Replies
matt_crowther
Specialist
Specialist

Michel,

Try looking at top() - refers to the top record and above() as this can be controlled with a value ie the value n rows above not just the previous.

Hope that helps,

Matt - Visual Analytics Ltd

Not applicable
Author

Hi Matt

Thank you for coming back to me. Should i be able to use the Top function in the load script or should this be in the object i am defining? I've tried to put it into the script and it doesn't seem to like it. Sorry to be a pain.

Thanks

Michel