<?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: Help trying to calculate a percentage in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/help-trying-to-calculate-a-percentage/m-p/31307#M22789</link>
    <description>&lt;P&gt;Thank you, I was able to get it following your instructions&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt; &lt;/P&gt;</description>
    <pubDate>Fri, 21 Jan 2022 14:09:00 GMT</pubDate>
    <dc:creator>DanVartanian</dc:creator>
    <dc:date>2022-01-21T14:09:00Z</dc:date>
    <item>
      <title>Help trying to calculate a percentage</title>
      <link>https://community.databricks.com/t5/data-engineering/help-trying-to-calculate-a-percentage/m-p/31303#M22785</link>
      <description>&lt;P&gt;The image below shows what my source data is (HAVE) and what I'm trying to get to (WANT).&lt;/P&gt;&lt;P&gt;I want to be able to calculate the percentage of bad messages (where formattedMessage = false) by source and date.&lt;/P&gt;&lt;P&gt;I'm not sure how to achieve this in DatabricksSql. Any help appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="havewant"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/2176iE0FF045FB6DC6613/image-size/large?v=v2&amp;amp;px=999" role="button" title="havewant" alt="havewant" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2022 12:05:33 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/help-trying-to-calculate-a-percentage/m-p/31303#M22785</guid>
      <dc:creator>DanVartanian</dc:creator>
      <dc:date>2022-01-20T12:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: Help trying to calculate a percentage</title>
      <link>https://community.databricks.com/t5/data-engineering/help-trying-to-calculate-a-percentage/m-p/31305#M22787</link>
      <description>&lt;P&gt;Thank you so much&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2022 15:40:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/help-trying-to-calculate-a-percentage/m-p/31305#M22787</guid>
      <dc:creator>DanVartanian</dc:creator>
      <dc:date>2022-01-20T15:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Help trying to calculate a percentage</title>
      <link>https://community.databricks.com/t5/data-engineering/help-trying-to-calculate-a-percentage/m-p/31306#M22788</link>
      <description>&lt;P&gt;you could use a windows function over source and date with a sum of messagecount.  This gives you the total per source/date repeated on every line.&lt;/P&gt;&lt;P&gt;Then apply a filter on formattedmessage == false and divide messagecount by the sum above.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2022 08:28:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/help-trying-to-calculate-a-percentage/m-p/31306#M22788</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2022-01-21T08:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: Help trying to calculate a percentage</title>
      <link>https://community.databricks.com/t5/data-engineering/help-trying-to-calculate-a-percentage/m-p/31307#M22789</link>
      <description>&lt;P&gt;Thank you, I was able to get it following your instructions&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 21 Jan 2022 14:09:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/help-trying-to-calculate-a-percentage/m-p/31307#M22789</guid>
      <dc:creator>DanVartanian</dc:creator>
      <dc:date>2022-01-21T14:09:00Z</dc:date>
    </item>
  </channel>
</rss>

