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: 
Anonymous
Not applicable

Straight table Expression (Image + Text)

hi Team,

I have a straight table of Month and ABC as dimension and Fee as Expression.

   

MonthabcFee
Jul 2018TQ1,315
Jun 2018TQ1,516
May 2018TQ1,485
Apr 2018TQ1,219
Mar 2018TQ1,277
Feb 2018TQ

1,368

I want the expression to have the value + image saving up or down direction compared to previous month like below:

   

Proposed Table
Monthabc
Fee
Jul 2018TQ1,314
Jun 2018TQ1,516
May 2018TQ1,484
Apr 2018TQ1,218
Mar 2018TQ1,276
Feb 2018TQ1,367

please help

thanks

Sukhwant

2 Replies
johnca
Specialist
Specialist

Your images don't show but maybe something like the attached?

Essentially, use Month and abc as dimensions and then these expressions;

Expression 1:

Sum(Fee)

Expression 2: Set Representation to Image

If(Sum(Fee) > Above(Sum(Fee)),'qmem://<bundled>/BuiltIn/arrow_n_g.png',

     If(Sum(Fee) < Above(Sum(Fee)),'qmem://<bundled>/BuiltIn/arrow_s_r.png',

     'qmem://<bundled>/BuiltIn/arrow_e.png'

     ))

For lack of a better sideways arrow showing no change I used the gray right arrow. You can use anything else or omit it.

The sort order seems to have a dramatic effect if you try to sort on the Month. I had to sort on abc in order for it to work.

Thread 311097.png

HTH,

John

trdandamudi
Master II
Master II

One more option where you can use the arrow in the same cell as the value is as below:

Dimensions:

     Month

     abc

Expression:

                         =Sum(Fee) &' ' &If(Sum(Fee) > Above(Sum(Fee)),chr(8593),
                               
If(Sum(Fee) < Above(Sum(Fee)),chr(8595),Chr(8596)
                            ))