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

MTD in straight table

Hi, QVers,

After did some search and test, I am stucked to use MTD in a pivot/straight table with Week as a dimension.

What I want is a straight, and later a pivot table as below:

Week,       WeekEnd,  sum(A), sum(B), sum(C),  MTD sum(C)

2015-18, 2015-05-03,            ,              ,            ,  sum(Date={">='2015-05-01'<='2015-05-03'"}C )

2015-19, 2015-05-10,            ,              ,            ,  sum(Date={">='2015-05-01'<='2015-05-10'" }C)

2015-20, 2015-05-17,            ,              ,            ,  sum(Date={">='2015-05-01'<='2015-05-17'"}C )


I tried, seems because "Week" is an dimension, sum({1}C) =sum(C), so the set analysis Date range dose not work.

May I know how to calculate the MTC in this case?


Thanks very much


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

Perhaps this document helps: Calculating rolling n-period totals, averages or other aggregations


talk is cheap, supply exceeds demand