<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Deneb Card containing Text + Bar Chart in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Deneb-Card-containing-Text-Bar-Chart/m-p/3103445#M6973</link>
    <description>&lt;P&gt;A sample PBIX file can be found here:&lt;BR /&gt;&lt;A href="https://cloud.degoo.com/share/OFPTR5znFMEcezYqdXK_RQ" target="_self"&gt;https://cloud.degoo.com/share/OFPTR5znFMEcezYqdXK_RQ&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Feb 2023 11:30:19 GMT</pubDate>
    <dc:creator>y5famfnatudu</dc:creator>
    <dc:date>2023-02-28T11:30:19Z</dc:date>
    <item>
      <title>Deneb Card containing Text + Bar Chart</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Deneb-Card-containing-Text-Bar-Chart/m-p/3103238#M6970</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;I have created the bar chart with no problem, but when I add the Text Mark and add the measure to it, it is added to the chart as data points (which is not what I want)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my code:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "data": {"name": "dataset"},
  "layer": [
    {
      "mark": {
        "type": "bar",
        "tooltip": true
      },
      "encoding": {
        "x": {
          "field": "Year Month short",
          "type": "nominal",
          "axis": null
        },
        "y": {
          "field": "Revenue",
          "type": "quantitative",
          "title": null,
          "axis": null
        },
        "color": {"value": "gray"}
      }
    }
  ]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;And this is the result&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="y5famfnatudu_0-1677576135765.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/878759i2031328EE84F2E72/image-size/medium?v=v2&amp;amp;px=400" role="button" title="y5famfnatudu_0-1677576135765.png" alt="y5famfnatudu_0-1677576135765.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Desired result&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="y5famfnatudu_1-1677576713827.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/878761i77A34018E23DE250/image-size/medium?v=v2&amp;amp;px=400" role="button" title="y5famfnatudu_1-1677576713827.png" alt="y5famfnatudu_1-1677576713827.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Your help is so much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Simon&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 09:32:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Deneb-Card-containing-Text-Bar-Chart/m-p/3103238#M6970</guid>
      <dc:creator>y5famfnatudu</dc:creator>
      <dc:date>2023-02-28T09:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: Deneb Card containing Text + Bar Chart</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Deneb-Card-containing-Text-Bar-Chart/m-p/3103445#M6973</link>
      <description>&lt;P&gt;A sample PBIX file can be found here:&lt;BR /&gt;&lt;A href="https://cloud.degoo.com/share/OFPTR5znFMEcezYqdXK_RQ" target="_self"&gt;https://cloud.degoo.com/share/OFPTR5znFMEcezYqdXK_RQ&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 11:30:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Deneb-Card-containing-Text-Bar-Chart/m-p/3103445#M6973</guid>
      <dc:creator>y5famfnatudu</dc:creator>
      <dc:date>2023-02-28T11:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: Deneb Card containing Text + Bar Chart</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Deneb-Card-containing-Text-Bar-Chart/m-p/3105576#M6979</link>
      <description>&lt;P&gt;I found the solution, it was very simple actually&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"encoding": {
        "text": {
          "aggregate": "sum",
          "field": "Revenue",
          "type": "quantitative",
          "format": "#,##,,.00M;(#,##,,.00M)",
          "formatType": "pbiFormat"
        }
      }&lt;/LI-CODE&gt;&lt;P&gt;It was this part of the code that aggregated the data points:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"aggregate": "sum"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 09:25:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Deneb-Card-containing-Text-Bar-Chart/m-p/3105576#M6979</guid>
      <dc:creator>y5famfnatudu</dc:creator>
      <dc:date>2023-03-01T09:25:20Z</dc:date>
    </item>
  </channel>
</rss>

