Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
renuka_sasikumar
Creator III
Creator III

Accumulated Values in Pivot Table

Hi,

I have MonthName as Dimension & expression are Budget, MTD, YTD, PYTD

For MTD (=Sum(Sales)) I m getting correct value, but when for YTD i have created variables to show data, but its not working.

Its giving the same MTD values.

I want to show Accumulated Values in Pivot Table & Range Sum is also not working.

Can anyone please help me with this.

Thanks & Regards,

Renuka S

4 Replies
amit_saini
Master III
Master III

Ranuka ,

Please share your qvw.

Thanks,
AS

PrashantSangle

Hi,

Try like

MTD =Sum({<DateField={">=$(=Date(Monthstart(Today())))"}>}Sales)

YTD = Sum({<Datefield={">=$(=Date(YearStart(Today())))"}>}Sales)

PYYTD= Sum({<DateField={">=$(=Date(AddMonths(YearStart(Today()),-12)))<=$(=Date(AddMonths(Today(),-12)))"}>}Sales)

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

Can you attach the sample file.

so that we can help you in better way.

Sub2u