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: 
Not applicable

Limit on Expression

I have table with dimensions DATE and Company. Expressions are: TOTAL LOSS and CHANGE.

At the moment all the data is being displayed but I only need to display rows where CHANGE is not < 50%. This way I should only have rows where data's missing or CHANGE is over 50% left.

Any ideas how to do it?

Labels (1)
1 Solution

Accepted Solutions
Not applicable
Author

Updated the file, I only need to display value where NullCheck = 1.

Would it be possible to use calculated dimension to solve this?

if (

aggr(sum(LOSS)-above(sum(LOSS))/above(sum(LOSS)) <= -0.5,MEMBER_NAME) , MEMBER_NAME,0)

This doesn't display the needed results, should I be using AGGR()?

Just added checks for all the dimensions and seemed to work this time.

View solution in original post

5 Replies
Anonymous
Not applicable
Author

You can restrict the dimenion with the definition of CHANGE expression < 50%.

E.g. Create a calculated dimenion with the name Company and IF(CHANGE_formula <50%, Company, '').

So only values of the Company dimension that satisfies CHANGE <50% will be displayed!

Regards

MultiView

Not applicable
Author

I tried this and get Error in calculated dimension message.

Also, I need values that are NOT < 50% otherwise missing values would be excluded. My goal is to display all the missing values and the ones that are over 50%

Anonymous
Not applicable
Author

Could you upload the app with sample data?

Regards

MultiView

Not applicable
Author

uploaded a sample app with some sample data in the main question thanks

I tried using aggr() with an if statement and sum() but still nothing

Not applicable
Author

Updated the file, I only need to display value where NullCheck = 1.

Would it be possible to use calculated dimension to solve this?

if (

aggr(sum(LOSS)-above(sum(LOSS))/above(sum(LOSS)) <= -0.5,MEMBER_NAME) , MEMBER_NAME,0)

This doesn't display the needed results, should I be using AGGR()?

Just added checks for all the dimensions and seemed to work this time.