Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Translate Crystal report code to Qlikview code

Hello,

Got a Crystal report and want to use Qlikview instead of it. Below the code. Unfortunately I cannot paste it directly [:(]

Does anybode know how to translate it into Qlikview language?

If {table1.pr_type} = 'Days'
Then {table2.Production} - {table2.nonTA}
Else (If {table1.pr_type} = 'Halfdays' Then {table2.Production} - {table2.Correction} Else {table2.Production}/ 60)

Richard

1 Reply
vupen
Partner - Creator
Partner - Creator

I understand the piece of code you want to translate is inside an expression. You can use the syntax: If(condition,expression,else_expression). When translated, your code looks as below:


If(table1.pr_type = 'Days',table2.Production - table2.nonTA,If(table1.pr_type = 'Halfdays',table2.Production - table2.Correction,table2.Production/ 60))