Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
cancel
Showing results for 
Search instead for 
Did you mean: 
sergio0592
Specialist III
Specialist III

Displaying cursor issue

Hi all,

I have two fields Duration1 and Duration2 associated with two cursors. I want display only rows not empty (value for Duration 1 and value for Duration2) regarding cursors selections. I don't know how to use my flag for filter rows.

See my sample in attached file.

Regards

1 Solution

Accepted Solutions
johanlindell
Partner - Creator II
Partner - Creator II

Or just add the calculated dimension:

If( Duration1>V_min_D1 and Duration1<V_max_D1 and Duration2>V_min_D2 and Duration2<V_max_D2, 1)

and "Suppress When Value Is Null" and hide it in the Presentation-tab.

// Johan

View solution in original post

13 Replies
Anonymous
Not applicable

You are using a variable in the Slider/calendar object. If you Chose the Field Option and select the corresponding fields it should solve your problem.

In your case for Duration 1 Slider select the field Duration1 under General>Data>Field and for duration 2 slider select the field Duration 2

sergio0592
Specialist III
Specialist III
Author

You're right, i made too tricky! However when i select field in the cursor, i can't choose the min and max value. How to manage this ??

value_curs.jpg

Anonymous
Not applicable

Glad that it worked

If you select the field option then min and mx will grey out.

Why would you need to give the min and max values?, Qlikview will automatically take the minimum and maximum value for that data point for example duration 1 will have minimum values 3 and 75.

Tomorrow if the maximum value is increased to 200 ,Qlikview will adjust it automatically .By this way your dashboard is scalable .

Anonymous
Not applicable

Hi Sergio,

Change your table dimension by this:

=Aggr(If(Sum(if(Duration1>V_min_D1 and Duration1<V_max_D1, Duration1))>0 and Sum(if(Duration2>V_min_D2 and Duration2<V_max_D2, Duration2))>0,

Id_Case),Id_Case)

Check suppress value when is null:

Regards!!

johanlindell
Partner - Creator II
Partner - Creator II

Or just add the calculated dimension:

If( Duration1>V_min_D1 and Duration1<V_max_D1 and Duration2>V_min_D2 and Duration2<V_max_D2, 1)

and "Suppress When Value Is Null" and hide it in the Presentation-tab.

// Johan

sergio0592
Specialist III
Specialist III
Author

Thanks Vivek, Manuel and Johan for your answers.

Anonymous
Not applicable

What happen if there are more dourations for the same case id?

johanlindell
Partner - Creator II
Partner - Creator II

Don't know. I'm guessing the duration is for a case so it is a calculated value with totals,

Anonymous
Not applicable

You have tu acumulate to prevent these cases, because you will have two or more rows, and expressions or calculated dimensions calling case id in if statement without acumulation will return null value.

Regards!