Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
inoruoya
Partner - Contributor III
Partner - Contributor III

Can i use P() or E() with aggr()

Dear,

i need to use this expression on pivot table and have on dimension that "Year"

so possible that expression return on chart is all of account possible.

but i need to return possible account on that year

Expression ::

sum({<

     Month={$(=month(max(DateKey)))}

     ,Account= P({<Month={$(=month(max(DateKey)))},C={X},D={X}>} Account)

     >} AmountDMBTR_BS)

remark : I have data in as of month (Accum as of month)

thanks,

1 Solution

Accepted Solutions
tresesco
MVP
MVP

If you have Year as dimension and you want all possible accounts individually for years, set analysis might not work there, because set analysis execution works once on entire chart and not dimension-wise. You can perhaps try 'Show All Values' in dimension tab, if that works.

View solution in original post

3 Replies
micheledenardi
Specialist II
Specialist II

Hi Anya,

apply these changes and then let me know:

change: C={X},D={X} to C={'X'},D={'X'}

change: {$(=month(max(DateKey)))},C={'X'},D={'X'}>} to {"$(=month(max(DateKey)))"},C={'X'},D={'X'}>}


If these changes doesn't work we need some example data.

Michele De Nardi
If a post helps to resolve your issue, please accept it as a Solution.
tresesco
MVP
MVP

If you have Year as dimension and you want all possible accounts individually for years, set analysis might not work there, because set analysis execution works once on entire chart and not dimension-wise. You can perhaps try 'Show All Values' in dimension tab, if that works.

inoruoya
Partner - Contributor III
Partner - Contributor III
Author

thanks,