Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision |
en:create:functions:put [13.01.2015 15:30] – [Example: Calculations] alexander.ritter | en:create:functions:put [13.01.2015 15:38] – [Example: Advanced Filter] alexander.ritter |
---|
===== Example: Advanced Filter ===== | ===== Example: Advanced Filter ===== |
| |
The following example is taken from a questionnaire that shows different questions at several points for new customers and existing customers. A new customer signalizes that he is yet to have bought anything (answer 1 in selection question "KD01") __and__ that the current order is yet to be delivered (answer 1 to 3 in selection question "KD02"). | The following example is taken from a questionnaire that shows different questions at several points for new customers and existing customers. A new customer distinguishes himself by showing that he is yet to have bought anything (answer 1 in selection question "KD01") __and__ that the current order has not yet been delivered (answer 1 to 3 in selection question "KD02"). |
| |
Of course, the [[:en:create:filters|filter]] could be repeated on each page with different questions -- on the one hand, however, this is unnecessarily complicated, and, on the other hand, the split between new and existing customers is needed in the analysis anyway. Therefore, the difference should be saved in the internal variable "KD03_01". | Of course, the [[:en:create:filters|filter]] could be repeated on each page with different questions -- on the one hand, however, this is unnecessarily complicated, and, on the other hand, the distinction between new and existing customers is needed in the analysis anyway. Therefore, the this should be saved in the internal variable "KD03_01". |
| |
<code php> | <code php> |
</code> | </code> |
| |
The saved code can be used straightforwardly for filters on later pages | The saved code can be used on later pages for filters with no hassle. |
| |
<code php> | <code php> |