Search code examples
calculated-columnsqlikview

Qlikview: How do I limit chart (straight table) lines to calculated values?


I have a problematic table, which is interconnected and goes out of memory often, but I've limited it to show 50 items, but now want to limit it to show only lines that one column calculated. The calculation - one price minus another one. I need to limit the lines so that the % or the value is less than 0 (meaning everything with -% or -<0 is acceptable). Using a calculated dimension does not let me do an if function to accomplish this. The deduction does not work for some reason.

Any help?


Solution

  • I just edited the formula to "=if(dimension='-' or dimension='0', null(), dimension)". So the kicker was actually setting this all to "null()" so the "Suppress When Value Is Null" recognizes things to null.

    This actually solves my problem in a different way, however the goal is the same. This skips the values where a calculation is impossible due to lack from one source.

    [UPDATE Jun-3rd-2017]: I figured out exactly what I needed. I just made the calculation on the script side and now a calculated dimension is actually restricting all of the values by the calculated dimension as was intended.