Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
eromiyasimon
Creator II
Creator II

concatenate field value with calculated value in if condition

hi all,

in if condition i want to display the else value which have to concatenate with one calculated value

Attached the QVW for your reference.

1 Solution

Accepted Solutions
dineshm030
Creator III
Creator III

Hi Eromiya,

Use the below Queries.

Header 1

(if(rank(mar)-rank(feb)=0,'(=',

if(rank(mar)-rank(feb)>=1,'(+',

if(rank(mar)-rank(feb)<=-1,'('))))

&''&

(if(rank(mar)-rank(feb)=0,'',rank(mar)-rank(feb)))

&''&

')'

Capture.PNG

View solution in original post

4 Replies
marcus_sommer

Maybe a formatting-function will be suitable - I mean something like this:

= num(0, '(+) #.##0,0;(-) #.##0,0;(=) #.##0,0', ',', '.')

Further if I look on your monthly listboxes it could be useful to transform your data-structure per The Crosstable Load.

- Marcus

Not applicable

Do u want images for addition and subtraction?

dineshm030
Creator III
Creator III

Hi Eromiya,

Use the below Queries.

Header 1

(if(rank(mar)-rank(feb)=0,'(=',

if(rank(mar)-rank(feb)>=1,'(+',

if(rank(mar)-rank(feb)<=-1,'('))))

&''&

(if(rank(mar)-rank(feb)=0,'',rank(mar)-rank(feb)))

&''&

')'

Capture.PNG

eromiyasimon
Creator II
Creator II
Author

Thank you so much dinesh,

its working perfectly