Skip to content
Snippets Groups Projects
Unverified Commit 2d1eed13 authored by Natalie's avatar Natalie Committed by GitHub
Browse files

docs - feedback (#31270)

parent 37a8b947
No related merge requests found
docs/dashboards/images/select-dashboard-subscription.png

76.3 KiB

......@@ -17,11 +17,7 @@ To enable dashboard subscriptions, your administrators will need to have set up
## Setting up a dashboard subscription
To set up a subscription to a dashboard, click on the **sharing** icon (the one-way arrow) and select **Dashboard subscriptions**.
![Select dashboard subscriptions](./images/select-dashboard-subscription.png)
Metabase will slide out a sidebar on the right, with an option to set up a subscription via email or Slack:
To set up a subscription to a dashboard, click on the **Subscriptions** icon (mail icon with a plus symbol). Metabase will slide out a sidebar on the right, with an option to set up a subscription via email or Slack:
![Set up a dashboard subscription with email or slack](./images/email-or-slack.png)
......
......@@ -58,7 +58,7 @@ To move a question, dashboard, or pulse into a collection, or from one collectio
![Selecting questions](./images/question-checkbox.png)
Note that you have to have Curate permission for the collection that you're moving a question into _and_ the collection you're moving the question out of.
Note that you have to have Curate permission for the collection that you're moving a question into _and_ the collection you're moving the question out of. Metabase admins can move items into (and out of) anyone's [personal collection](#your-personal-collection).
## Events and timelines
......
......@@ -7,7 +7,7 @@ redirect_from:
# Data reference
Sometimes when you're composing a question, you might forget the exact names of different tables or columns, or orwhiceh table contains what. That’s where the **Data reference** comes in handy.
Sometimes when you're composing a question, you might forget the exact names of different tables or columns, or which table contains what. That’s where the **Data reference** comes in handy.
You can open the data reference from:
......
......@@ -139,14 +139,20 @@ In the variables sidebar, you can set a default value for your variable. This va
## Setting complex default values in the query
You can also define default values directly in your query, which is useful when defining complex default values (for example, using a function to generate a value).
You can also define default values directly in your query by enclosing a comment inside the end brackets of an optional parameter:
Here's an example that sets the default value of a Date filter to the current date using `CURRENT_DATE()`:
```
WHERE column = [[ {% raw %}{{ your_parameter }}{% endraw %} #]]your_default_value
```
This is useful when defining complex default values (for example, if your default value is a function like `CURRENT_DATE`).
Here's a PostgreSQL example that sets the default value of a Date filter to the current date using `CURRENT_DATE()`:
```
SELECT *
FROM products
WHERE DATE(created_at) = [[ {% raw %}{{dateOfCreation}}{% endraw %} #]]CURRENT_DATE()
FROM accounts
{% raw %}WHERE DATE(created_at) = [[ {{dateOfCreation}} #]]CURRENT_DATE{% endraw %}
```
Note that the hash (`#`) used to comment the text might need to be replaced by the comment syntax specific to the database you're using. Some databases use double-dashes (`--`) as comment syntax.
......
......@@ -37,7 +37,7 @@ regexextract([URL], "^[^?#]+\?utm_campaign=(.*)")
Here, the regex pattern [`^[^?#]+\?` matches all valid URL strings](https://www.oreilly.com/library/view/regular-expressions-cookbook/9780596802837/ch07s13.html). You can replace `utm_campaign=` with whatever query parameter you like. At the end of the regex pattern, the [capturing group](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions/Groups_and_Backreferences) `(.*)` gets all of the characters that appear after the query parameter `utm_campaign=`.
Now, you can use **Campaign Name** in places where you need clean labels, such as [filter dropdown menus](../../../dashboards/filters.md#creating-a-dropdown-filter), [charts](../../sharing/visualizing-results.md), and [embedding parameters](../../../embedding/signed-embedding-parameters.md).
Now, you can use **Campaign Name** in places where you need clean labels, such as [filter dropdown menus](../../../dashboards/filters.md), [charts](../../sharing/visualizing-results.md), and [embedding parameters](../../../embedding/signed-embedding-parameters.md).
## Accepted data types
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment