Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
Purushothaman
Partner - Creator III
Partner - Creator III

YTD and MTD Function Not working

Hi Experts,

Attached is my QVW. I am creating Period comparison,  I have created variables to calculate  YTD and MTD but still  not working.  Please help me to resolve it.

Purushothaman_0-1625478268801.png

Thank you,

 

 

2 Solutions

Accepted Solutions
MayilVahanan

Hi Try like attached file.

Changes: 

MayilVahanan_1-1625479334765.png

O/P:

MayilVahanan_0-1625479306736.png

 

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

MayilVahanan

Hi

For me, its working fine. Might be, QV version different. Instead of single quotes in order date, can you try with double quotes like below and change the variable with date format

MayilVahanan_0-1625481156574.png

MayilVahanan_1-1625481220194.png

 

 

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

4 Replies
MayilVahanan

Hi Try like attached file.

Changes: 

MayilVahanan_1-1625479334765.png

O/P:

MayilVahanan_0-1625479306736.png

 

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Purushothaman
Partner - Creator III
Partner - Creator III
Author

Hi @MayilVahanan,

Thanks for your quick help. I have downloaded your edited superstoremaster QVW, I saw only changes made in vMaxMonth but I cant see any values like yours. Below is my screenshot image. 

Purushothaman_0-1625480423031.png

Can you please help me to identify the problem.

Thank you

 

 

 

 

MayilVahanan

Hi

For me, its working fine. Might be, QV version different. Instead of single quotes in order date, can you try with double quotes like below and change the variable with date format

MayilVahanan_0-1625481156574.png

MayilVahanan_1-1625481220194.png

 

 

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Purushothaman
Partner - Creator III
Partner - Creator III
Author

@MayilVahanan Awesome. Thank you very much for your great help.