Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Save $600 on Qlik Connect registration! Sign up by Dec. 6 to get an extra $100 off with code CYBERSAVE: REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

using formula in pivot table

HI EXPERTS,

I HAVE THE FOLLOWING FORMULA FOR A PARTICULAR FIELD IN A PIVOT TABLE.

((Sum({< [CalendarDate] = {'>=$(=Date(vThisMonthStart))<=$(=Date(vMaxSalesDate))'} >} SPAMT)

/

((TGT_YEAR/12)*SRDAYS))

/

(Sum({<CalendarMonthYear={'$(vReview1MonthYear)'}>}SRDAYS), BRNO))

but if i use this in the table, i m getting null values.

Please help me in this regard

5 Replies
MK_QSL
MVP
MVP

((Sum({< CalendarMonthYear = , [CalendarDate] = {'>=$(=Date(vThisMonthStart))<=$(=Date(vMaxSalesDate))'} >} SPAMT)

/

((TGT_YEAR/12)*SRDAYS))

/

(Sum({<CalendarDate = , CalendarMonthYear={'$(vReview1MonthYear)'}>}SRDAYS), BRNO))

Not applicable
Author

hi Manish,

thanks for replying.

i tried this but its not working.

also its showing error near BRNO (next to comma)

jonathandienst
Partner - Champion III
Partner - Champion III

I expect your problem is in the TGT_YEAR and SRDAYS. These fields are not in an aggregation function and probably have more than one possible value, so they evaluate as NULL.

HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
PrashantSangle

Hi,

(Sum({<CalendarMonthYear={'$(vReview1MonthYear)'}>}SRDAYS), BRNO))

what is logic behind writing , BRNO))

after Sum()
are you using any aggr()

Try writing each expression in 3 different text object.

Check which value giving you null.

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
Author

hi,

SRDAYS will vary for different branches.

i tried using aggr too.

but its not working