Skip to content

Instantly share code, notes, and snippets.

@Lahannin
Last active February 22, 2022 17:12
Show Gist options
  • Save Lahannin/b5ec4163acb88aa3d094118a9171fff7 to your computer and use it in GitHub Desktop.
Save Lahannin/b5ec4163acb88aa3d094118a9171fff7 to your computer and use it in GitHub Desktop.
{
"data": {
"attributes": {
"title": "Total Sales",
"description": "The value of all the products sold over time.",
"content": {
"format": "$#,##0.00",
"maql": "SELECT SUM({fact/price}* SUM({fact/quantity}))"
}
},
"id": "total_sales",
"type": "metric"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment