Hello everyone,
As I am using the Single Value visualisation for one of my dashboards, I would like to have move than one row of comparisons value inside one look.
For example:
Cost: 100k
Comparison #1: 30,1% on MoM
Comparison #2: 10% Above Budget

Hello everyone,
As I am using the Single Value visualisation for one of my dashboards, I would like to have move than one row of comparisons value inside one look.
For example:
Cost: 100k
Comparison #1: 30,1% on MoM
Comparison #2: 10% Above Budget
Yuo can use html parameter in a measure to do that. It’s quite hacky because you may need to create a copy of the measure with all these specific components of your desired output.
Here is one article that could help:
measure: percent_complete {type: number sql: 1.0*(${pages_finished});;
html: <div style="float: left
; width:{{ value | times:100}}%
; background-color: rgba(0,180,0,{{ value | times:100 }})
; text-align:left
; color: #FFFFFF
; border-radius: 5px"> <p style="margin-bottom: 0; margin-left: 4px;">{{ value | times:100 }}%</p>
</div>
<div style="float: left
; width:{{ 1| minus:value | times:100}}%
; background-color: rgba(0,180,0,0.1)
; text-align:right
; border-radius: 5px"> <p style="margin-bottom: 0; margin-left: 0px; color:rgba(0,0,0,0.0" )>{{value}}</p>
</div>
;;
}
Thanks
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.