Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
We will be entering CR no's in one Cell of excell sheet with Comma Separation. My requirement is to count total no of such entries and count unique instances of the CR in that given list
For example … I will have any entry as 162345,172387,185423, 162345.. In this case total count will be 4 and 3 are Unique. Also we may have sum up this across 3 Cells also
Can QlikView Support this request..
Thanks,
Soma
Hi Soma,
In QlikView you could create an expression similar to
and this will give you a distinct count of 3 as per your example.COUNT(DISTINCT [CR No])
I hope this is of some help.
Rod
Hi Soma,
In QlikView you could create an expression similar to
and this will give you a distinct count of 3 as per your example.COUNT(DISTINCT [CR No])
I hope this is of some help.
Rod
Hi Rod,
Thanks for QUick response. Does this take multiple values from single cell ?
Thanks,
Soma
Hi Soma,
If you have multiple CR No's in each cell then QlikView will treat each the contents of each cell as an element within that field. If you need to identify each CR No seperately then I think you will need to split the contents of the cell apart.
In the script that loads the data into QlikView you may be able to use the SUBFIELD command to split the cells but to be honest I have not used this function for such a process before.
I hope this is of some help.
Rod
Hi Rod,
Thanks . I will try out and update the forum
Thanks,
Soma
Hi,
There is a function in scripting called 'SubField' which can be used to break a string which has delimited text.
Simply use this code to create a new field and then apply count on this field to get desired result:
T:
Load
SubField(CR_NO,',') as CR
From xyz;