<?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 Calculate the difference between the count of 2 GA4 events on an area chart in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Calculate-the-difference-between-the-count-of-2-GA4-events-on-an/m-p/4607887#M12302</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a stacked area chart that shows the usage trends of two GA4 events with their event count for the past 12 months, with count as Y axis and year-month as x axis. These two events are on the legend. Now I want another parameter(new event) on the graph which is basically the subtraction of these two specfic GA4event counts. I thought this should be as simple as New value = GA4eventcount1 - GA4eventcount2, but when I try the visual calculation it is not as simple. When I try to enter the formula for calculation it doesn't let me select the specific event name counts to subtract. Not sure how to get this new value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help/suggestion is welcome appreciated.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Thu, 13 Mar 2025 05:06:13 GMT</pubDate>
    <dc:creator>smoorthy</dc:creator>
    <dc:date>2025-03-13T05:06:13Z</dc:date>
    <item>
      <title>Calculate the difference between the count of 2 GA4 events on an area chart</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Calculate-the-difference-between-the-count-of-2-GA4-events-on-an/m-p/4607887#M12302</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a stacked area chart that shows the usage trends of two GA4 events with their event count for the past 12 months, with count as Y axis and year-month as x axis. These two events are on the legend. Now I want another parameter(new event) on the graph which is basically the subtraction of these two specfic GA4event counts. I thought this should be as simple as New value = GA4eventcount1 - GA4eventcount2, but when I try the visual calculation it is not as simple. When I try to enter the formula for calculation it doesn't let me select the specific event name counts to subtract. Not sure how to get this new value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help/suggestion is welcome appreciated.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 13 Mar 2025 05:06:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Calculate-the-difference-between-the-count-of-2-GA4-events-on-an/m-p/4607887#M12302</guid>
      <dc:creator>smoorthy</dc:creator>
      <dc:date>2025-03-13T05:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the difference between the count of 2 GA4 events on an area chart</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Calculate-the-difference-between-the-count-of-2-GA4-events-on-an/m-p/4609087#M12303</link>
      <description>&lt;P&gt;Please provide sample data that covers your issue or question &lt;STRONG&gt;completely&lt;/STRONG&gt;, in a &lt;STRONG&gt;usable&lt;/STRONG&gt; format (not as a screenshot).&lt;BR /&gt;Do not include sensitive information. Do not include anything that is unrelated to the issue or question. &lt;BR /&gt;Please show the expected outcome based on the sample data you provided. &lt;BR /&gt;&lt;BR /&gt;Need help uploading data? &lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216&lt;/A&gt; &lt;BR /&gt;Want faster answers? &lt;A href="https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Mar 2025 17:20:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Calculate-the-difference-between-the-count-of-2-GA4-events-on-an/m-p/4609087#M12303</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2025-03-13T17:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the difference between the count of 2 GA4 events on an area chart</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Calculate-the-difference-between-the-count-of-2-GA4-events-on-an/m-p/4615171#M12330</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="smoorthy_0-1741887816810.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1250041iA4C3C31A533CD9E3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="smoorthy_0-1741887816810.png" alt="smoorthy_0-1741887816810.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is a sample of how the graph looks on Powerbi. I am using GA4 events and their event count for the data. I want a new event/parameter which calculates the difference betwen Photos Clicked and Photos Edited. When I try to do this using Visual calculation, I can't seem to do this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample Data below with Expected Outcome&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Event Name&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;Photos clicked&lt;/TD&gt;&lt;TD&gt;Photos Edited&lt;/TD&gt;&lt;TD&gt;&lt;U&gt;&lt;FONT color="#800080"&gt;Photos clicked - Photos Edited&lt;/FONT&gt;&lt;/U&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Month-Year&lt;/TD&gt;&lt;TD&gt;Event Count&lt;/TD&gt;&lt;TD&gt;Event count&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2024-11&lt;/TD&gt;&lt;TD&gt;100&lt;/TD&gt;&lt;TD&gt;90&lt;/TD&gt;&lt;TD&gt;&lt;U&gt;&lt;FONT color="#800080"&gt;10&lt;/FONT&gt;&lt;/U&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2024-12&lt;/TD&gt;&lt;TD&gt;300&lt;/TD&gt;&lt;TD&gt;250&lt;/TD&gt;&lt;TD&gt;&lt;U&gt;&lt;FONT color="#800080"&gt;50&lt;/FONT&gt;&lt;/U&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2025-1&lt;/TD&gt;&lt;TD&gt;250&lt;/TD&gt;&lt;TD&gt;220&lt;/TD&gt;&lt;TD&gt;&lt;U&gt;&lt;FONT color="#800080"&gt;30&lt;/FONT&gt;&lt;/U&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2025-2&lt;/TD&gt;&lt;TD&gt;400&lt;/TD&gt;&lt;TD&gt;380&lt;/TD&gt;&lt;TD&gt;&lt;U&gt;&lt;FONT color="#800080"&gt;20&lt;/FONT&gt;&lt;/U&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2025 18:22:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Calculate-the-difference-between-the-count-of-2-GA4-events-on-an/m-p/4615171#M12330</guid>
      <dc:creator>smoorthy</dc:creator>
      <dc:date>2025-03-18T18:22:16Z</dc:date>
    </item>
  </channel>
</rss>

