Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Logical help

Hi all,

Can any one help me in understanding this logic:

"LET vZahlenformat_EN = chr(39) & '#,##0.' & chr(39) & '& Repeat(' & chr(39) & '#' & chr(39) & ', $(vDezimalstellen))' "

1 Reply
alexandros17
Partner - Champion III
Partner - Champion III

LET vZahlenformat_EN = chr(39) & '#,##0.' & chr(39) & '& Repeat(' & chr(39) & '#' & chr(39) & ', $(vDezimalstellen))' "

Is formatting decimal part of a number setting the number of decimal digits:

chr(39) is the value for the character '

the instruction Repeat, repeats a symbol more times.

so if you replace chr(39) with ' and remove the existings characters ' the string becomes:

'#,##0.' & Repeat('#',$(vDezimalstellen))

that is a concatenate (& symbol) between #,##0. and # repeated vDezimalstellen times