Discussion board where members can get started with Qlik Sense.
I am new and not sure if this is the right section.
First of all I have some variables. For example households, income, etc.
For each of this variables i need a score based on a model. I already have the following in MS Excel 2010:
Now i need this in Qlik Sense.
What I tried is the formula: ((((Sum([Households])-Avg([Households]))/stdev([Households]))/3)*100)+100
But it did not work.
I hope i could make the problem clear.
I appreciate your help. Thank you!
I am not sure how this works, but because nobody answered my question i will just try to pick this right up to the top. Thank you!
'it did not work' is not a good issue description. Could you be more specific?
And it would really help if you could post some sample lines of data.
I can only guess that you may want something like
thank you for the answer.
I actually do not know why it does not work.
If I try the formula that i posted ((((Sum([Households])-Avg([Households]))/stdev([Households]))/3)*100)+100))) the columns are empty.
I copied some lines from the excel-sheet i exported from qlik.
For each of these columns i need the model.
Have you tried with the expressions I posted above and used in my sample QVW?
I think you need to use the TOTAL qualifier on some aggregations (e.g. when you want to calculate the average across all areas).
If you need to calculate an average of aggregated (i.e. sum'med) values, you need to use advanced aggregation (the aggr() function).
Could you upload some lines of your raw data for Households, maybe only for some areas, and add your requested outcome?
I do not know how to use the qvw-file, so I am still searching for that.
I will try the total qualifier. Thank you!
Here is a sample: The Households raw data and the steps i did in Excel. I hope this is what you mean or need.
To do this in script:
LOAD * Inline
LOAD Avg(Value) As Avg,
Stdev(Value) As Stdev
(Ratio * 100 / 3) + 100 As Score;
Difference / Stdev As Ratio;
Value - Avg As Difference
DROP Table T1;
To do in the front end, create a straight table with Postal as dimension, and then the following expressions:
=Avg(TOTAL Aggr(Sum(Value), Postal))
=Stdev(TOTAL Aggr(Sum(Value), Postal))
=Sum(Value) - Avg(TOTAL Aggr(Sum(Value), Postal))
=(Sum(Value) - Avg(TOTAL Aggr(Sum(Value), Postal))) / Stdev(TOTAL Aggr(Sum(Value), Postal))
=(((Sum(Value) - Avg(TOTAL Aggr(Sum(Value), Postal))) / Stdev(TOTAL Aggr(Sum(Value), Postal))) * 100/3) + 100
I am really not good with these things, i do not know if you mean like this:
"Anzahl Haushalte" = Households (Value)
"PLZ" = Postal
The notification says: Garbage after expression "="