You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
POST /api/card
Authorization: Bearer <your_api_token>
{
"name": "Sales Data with Date Filters",
"dataset_query": {
"type": "native",
"native": {
"query": "SELECT date, SUM(sales) AS total_sales FROM sales_table WHERE date BETWEEN {{start_date}} AND {{end_date}} GROUP BY date ORDER BY date",
"template-tags": {
"start_date": {
"id": "c53df913",
"name": "start_date",
"display_name": "Start Date",
"type": "date",
"default": "2023-01-01" // Optional default value
},
"end_date": {
"id": "c82df913",
"name": "end_date",
"display_name": "End Date",
"type": "date",
"default": "2023-12-31" // Optional default value
}
}
},
"database": 1 // Replace with your database ID
},
"display": "bar", // Visualization type
"visualization_settings": {
"x_axis.title": "Date",
"y_axis.title": "Total Sales",
"graph.line_style": "solid"
},
"collection_id": null // Add to a collection if needed
}
Inputs-Ignore-for analysis purpose and later reference:
paste the chart here
line chart over bar chart - intelligently - every line will be subject type
metabase, dataogram - ODK and metabase -> absolute, and then trend, display data below that
The text was updated successfully, but these errors were encountered:
mahalakshme
changed the title
Create visualisation on question with filters
[Canned Reports] Create visualisation on question with filters
Dec 16, 2024
AC:
Technical suggestions:
Metabase api link
Approximate payload that might work - Not tested:
Inputs-Ignore-for analysis purpose and later reference:
The text was updated successfully, but these errors were encountered: