Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
A dashboard or cockpit should clearly communicate key information to users. It should be kept simple and therefore and effective design is crucial. Besides showing the current situation, it should also show comparisons and trends.
Implementing simple reusable KPI boxes is one way to show different KPI's on a dashboard or cockpit. These would look like:
We can clearly see the current situation, with some additional informations about previous year or comparison to the budget. All this can done by using textboxes and some codes.
Within the QlikView application put the code below in the script editor:
SET PerformanceSymbol = if($1 < $2, chr(9660),if($1 > $2, chr(9650), chr(9654)));
SET PerformanceColor = if($1 < $2, red(),if($1 > $2, green(), black()));
In this example I have used Sales and Budget values. I have created two textboxes showing once the Sales and once the Budget:
='Sales: '&num( (sum(Sales)),'###'&ThousandSep&'##0')
='Prev. Year: '&num( (sum(Budget)),'###'&ThousandSep&'##0')
Now, I have created a third one, including the difference:
=num( (sum(Sales)-sum(Budget))/ sum(Budget) , '#'&ThousandSep&'###'&DecimalSep&'## %') & $(PerformanceSymbol($(=sum(Sales)), $(=sum(Budget))))
In the Fonts register, for color I put this expression for calculating the color:$(PerformanceColor($(=sum(Sales)), $(=sum(Budget))))
And the result shows me the difference in percent and because my Sales are higher then my budget, the colors appear in green. Arranging them all, I have then a KPI box, which I also can reuse to compare with previous year or for other KPIs.
Regards,
Oktay
www.qlik-blog.com
Dear Oktay,
A nice article. But I guess you posted at wrong place.
Instead of creating a post, you can create this as a document.
Regards,
Kaushik Solanki
You're right. I have created a new document.
Update: I could not create a document within this group. So, I will keep it here until I am able to.
Thanks.