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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Qlikview Object Error

Hi,

I have two objects on my sheet displaying data.  a Text box to display the number of Listed items, and a straight table displaying the items.

The formula for the straight table is as follows :

=if(DATE1>DATE2,[TU Number])

The text object displays:

=count(DISTINCT(if(DATE1>DATE2,[TU Number])))

However the number of items displayed and the count of the textbox does not relate.  I have tried using a listbox to display the same information as the straight table and it does end up listing the same information as displayed in the textbox, however i need to add an expression showcasing a different column so i cannot use a listbox.

It seems like a problem with the object itself?  Can anyone please assist in solving this problem?

Thanks in advance.

Capture.PNG

3 Replies
vikasmahajan

try this 

= sum(Aggr(If(Count([TU Number])>1 and Date1>Date2,1,0),Date1,Date2))

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
Anonymous
Not applicable
Author

Formula works perfectly.  The listbox however is still not displaying the correct information.

nilapril2010
Contributor III
Contributor III

In textbox, you are counting distinct values. Listbox displays distinct values only. So TextBox and ListBox result will tally. But your table expression is without Distinct keyword. So it may not tally with TextBox object.

Nilanjan