<?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 and plot YoY over multiple years in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-and-plot-YoY-over-multiple-years/m-p/2514655#M69874</link>
    <description>&lt;P&gt;I have 3 years of revenue data (2019 - 2021) for a group of vendors.&lt;/P&gt;&lt;P&gt;The table name is 'data', and the fields are [Year], [Vendor], [Vendor Revenue].&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am calculating market share and YoY revenue change for each vendor, as follows:&lt;BR /&gt;[Revenue] = SUM('data'[Vendor Revenue])&amp;nbsp; // currency&lt;/P&gt;&lt;P&gt;[Market Share] = DIVIDE( [Revenue], CALCULATE( [Revenue], ALL('data'[Vendor])), 0)&amp;nbsp; // percent&lt;/P&gt;&lt;P&gt;[YoY Change] = DIVIDE( [Revenue], CALCULATE( [Revenue], SAMEPERIODLASTYEAR('data'[YEAR])), 0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to be able to plot the data using a scatter chart, with each vendor appearing twice one marker for 2019-2020 and and one for 2020-2021, but I'm only getting the 2020-2021 data points.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know I could do this with calculated columns in the data table, but I'm hoping I can make it dynamic since I want to add a field for product and be able to dynamically filter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If my question doesn't make sense, let me know and I'll provide sample data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Sat, 14 May 2022 00:16:28 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-05-14T00:16:28Z</dc:date>
    <item>
      <title>Calculate and plot YoY over multiple years</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-and-plot-YoY-over-multiple-years/m-p/2514655#M69874</link>
      <description>&lt;P&gt;I have 3 years of revenue data (2019 - 2021) for a group of vendors.&lt;/P&gt;&lt;P&gt;The table name is 'data', and the fields are [Year], [Vendor], [Vendor Revenue].&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am calculating market share and YoY revenue change for each vendor, as follows:&lt;BR /&gt;[Revenue] = SUM('data'[Vendor Revenue])&amp;nbsp; // currency&lt;/P&gt;&lt;P&gt;[Market Share] = DIVIDE( [Revenue], CALCULATE( [Revenue], ALL('data'[Vendor])), 0)&amp;nbsp; // percent&lt;/P&gt;&lt;P&gt;[YoY Change] = DIVIDE( [Revenue], CALCULATE( [Revenue], SAMEPERIODLASTYEAR('data'[YEAR])), 0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to be able to plot the data using a scatter chart, with each vendor appearing twice one marker for 2019-2020 and and one for 2020-2021, but I'm only getting the 2020-2021 data points.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know I could do this with calculated columns in the data table, but I'm hoping I can make it dynamic since I want to add a field for product and be able to dynamically filter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If my question doesn't make sense, let me know and I'll provide sample data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Sat, 14 May 2022 00:16:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-and-plot-YoY-over-multiple-years/m-p/2514655#M69874</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-14T00:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate and plot YoY over multiple years</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-and-plot-YoY-over-multiple-years/m-p/2514690#M69876</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , For time intelligence to work Join your date of the table with the date table marked as date table and use date from date table &lt;/P&gt;
&lt;P&gt;[YoY Change] = DIVIDE( [Revenue], CALCULATE( [Revenue], SAMEPERIODLASTYEAR('Date'[Date])), 0)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Power BI — Year on Year with or Without Time Intelligence &lt;BR /&gt;&lt;A href="https://medium.com/@amitchandak.1978/power-bi-ytd-questions-time-intelligence-1-5-e3174b39f38a" target="_blank"&gt;https://medium.com/@amitchandak.1978/power-bi-ytd-questions-time-intelligence-1-5-e3174b39f38a&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://www.youtube.com/watch?v=km41KfM_0uA" target="_blank"&gt;https://www.youtube.com/watch?v=km41KfM_0uA&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :&lt;A href="https://youtu.be/OBf0rjpp5Hw" target="_blank"&gt;https://youtu.be/OBf0rjpp5Hw&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5bd4" target="_blank"&gt;https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5bd4&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :&lt;A href="https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions" target="_blank"&gt;radacad&lt;/A&gt; &lt;A href="https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/" target="_blank"&gt;sqlbi&lt;/A&gt; &lt;A href="https://www.youtube.com/playlist?list=PLPaNVDMhUXGYLz-w8ERQOo3KYARs7GgG-" target="_blank"&gt;My Video Series&lt;/A&gt; Appreciate your Kudos. &lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 14 May 2022 02:17:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-and-plot-YoY-over-multiple-years/m-p/2514690#M69876</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-05-14T02:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate and plot YoY over multiple years</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-and-plot-YoY-over-multiple-years/m-p/2514851#M69884</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;Thanks. I actually was using a date table, which I had identified as such but had forgotten to join to my data table.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":winking_face_with_tongue:"&gt;😜&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 14 May 2022 05:41:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-and-plot-YoY-over-multiple-years/m-p/2514851#M69884</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-14T05:41:42Z</dc:date>
    </item>
  </channel>
</rss>

