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

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
Nagaraju_KCS
Specialist II
Specialist II

Need Help??

Hi Community,

How to calculate YTD in fiscal year ...

i am using this expression, but it's not working..

sum({<[Date] = {">=$(=YearStart(max([Date]))) <=$(=max([Date]))"},Year =, Month = >} Amount)

please anyone can help me out..

4 Replies
PrashantSangle

Hi,

Try this,

sum({<[Date] = {">=$(=Date(YearStart(max([Date])))) <=$(=Date(max([Date])))"},Year =, Month = >} Amount)

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
senpradip007
Specialist III
Specialist III

Try like:

sum({<[Date] = {">=$(=YearStart(max([Date]),0,4)) <=$(=max([Date]))"},Year =, Month = >} Amount)

PrashantSangle

Hi,

Considering your Fiscal Year started from April

then use AddMonths() in your expression like,

sum({<[Date] = {">=$(=Date(AddMonths(YearStart(max([Date])),4))) <=$(=Date(max([Date])))"},Year =, Month = >} Amount)

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Not applicable

Expression seems to be correct. you can share your qvw to have a check.