Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello.
I have an Aggregate function to split out Customers into bands based on a value
Your first aggr() is a calculated dimension and being applied in a chart you wouldn't need extra conditions within the expressions else just applying simple measures:
sum(Value)
count(distinct Customer)
sum(Value) / count(distinct Customer)
...
Hi, thanks for the reply.
I feel that I get what you are saying about it use within a chart but for how I am trying to display the data I do feel that I need to get the Sum'ed value for a specific band of data.
I am trying to create a Bar and Line graph combination where I band the Value as a Bar graph and then Line the Count of the Customer and they use that across multiple years.
Which would end up something like this:
The QlikView Line Graph does seem to want to recognise the banding which gives me something like this:
I appreciate that it won't be a "like for like" comparison, but my thinking is that if I can capture the value per band then I can fake the bands (rather than use the AGGR function) that are there as individual expressions and so build the graph.
Appreciate that this was not in the original question but also felt that most people did not want to read all of the above 🙂
So thanks for the suggestion but I don't feel it will work for how I want to display the data to the user.
I also get that I can have two graphs (line and bar) and overlay them and make things transparent so that it looks like one full graph, but the graphs seem to get out of line with each other quickly.
Thanks again.
To develop any logic and evaluating the data it would be better to use a table-chart because all graphical visuals have more or less limitations respectively capabilities - especially in regard to the available number of dimensions and expressions. If it worked like expected within a table-chart and not in a graphical visual it means that the visual with the applied configurations doesn't support the wanted view. Sometimes it may possible to adjust it appropriate or it makes clear that another kind of visualization would be needed.
Beside this you may need to extend the aggr() with more/other dimensions. Your current version considered only the Customer but not the Year.