Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

set analysis

Hi,

I am using the function -

sum( {$<MonthName = {May}, system= {Y,X}>} [QUANT] )/1000

But what I realy want is the month not to be May, but to be the current month.

How should I checged the syntex of the function?

Thanks!

1 Solution

Accepted Solutions
jonathandienst
Partner - Champion III
Partner - Champion III

Perhaps

sum( {$<MonthName = {"$(=Month(Today()))"}, system = {Y,X}>} [QUANT]) / 1000

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein

View solution in original post

4 Replies
datanibbler
Champion
Champion

Hi,

to replace May with the current month, you can use an expression within your set_expression.

The syntax is >> {"$(=Month(Today()))"} <<

<=> Check that in a textbox on the GUI first to make sure that Month(Today()) really does return the name of the month and not just a numeric value.

HTH

jonathandienst
Partner - Champion III
Partner - Champion III

Perhaps

sum( {$<MonthName = {"$(=Month(Today()))"}, system = {Y,X}>} [QUANT]) / 1000

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
jonathandienst
Partner - Champion III
Partner - Champion III

Month(Today())) will return a dual with text of the month name and numeric value of the month number.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Anonymous
Not applicable
Author

thank you

It worked!