Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Jamal
Contributor III
Contributor III

variables

Hi  friends,

I have this variable in the script : LET vCurrentYear = num(year(today()));

and this variable in variable overview : =If(getpossiblecount ([year])=1, [year], max([year])).

 

when i reload the document, this function [If(getpossiblecount ([year])=1, [year], max([year]))] is gone .

 

Could  you please help me.

2 Solutions

Accepted Solutions
Somasundaram
Creator III
Creator III

Hi,

 

Hope you don;t have separate column name as 'Year'. 

you are calculating year from today(). Use as a separate column for getpossiblecount() function.

 


-Somasundaram

If this resolves your Query please like and accept this as an answer.

View solution in original post

anushree1
Specialist II
Specialist II

Thats because Script Variable definition is overwriting the Variable definition in the Variable Overview section,please rename the variable in one of the sections and check

View solution in original post

3 Replies
Somasundaram
Creator III
Creator III

Hi,

 

Hope you don;t have separate column name as 'Year'. 

you are calculating year from today(). Use as a separate column for getpossiblecount() function.

 


-Somasundaram

If this resolves your Query please like and accept this as an answer.
anushree1
Specialist II
Specialist II

Thats because Script Variable definition is overwriting the Variable definition in the Variable Overview section,please rename the variable in one of the sections and check

Jamal
Contributor III
Contributor III
Author

Thank you very much