Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello
How do i get an expression to calculate the same result as the column 'vs France'
sales (kE) | vs France | |
France | 200 | 100,00% |
uk | 300 | 150,00% |
belgiuem | 100 | 50,00% |
Tahnks in advance for your help
Try this:
Table:
LOAD * Inline [
Country, Sales
France, 200
UK, 300
Belgium, 100
];
Join (Table)
LOAD Sales as FranceSales
Resident Table
Where Country = 'France';
FinalTable:
LOAD Country,
Sales,
Num(Sales/FranceSales, '#.00%') as [vs France]
Resident Table;
DROP Table Table;
And here is the front-end solution in QlikSense:
In the expression (vs France), I typed the below:
I am also attaching qvf.
Hope this helps.
sum( [sales (kE) ] / sum( { < country = { 'France' } > } [sales (kE)]