Hi all,
Currently I have a problem that i have not found the solution till now. Please help me.
I create a query with the dimensions:(material ID, title, provider, process state description, display runtime)
Query filter: i just get those material IDs which their process state descriptions are "completed". for instance, the following is the data i got:
Material ID | Title | Provider | process state description | Display runtime (minute) | Flag to classify |
M001 | A | ABC | completed | 2 | |
M002 | B | HFN | completed | 8 | |
M003 | A | HVN | completed | 5 | |
M004 | C | ABC | completed | 11 |
Those titles that i got will be classified into 2 groups: "clip" or "others". Clip and others are exclusive.
For clips: titles which their display runtime are less than or equal to 10 (minutes) and their providers are not in list ("ABC";"DEF";"GHF")
For others: after removing all titles which belongs to "Clip", we have titles which belongs to "others".
For a title: it is considered for clips firsly. If it is not a clip, then it is considered if it is a others. (priority)
I create a flag like above (flag to classify variable) to classify each title.
as data returned from the above, firstly title A is classified into "others" because its display runtime <= 10 but its provider is "ABC". Secondly, (the 3rd record) title A is also classified into "Clips". It makes no sense.
A should belongs to Clips only.
For title A, in the first record, i want Flag variable is Blank; in the 3rd record, flag variable is "Clips"
How can i achieve this? Please help me!
Thanks advance!