This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INLINE: | |
Load * Inline | |
[ | |
ENAME|SAL | |
SCOTT|800 | |
SMITH|900 | |
KIND|600 | |
] | |
(ansi, txt, delimiter is '|', embedded labels) | |
; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
REM wblGen.bat - v 1.0.0 - 2015-10-09 | |
REM Description: | |
REM A simple batch file that automatically generates the wblfolder.wbl for your Qlik Sense visualization extension. | |
REM | |
REM Author: Nate Untiedt - Analytics8 - nuntiedt@analytics8.com | |
REM | |
REM Credit to: http://stackoverflow.com/a/8387078 | |
setlocal EnableDelayedExpansion |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function qlikNumberFromDate(d) { | |
return d.getTime() / 86400000 + 25569; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//subtract hour from timestamp when DST | |
=TimeStamp(field - frac(ConvertToLocalTime(field,'Berlin') - frac(field)) + 1/24) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This expressions gives all non-selected values | |
=aggr(only({1-$} Field), Field) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// patch ARGB() to RGB(): | |
=replace( ColorMix1( ... ) , 'ARGB(255,', 'RGB(' ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Set vDocument=C:\Projekte\QlikView\MeineApp.qvw; | |
Sheets: | |
LOAD '$(vDocument)' as DocumentName, | |
SubField(SheetId, '\', 2) as SheetID, | |
Title as SheetName | |
FROM [$(vDocument)] (XmlSimple, Table is [DocumentSummary/Sheet]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Example file 'broken.txt' with a broken line, field containing CR/LF: | |
Field1|Fiel2|Field3 | |
Abcd|efg|hijk | |
Lm|no | |
pq|vwz | |
123|456|7890 | |
*/ | |
Set vDelimiter = '|'; | |
Set vNoOfColumns = 3; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// In this case it is helpful to wrap the expression to catch NULL and empty string: | |
// works for: | |
// =if(Null(), -1, 0) | |
// =if('', -1, 0) | |
=if(<expression>, -1, 0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LOAD Div(Field, 1e10) & left(repeat('0',10), 10 - len(text(Mod(Field, 1e10)))) & Mod(Field, 1e10) as MyNum |