Page History
...
Sv translation | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||
There are cases that you want your chart x-axis to display number of days for a particular event, rather than the calendar date.
Es gibt Fälle, in denen Sie möchten, dass Ihre Diagramm x-Achse die Anzahl der Tage für ein bestimmtes Ereignis und nicht das Kalenderdatum anzeigt. Wenn Sie beispielsweise eine Marketingkampagne vom 01.08.2013 bis 01.10.2013 durchführen, möchten Sie diese anzeigenFor example, if you are running a marketing campaign from 2013-08-01 to 2013-10-01, you want to display:
This use case is going to show you how you could make it if you only have the date in your data set. Preparing Data with Transformation scriptDieser Anwendungsfall wird Ihnen zeigen, wie Sie es schaffen können, wenn Sie nur das Datum in Ihrem Datensatz haben. Datenvorbereitung mit TransformationsskriptErstellen Sie ein neues Attribut namens Kampagnentag im Datensatz und wenden Sie das Transformationsskript wie unten gezeigt anCreate a new attribute called campaign_day in the data set and apply transformation script as seen below:
This will return the number of days in terms of the campaign starting time in the format of 00 to 62. Creating formulaFormel erstellenSetzen Sie auf Berichtsebene den Kampagnentag als Drill-Down und berechnen Sie das Kennzeichen wie unten gezeigtAt the report level, set the campaign_day as the drill down and calculate the indicator as seen below:
Here is how it looks like in the chart:
Next Steps
|