Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Fiscal Year Comparison

Hi

i have a field in my table with the name BE_Fiscal_Year and some amount associated with every Fiscal  Year,

I want to sum all the amount for the current fiscal year ( i have calculated current fiscal year in a variable by the formula YearName(Today(),0,7) , and it has correct value in it),

I want to write a simple expression which sum the values of all the amounts for the value in the variable

sum({<BE_Fiscal_Year={"$(Current_Fiscal_Year)"}>}  amount)

Thanks & Regards

Labels (1)
4 Replies
Not applicable
Author

Hi,

Try This One

sum({<BE_Fiscal_Year=, BE_Fiscal_Year={"$(Current_Fiscal_Year)"}>}  amount)

Not applicable
Author

Hi,

try this

=sum( { <[BE_Fiscal_Year]={$(Current_Fiscal_Year)} >} amount)

remember that BE-Fiscal_Year shoud be in number format not text.

regards

Apurva

jagan
Partner - Champion III
Partner - Champion III

Hi,

Try this

=sum({<BE_Fiscal_Year={'$(=Current_Fiscal_Year)'}>}  amount)

Check wheter BE_Fiscal_Year and Current_Fiscal_Year format are same.

Regards,

Jagan.

Not applicable
Author

thank you everyone, i got the solution

sum({<BE_Fiscal_Year={"=$(Current_Fiscal_Year)"}>}  amount)