Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

last cost

hi, this is my facts table

IDdatetypeitemquantitycostrevenue
117/11/09sell-in84102230
230/11/09sell-out84101280
330/11/09sell-out84101280
417/12/09sell-in84101220
518/12/09sell-out84101280

whow can I update the cost in all sell-out row with the last sell-in value? this is for valuate stock with last cost value.

thanks all

Labels (1)
1 Reply
Not applicable
Author

I think the right practice is:

LOAD *,if(cost,cost,previous(last_cost)) as last_cost resident TB1


but it's not possible in QV