8 juni 2022 The difference between SET and LET in Qlik Deel dit bericht Every Friday at Bitmetric we’re posting a new Qlik certification practice question to our LinkedIn company page. Last Friday we asked the following Qlik Data Architect certification practice question about the difference between the SET and LET statements in Qlik Sense: The correct answer is A: vLoadStart contains the date and time that the script started, vLoadEnd contains the value “Now()” Even without having edited a single letter in the Qlik script there are already SET statements to be found. Always included you will find the Main script page with a row of default settings all starting with SET. Now concerning last weeks question and answer we can be pretty clear: SET variablename = string LET variablename = expression By using SET Qlik will store the variable as the string provided, using LET will evaluate the string as an expression. Or to put it more simply: SET vString = 1+1; Will return vString = 1+1. LET vString = 1+1; Will return vString = 2. Returning to last week’s question: LET vLoadStart = Now(); Will return vLoadStart = the result of the expression now(), which is the current time of the system clock. SET vLoadEnd = Now(); Will return the string ‘Now()’. One of the main things to consider while using this is the end result and how to use it in the front end. Lets have a look at the following example: We would like to have a text object within the app in which the users can see when the load started and when it ended using the following expression: ‘Start Reload: ‘ & vLoadStart & CHR(10) & ‘End Reload: ‘ & vLoadEnd The end result will look as expected: However, if we change the variable vLoadEnd to use Dollar Sign expansion: ‘Start Reload: ‘ & vLoadStart & CHR(10) & ‘End Reload: ‘ & $(vLoadEnd) It will evaluate the text within the expansion, being Now(), which results in: While it looks better, it is definitely not correct! It is displaying the time at which Now() is evaluated (which is at the moment of calculating the Text Object) and not the time when LET has evaluated the expression within the script. The same goes for if we use the Dollar Sign expansion on vLoadStart. That will make $(vLoadStart) evaluate 08-06-2022 17:06:52, which returns a Null value, because it will start calculating 8 minus 6 minus 2022 and then run into trouble with the space and the colon, since they are not interpreted as correct symbols for calculations by Qlik. So it is worth remembering that using LET can already perform expressions in the script and using the Dollar Sign expansion might not give the exact results as expected at first hand. That’s it for this week. See you next Friday? More from the Bitmetric team Bitmetric Qlik Support Keep your Qlik environment running smoothly with proactive support that prevents issues before they appear. Available on flexible monthly plans. Learn more. Qlik vs Power BI Series See how Qlik and Power BI perform when theory meets reality. Three apps rebuilt, every step examined. Learn more. Qlik examentraining Script Oplossing Hoe kunnen we je ondersteunen? Barry beschikt over meer dan 20 jaar ervaring als architect, developer, trainer en auteur op het gebied van Data & Analytics. Hij is bereid om je te helpen met al je vragen. Bel ons Mail ons 1 september 2026 Qlik Answers-review: wat we leerden van tests in de praktijk We testten Qlik Answers op een echt verkoopmodel in productie om te zien hoe het omgaat met analytics in de praktijk. De resultaten waren veelbelovend, maar voor betrouwbare antwoorden moesten we zorgvuldig werken aan het logische model, mastermetingen, dimensies en de bedrijfscontext. AI Data-analyse Qlik Semantic Layer 25 augustus 2026 Je semantische laag wordt de API voor AI Semantic layers zijn niet nieuw, maar AI geeft ze een nieuwe rol. Waar ze vroeger vooral dashboards voedden, worden semantic models steeds meer de laag waarmee AI betrouwbare businesscontext krijgt. AI Data Governance Microsoft Fabric Qlik Semantic Layer TimeXtender 18 augustus 2026 Datavisualisatie aan het begin van de 20e eeuw Verken samen met ons de oorsprong van datavisualisatie aan de hand van de baanbrekende boeken van Willard C. Brinton uit het begin van de 20e eeuw. Ontdek tijdloze principes en de ontwikkeling van technieken voor visuele datapresentatie. Een aanrader voor zowel liefhebbers als professionals. Volledig toegankelijk via het Internet Archive Datageletterdheid E-book Visualisatie
1 september 2026 Qlik Answers-review: wat we leerden van tests in de praktijk We testten Qlik Answers op een echt verkoopmodel in productie om te zien hoe het omgaat met analytics in de praktijk. De resultaten waren veelbelovend, maar voor betrouwbare antwoorden moesten we zorgvuldig werken aan het logische model, mastermetingen, dimensies en de bedrijfscontext. AI Data-analyse Qlik Semantic Layer
25 augustus 2026 Je semantische laag wordt de API voor AI Semantic layers zijn niet nieuw, maar AI geeft ze een nieuwe rol. Waar ze vroeger vooral dashboards voedden, worden semantic models steeds meer de laag waarmee AI betrouwbare businesscontext krijgt. AI Data Governance Microsoft Fabric Qlik Semantic Layer TimeXtender
18 augustus 2026 Datavisualisatie aan het begin van de 20e eeuw Verken samen met ons de oorsprong van datavisualisatie aan de hand van de baanbrekende boeken van Willard C. Brinton uit het begin van de 20e eeuw. Ontdek tijdloze principes en de ontwikkeling van technieken voor visuele datapresentatie. Een aanrader voor zowel liefhebbers als professionals. Volledig toegankelijk via het Internet Archive Datageletterdheid E-book Visualisatie