Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2895

Using expression in reports (Columns)

$
0
0

All,

 

From what I gather I should be able to use expressions within Reports for Column, this to be able to update/modify the respective information.

 

So I create my report using SQL, and then on the Columns I figure I need to use "Raw" as the format. Then under Value I enter the expression.

 

My SQL is:

     SELECT Name, Open from Queue

 

Under Columns I have:

 

     Name                         Column Format           Value

 

     Queue.Name               Formatted                    Queue.Name

     Queue.Open               Raw                              =Logic.if(Queue.Open === 't', 'Open', 'Closed')

 

However, with this it fails stating it does not know the identifier Queue.Open. Hence my question is, how can I thus reference the actual column in there? Would seem to me that it should work. For example, if I use the following for the value instead:

          =Logic.if('t' === 't', 'Open', 'Closed')

then the resulting report shows Open for each row in that column. If I use:

                    =Logic.if('a' === 't', 'Open', 'Closed')

then the resulting report shows Closed for each row in that column. Hence using the expression is support, just now need to know how I can use the value of a column instead.

 

Appreciate your help.


Viewing all articles
Browse latest Browse all 2895

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>