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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
cbaqir
Specialist II
Specialist II

Value Disappears?

I have a table that contains a Dimension called Portfolio and an Expression called ETC.

ETC: round(Sum({$<FISCAL_YEAR=,APP_DATE={">$(=Max({<ACT_AMT={'>0'}>}APP_DATE))"}, FCST_DATE = {"$(=date(max(FCST_DATE), 'MM-DD-YYYY'))"}>}FCST_AMT), 1000)/1000 

The idea is to either select one Portfolio to focus on or dill down into the Projects that roll up to the Portfolio.

In one example, Program-T should a value of 70 for the ETC expression when no filters are selected. However, clicking on Program-T in the Dimension field or from a list box causes the 70 to disappear.

In the project view, I can see the row with the 70 for ETC when it's not filtered but it disappears when the Program is selected.

Any thoughts?

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

What if you try this:

Round(Sum({$<FISCAL_YEAR=,APP_DATE={">$(=Max({<ACT_AMT={'>0'}, Program>}APP_DATE))"}, FCST_DATE = {"$(=date(max({<Program>}FCST_DATE), 'MM-DD-YYYY'))"}>}FCST_AMT), 1000)/1000

View solution in original post

5 Replies
sunny_talwar
MVP
MVP

What if you try this:

Round(Sum({$<FISCAL_YEAR=,APP_DATE={">$(=Max({<ACT_AMT={'>0'}, Program>}APP_DATE))"}, FCST_DATE = {"$(=date(max({<Program>}FCST_DATE), 'MM-DD-YYYY'))"}>}FCST_AMT), 1000)/1000

cbaqir
Specialist II
Specialist II
Author

Thanks, my friend. Can you please explain to me the thought behind that? It seems to work - just testing it.

sunny_talwar
MVP
MVP

I think the issue is that when you select a program, the Max(APP_DATE) and/or Max(FCST_DATE) change with them and then one of those goes to 0 and you don't see anything. When you add {<Program>} you are telling the two Maxs to ignore any selection made in Program field.

cbaqir
Specialist II
Specialist II
Author

Thank you! I learn new stuff every day.

sunny_talwar
MVP
MVP

I am glad you do because I learn new stuff everyday too