Discussion Board for collaboration related to QlikView App Development.
I want to display the row number of the array, the column "nb" is the primary key,
So I did a COUNT (nb), in the case I add the nb column to the array, the result is correct if I delete the column the tablau is incorrect
first with nb column :
the script :
RowNo() as nb,
May be use a straight table instead of table box and then you can add your 3 columns and nb as dimensions and on the presentation tab, do two things
1) uncheck 'Suppress Zero Values' and
2) Hide nb column from displaying
this is because qlikview show number of distinct records w.r.t columns.
When you add nb column in table box then it will show 4 records because it have 4 distinct rows
similarly if you remove Nomber_Ava field from table box then it will give only 1 rows in table box
A table box is a set of grouped listboxes that displays all possible combinations of listbox values. You can simulate a count of the number of values in those listboxes by using an expression like:
=count(DISTINCT %ID_CATEGORIE_CLIENT, & DESCRIPTION_CATEGORIE_CLIENT & NOMBRE_AVA)
This expression should follow all other selections, as the table box cannot be made to filter out anything (no set analysis, no expressions, no nothing) except by making selections.
Table box always shows the unique combination of the fields added to the table.... If you exclude nb (which is your unqiue identifier) you are only seeing the unique rows. Why do you not want to add nb in there?
I think you still misunderstand the way a Table Box operates. A Table Box is not a table, it's just a combination of listboxes, and listboxes show every distinct value only once !
The same happens with combinations of listboxes. Every uniqe combination is shown only once, whatever the gigantic table is that contains the base rows.