Василий Островский
08/07/2021, 10:34 AMPetr Olmer
08/07/2021, 7:44 PMSELECT SUM({fact/id})
- replace id
with your id of Hire Amount. Then you can create your ratio metric and reference the two `{metric/id}`s. You can also expand the metric definitions and post simply SELECT SUM({fact/id1}) / SUM({fact/id2})
.Василий Островский
08/08/2021, 9:19 AMPetr Olmer
08/08/2021, 7:00 PMВасилий Островский
08/08/2021, 7:24 PMВасилий Островский
08/08/2021, 7:33 PMВасилий Островский
08/08/2021, 7:36 PMDavid Kubecka
08/09/2021, 7:49 AMВасилий Островский
08/09/2021, 11:36 AMDavid Kubecka
08/09/2021, 3:54 PMВасилий Островский
08/09/2021, 4:13 PMUlku Kijasev
08/09/2021, 4:25 PMUlku Kijasev
08/09/2021, 4:51 PM{
"data": {
"attributes": {
"title": "Order Amount Title",
"content": {
"format": "$#,##0",
"maql": "SELECT SUM({fact/order_lines.price}*{fact/order_lines.quantity})"
},
"tags": [
"Order Amount TAG"
]
},
"id": "order_amount_tagged",
"type": "metric"
}
}
and created the metric with tag and the tagged metric works. If you create the metric as above and your LDM supports this, then the metric displays without problem.Василий Островский
08/09/2021, 4:53 PMPetr Olmer
08/10/2021, 2:33 AMВасилий Островский
08/13/2021, 11:08 AM