Forum Discussion
y5famfnatudu
3 years agoResolver I
Deneb Card containing Text + Bar Chart
Hello, I'm trying to create a card using Deneb, the card should contain a Measure representing total revenue added as Text, and below it a bar chart that breaks the revenue by month. I have created...
- 3 years ago
I found the solution, it was very simple actually
"encoding": { "text": { "aggregate": "sum", "field": "Revenue", "type": "quantitative", "format": "#,##,,.00M;(#,##,,.00M)", "formatType": "pbiFormat" } }It was this part of the code that aggregated the data points:
"aggregate": "sum"
y5famfnatudu
3 years agoResolver I
A sample PBIX file can be found here:
https://cloud.degoo.com/share/OFPTR5znFMEcezYqdXK_RQ
y5famfnatudu
3 years agoResolver I
I found the solution, it was very simple actually
"encoding": {
"text": {
"aggregate": "sum",
"field": "Revenue",
"type": "quantitative",
"format": "#,##,,.00M;(#,##,,.00M)",
"formatType": "pbiFormat"
}
}It was this part of the code that aggregated the data points:
"aggregate": "sum"