
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Calculate Moving Range Category Wise
I am creating an app for doing some spc calculations. Since I cannot share the real data, I have created dummy data here.
I have a table like below.
I am calculating the moving range and average of moving range for entire data.
Moving Range = fAbs(Sales - Above(total Sales))
MR Avg = Avg(Total Aggr(fabs(Above(sum(Sales))-sum(Sales)), [%KEY]))
This table calculates as expected.
I need a second table which should calculate moving range and average for individual item group.I later plan to plot this value against item groups.
Moving Range = Sum(Aggr(Above(total Sales),[%KEY]))
Expectation is that for individual item group, new moving range is created and calculations are done.But above formula calculates moving range according to the entire sales data.
All ideas are welcome.
- Tags:
- above function
Accepted Solutions
.png)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@arun_tv I think you may need Set Analysis on this too, here are a couple of Design Blog links I hope will help:
https://community.qlik.com/t5/Qlik-Design-Blog/A-Primer-on-Set-Analysis/ba-p/1468344
https://community.qlik.com/t5/Qlik-Design-Blog/Set-Analysis-in-the-Aggr-function/ba-p/1463822
Regards,
Brett
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.
.png)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@arun_tv I think you may need Set Analysis on this too, here are a couple of Design Blog links I hope will help:
https://community.qlik.com/t5/Qlik-Design-Blog/A-Primer-on-Set-Analysis/ba-p/1468344
https://community.qlik.com/t5/Qlik-Design-Blog/Set-Analysis-in-the-Aggr-function/ba-p/1463822
Regards,
Brett
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.
