Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Expression in variable not working

Hi all

I have a closing stock expression, save that it into variable and  use that variable into chart but it showing same value for all the dimension without any selection when i select a particular dimension it is changing..

Expression

=sum({<PostingMonth=,PostingYear=,Period=,PostingDate={"<=$(vInvDate)"}>}Quantity)

In chart i use variable like this

$(vClosingStock)

Here i am attaching a screen shot please provide any suggestion to me

Thanks in advance

Sirajahamed S

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi sundarakumar

It is working thanks

when i remove '=' in the expression overview it is working now..

Thanks

View solution in original post

9 Replies
sivarajs
Specialist II
Specialist II

try aggr($(vClosingStock),PostingYear) or aggr($(vClosingStock),BudgetCenter)

sundarakumar
Specialist II
Specialist II

Hi Siraj,

Please remove the "=" sign in the variable overview where u have created the variable..

Then it will work fine.

As u have put = in the variable overview, it is calculating without considering dimension in the chart,

it will work fine if u remove it...

Hope it helps.

-Sundar

sujeetsingh
Master III
Master III

Use aggr()

Anonymous
Not applicable
Author

Hi Sivaraj seeman

thanks for your reply..

that expression  also not working it showing the same...

Anonymous
Not applicable
Author

Hi sundarakumar

It is working thanks

when i remove '=' in the expression overview it is working now..

Thanks

Anonymous
Not applicable
Author

Hi,

Thanks lot

MK_QSL
MVP
MVP

can you post your sample apps?

sundarakumar
Specialist II
Specialist II

Hi Siraj,

Please close the thread, you can do it be marking the correct answer.

Thanks.

-Sundar

er_mohit
Master II
Master II

Make sure your Posting Date and the variable date have same forat try to use num(PostingDate) in backend and use it

here in variable vInvDate also date in number format

try this way

=sum({<PostingMonth=,PostingYear=,Period=,numPostingDate={'<=$(=vInvDate)'}>}Quantity)

in chart you write ='$(=vClosingStock)'

hope it helps