Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Priya
I have the same problem with V9 using an AGGR function that aggregates across more than one dimension, This has been reported to QlikTech but I have no response from them yet.
I have found that reducing the AGGR function to aggregate over a single dimension works, but this isn't a solution to the problem, our move to version 9 has been delayed by this whilst we decide if we need the functionality or not.
Regards,
Hi Guys,
I could be missing something, however I would usually write an aggr expression like this
aggr(sum(Sales),Region)
This would aggregate to the region level.
Try swapping your formula around
Regards,
Neil
My formula is that way round, still have a problem!
Nigel,
Please can you post your expression, just incase i can spot anything......please let me know your measure in case it is not obvious.
Regards,
Neil
Hi Neil
My expression is a rather complex one, and it is being used as a calculated dimension rather than an expression, it's used in a pivot table because we need to be able to expand/collapse the groups.
It is aggregated over two cyclic groups: XXX_CyclicGroup_LPCharts1 & XXX_CyclicGroup_LPCharts2
And here it is...........
=if(
aggr(
rank(
Sum ( _rFMV )
-
Sum ( { $ < DT_ReportDate={"$(vCompDate)"},DT_ComparisonDate={"*"} > } _rFMV )
,2
)
,XXX_CyclicGroup_LPCharts1,XXX_CyclicGroup_LPCharts2) <= YYY_LPCharts_TopBottomN
,'A Top Increase ' &
Num (
Aggr (
Rank (
Sum ( _rFMV )
-
Sum ( { $ < DT_ReportDate={"$(vCompDate)"},DT_ComparisonDate={"*"} > } _rFMV ) ,2)
,XXX_CyclicGroup_LPCharts1,XXX_CyclicGroup_LPCharts2
)
,000,
),
if(
aggr(
rank(
-Sum ( _rFMV )
+
Sum ( { $ < DT_ReportDate={"$(vCompDate)"},DT_ComparisonDate={"*"} > } _rFMV )
,2
)
,XXX_CyclicGroup_LPCharts1,XXX_CyclicGroup_LPCharts2) <= YYY_LPCharts_TopBottomN
,'C Top Decrease ' &
Num(
YYY_LPCharts_TopBottomN
+ 1
- Aggr (
Rank (
- Sum ( _rFMV )
+
Sum ( { $ < DT_ReportDate={"$(vCompDate)"},DT_ComparisonDate={"*"} > } _rFMV )
,2)
,XXX_CyclicGroup_LPCharts1,XXX_CyclicGroup_LPCharts2)
,000),
'B Other'
))
The concept is very simple, I want to identify Top5, Bottom5 and Others.
I'm sure there must be an easier way to achieve this, but I'll be damned if I can think of it.
Hi Nigel,
In v9 they have changed the syntax of the set analysis.
DT_ComparisonDate={"*"} needs to be changed to DT_ComparisonDate= the {"*"} is no longer needed.
The next thing to check is the $ sign expansion please check this DT_ReportDate={"$(vCompDate)"} by taking the label off your expression is it presenting the right data when hovering over the expression, I've had differing experience of this, please can you try this
DT_ReportDate={='$(vCompDate)'} or this DT_ReportDate={'=$(vCompDate)'}
Try and get a single if statement working.
Also be aware of new set analysis functionality (indirect set analysis)
The Qlikview Reference manual in v9 has been beefed up on set analysis.
Regards,
Neil
Ni Neil
Removing the {"*"} makes no difference.
$ Sign expansion is working fine.
I can't think of a way to turn this into a single IF statement.
Not sure if indirect set analysis will work but I'll take a look.
One more clue on this, specific to my formula............
Version 9 has a much improved syntax highlighter in the expression window, and it highlights both of my GROUP names as problems (i.e. they are in Red and it says bad field names at the top).
I think we are getting there,
put the group names in square brackets or " "
regards,
Neil
Hi Neil
The syntax checking is now working fine (there was also a comma out of place) but this table still won't calculate in V9 as it runs out of memory, it was fine in V8.5 so I do think something has changed in V9 that causes this.
Cheers