If you need to run a report for 'Today' or 'Yesterday' without manually entering the date, you can create a Query Prompt using Objects from the Universe Dimensions folder. These Objects can be found in the Universe Dimensions folder in most standard Universes. Click here for a full list.
Using these Objects can be helpful in scheduled reports, when you need to run for 'Today' or 'Yesterday', but cannot manually enter the date.
Getting Universe Dimensions When Using a Custom Universe
If you are using a custom Universe that does not contain Universe Dimensions, you can set up a re-Query to pull these Objects into your date Prompt.
Here is an example of what that could look like:
Step 1 – Add a Query to your report that uses a Standard Universe with the "Universe Dimensions" folder. This will be your Pre-Query.
In this example, Standard TouchPoint Universe NEW is being used. You will only need to pull the date Objects you want to utilize into the Result Object section. In this example, we're using 'Today' and 'Yesterday'.
Step 2 – Once you have added the new Query, select "Close" > "Apply Changes" and Close. Save your report.
Step 3 – Re-open the Query Panel. Go to the Query using the custom Universe (Main Query). You can now use the Objects from the Pre-Query in your Main Query's Filters.
This example is set up like a 'Between' statement would be; however, you cannot use a 'Between' statement when doing a re-Query. Therefore, we've set it up to be Greater than or Equal to 'Yesterday' and Less than or Equal to 'Today'.
Note: When selecting "Result from another Query", you can choose (Any) or (All). They will give you the same options.
You will see a window open like this once you've selected "Result from another Query (Any)/(All)".
Step 4 – Select the date Objects you want to use and click "OK".
Now you can run scheduled reports for 'Today' or 'Yesterday', etc. without having to manually enter the date.
If you do not want to use a "Between" statement, you can simply set the Date Object "Equal To" the Universe Dimension from the Pre-Query.
If you want to run the report for "last month", your Query would look similar to this:
Similarly, for last year, you would want to use 'Last Year Start' and 'Last Year End'.
If you are currently using a Standard Universe that contains Universe Dimensions, you can simply set the Date Object you are using "Equal to" an Object from the Universe Dimensions Folder, as seen in Step 3. There will be no need for a re-Query. You will have the option to choose "Object from this query".
From here, you can select any of the Objects in the Universe Dimensions folder.