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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
srinivasa1
Creator II
Creator II

Weekly diffrence calculation

Hi,

Can anyone guide me how can calcaulate weekly diffrence in qlikview pivot table in best way. below is my sample requirements

I have attached my sample application..i need to label as dynamic for weekend and need to calcualte sales weekly variance based on weekeend

Thanks for any guidence

Labels (1)
1 Reply
jagan
Partner - Champion III
Partner - Champion III

Hi Srinivas,

Instead calculating in Pivot table, this can be easily done in script while loading using Order by and Previous function.

LOAD

*,

If(Previous(Product) = Product, Previous(Sales) - Sales, 0) AS Difference

FROM Datasource

Order by Product, Date Desc;

Hope this helps you.

Regards,

Jagan.