{ "$schema": "https://developer.microsoft.com/json-schemas/fabric/item/report/definition/visualContainer/2.2.0/schema.json", "name": "deneb_comparison", "position": { "x": 648, "y": 407, "z": 1000, "height": 290, "width": 608, "tabOrder": 4 }, "visual": { "visualType": "deneb7E15AEF80B9E4D4F8E12924291ECE89A", "query": { "queryState": { "dataset": { "projections": [ { "field": { "Column": { "Expression": { "SourceRef": { "Entity": "Date" } }, "Property": "Calendar Month (ie Jan)" } }, "queryRef": "Date.Calendar Month (ie Jan)", "nativeQueryRef": "Calendar Month (ie Jan)", "active": true }, { "field": { "Measure": { "Expression": { "SourceRef": { "Entity": "Measure Selection" } }, "Property": "Actuals YTD" } }, "queryRef": "Measure Selection.Actuals YTD", "nativeQueryRef": "Actuals YTD", "active": true }, { "field": { "Measure": { "Expression": { "SourceRef": { "Entity": "Measure Selection" } }, "Property": "Sales Target YTD" } }, "queryRef": "Measure Selection.Sales Target YTD", "nativeQueryRef": "Sales Target YTD", "active": true } ] } } }, "objects": { "vega": [ { "properties": { "provider": { "expr": { "Literal": { "Value": "'vegaLite'" } } }, "jsonSpec": { "expr": { "Literal": { "Value": "'{\"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\", \"data\": {\"name\": \"dataset\"}, \"transform\": [{\"calculate\": \"indexof(['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'], datum['Calendar Month (ie Jan)'])\", \"as\": \"month_order\"}, {\"calculate\": \"datum['Actuals YTD']\", \"as\": \"Actuals\"}, {\"calculate\": \"datum['Sales Target YTD']\", \"as\": \"Target\"}, {\"calculate\": \"datum.Actuals >= 1e9 ? format(datum.Actuals / 1e9, '.2f') + 'bn' : datum.Actuals >= 1e6 ? format(datum.Actuals / 1e6, '.1f') + 'M' : format(datum.Actuals / 1e3, '.0f') + 'K'\", \"as\": \"ActualsLabel\"}, {\"calculate\": \"datum.Target >= 1e9 ? format(datum.Target / 1e9, '.2f') + 'bn' : datum.Target >= 1e6 ? format(datum.Target / 1e6, '.1f') + 'M' : format(datum.Target / 1e3, '.0f') + 'K'\", \"as\": \"TargetLabel\"}, {\"window\": [{\"op\": \"rank\", \"as\": \"rank\"}], \"sort\": [{\"field\": \"month_order\", \"order\": \"descending\"}]}, {\"fold\": [\"Actuals\", \"Target\"], \"as\": [\"Series\", \"Value\"]}], \"encoding\": {\"x\": {\"field\": \"Calendar Month (ie Jan)\", \"type\": \"ordinal\", \"scale\": {\"domain\": [\"Jan\", \"Feb\", \"Mar\", \"Apr\", \"May\", \"Jun\", \"Jul\", \"Aug\", \"Sep\", \"Oct\", \"Nov\", \"Dec\"]}, \"axis\": {\"title\": null, \"labelAngle\": 0, \"labelFontSize\": 11}}}, \"layer\": [{\"mark\": {\"type\": \"line\", \"strokeWidth\": 3}, \"encoding\": {\"y\": {\"field\": \"Value\", \"type\": \"quantitative\", \"axis\": {\"title\": null, \"labelFontSize\": 11, \"labelExpr\": \"datum.value >= 1e9 ? format(datum.value / 1e9, '.0f') + 'bn' : datum.value >= 1e6 ? format(datum.value / 1e6, '.0f') + 'M' : format(datum.value / 1e3, '.0f') + 'K'\"}}, \"color\": {\"field\": \"Series\", \"type\": \"nominal\", \"scale\": {\"domain\": [\"Actuals\", \"Target\"], \"range\": [\"#118DFF\", \"#888888\"]}, \"legend\": {\"title\": null, \"labelFontSize\": 11, \"orient\": \"top-left\"}}, \"strokeDash\": {\"field\": \"Series\", \"type\": \"nominal\", \"scale\": {\"domain\": [\"Actuals\", \"Target\"], \"range\": [[], [4, 4]]}, \"legend\": null}, \"strokeWidth\": {\"field\": \"Series\", \"type\": \"nominal\", \"scale\": {\"domain\": [\"Actuals\", \"Target\"], \"range\": [3, 1.5]}, \"legend\": null}}}, {\"transform\": [{\"filter\": \"datum.rank == 1 && datum.Series == 'Actuals'\"}], \"mark\": {\"type\": \"point\", \"filled\": true, \"size\": 80, \"stroke\": \"#118DFF\", \"strokeWidth\": 2, \"fill\": \"white\"}, \"encoding\": {\"y\": {\"field\": \"Value\", \"type\": \"quantitative\"}}}, {\"transform\": [{\"filter\": \"datum.rank == 1 && datum.Series == 'Target'\"}], \"mark\": {\"type\": \"point\", \"filled\": true, \"size\": 50, \"stroke\": \"#888888\", \"strokeWidth\": 1.5, \"fill\": \"white\"}, \"encoding\": {\"y\": {\"field\": \"Value\", \"type\": \"quantitative\"}}}, {\"transform\": [{\"filter\": \"datum.rank == 1 && datum.Series == 'Actuals'\"}], \"mark\": {\"type\": \"text\", \"align\": \"left\", \"dx\": 8, \"dy\": -8, \"fontWeight\": \"bold\", \"color\": \"#118DFF\", \"fontSize\": 12}, \"encoding\": {\"y\": {\"field\": \"Value\", \"type\": \"quantitative\"}, \"text\": {\"field\": \"ActualsLabel\", \"type\": \"nominal\"}}}, {\"transform\": [{\"filter\": \"datum.rank == 1 && datum.Series == 'Target'\"}], \"mark\": {\"type\": \"text\", \"align\": \"left\", \"dx\": 8, \"dy\": 12, \"color\": \"#888888\", \"fontSize\": 12}, \"encoding\": {\"y\": {\"field\": \"Value\", \"type\": \"quantitative\"}, \"text\": {\"field\": \"TargetLabel\", \"type\": \"nominal\"}}}], \"config\": {\"view\": {\"stroke\": null}, \"axis\": {\"labelColor\": \"#6C757D\", \"tickColor\": \"#DEE2E6\", \"domainColor\": \"#DEE2E6\"}}}'" } } }, "jsonConfig": { "expr": { "Literal": { "Value": "'{\"autosize\": {\"type\": \"fit\", \"contains\": \"padding\"}, \"view\": {\"stroke\": \"transparent\"}, \"font\": \"Segoe UI\", \"axis\": {\"ticks\": false, \"grid\": false, \"domain\": false, \"labelColor\": \"#6C757D\", \"labelFontSize\": 11}, \"axisQuantitative\": {\"tickCount\": 5, \"grid\": true, \"gridColor\": \"#DEE2E6\", \"gridDash\": [2, 4]}, \"legend\": {\"labelFontSize\": 11, \"titleFontSize\": 11}}'" } } }, "enableTooltips": { "expr": { "Literal": { "Value": "true" } } }, "enableSelection": { "expr": { "Literal": { "Value": "true" } } }, "enableHighlight": { "expr": { "Literal": { "Value": "true" } } } } } ] }, "drillFilterOtherVisuals": true, "visualContainerObjects": { "title": [ { "properties": { "show": { "expr": { "Literal": { "Value": "true" } } }, "text": { "expr": { "Literal": { "Value": "'Turnover YTD vs 1YP'" } } } } } ], "subTitle": [ { "properties": { "show": { "expr": { "Literal": { "Value": "true" } } }, "text": { "expr": { "Literal": { "Value": "'Deneb'" } } } } } ] } } }