<?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 Help with YoY % measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-YoY-measure/m-p/2067492#M46743</link>
    <description>&lt;P&gt;I am new to power BI. I am using the below formula. However when "PY TD MARKET SHARE" has sales and PY Total market share is $0, it is showing 0.00% which is not correct. it should show "100%" and&amp;nbsp;when "PY TD MARKET SHARE" is $0 and PY Total market share has sales it is showing 0.00% iwhere as it should show -100%.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF(SUM('NPD workflow'[PY TD Market Share])=0,0,IF(SUM('NPD workflow'[PY Total Market Share])=0,0,SUM('NPD workflow'[PY TD Market Share])/SUM('NPD workflow'[PY Total Market Share])-1))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Sep 2021 19:02:10 GMT</pubDate>
    <dc:creator>Dimps</dc:creator>
    <dc:date>2021-09-09T19:02:10Z</dc:date>
    <item>
      <title>Help with YoY % measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-YoY-measure/m-p/2067492#M46743</link>
      <description>&lt;P&gt;I am new to power BI. I am using the below formula. However when "PY TD MARKET SHARE" has sales and PY Total market share is $0, it is showing 0.00% which is not correct. it should show "100%" and&amp;nbsp;when "PY TD MARKET SHARE" is $0 and PY Total market share has sales it is showing 0.00% iwhere as it should show -100%.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF(SUM('NPD workflow'[PY TD Market Share])=0,0,IF(SUM('NPD workflow'[PY Total Market Share])=0,0,SUM('NPD workflow'[PY TD Market Share])/SUM('NPD workflow'[PY Total Market Share])-1))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 19:02:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-YoY-measure/m-p/2067492#M46743</guid>
      <dc:creator>Dimps</dc:creator>
      <dc:date>2021-09-09T19:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Help with YoY % measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-YoY-measure/m-p/2068298#M46764</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="322401" data-lia-user-login="Dimps" class="lia-mention lia-mention-user"&gt;Dimps&lt;/a&gt; , Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.&lt;/P&gt;
&lt;P&gt;First refer if below can help&lt;/P&gt;
&lt;P&gt;various ways to deal with this year last year&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD('Date'[Date],"12/31"))&lt;BR /&gt;Last YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(dateadd('Date'[Date],-1,Year),"12/31"))&lt;BR /&gt;This year Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(ENDOFYEAR('Date'[Date]),"12/31"))&lt;BR /&gt;Last year Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(ENDOFYEAR(dateadd('Date'[Date],-1,Year)),"12/31"))&lt;BR /&gt;Last to last YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(dateadd('Date'[Date],-2,Year),"12/31"))&lt;BR /&gt;Year behind Sales = CALCULATE(SUM(Sales[Sales Amount]),dateadd('Date'[Date],-1,Year))&lt;BR /&gt;Year behind Sales = CALCULATE(SUM(Sales[Sales Amount]),SAMEPERIODLASTYEAR('Date'[Date]))&lt;BR /&gt;last Year Sales = CALCULATE(SUM(Sales[Sales Amount]),previousyear('Date'[Date]))&lt;BR /&gt;Average PY = IF([Average CY]=0,BLANK(),CALCULATE([Average CY],SAMEPERIODLASTYEAR("dCalendar"[Date])))&lt;BR /&gt;&lt;BR /&gt;//Only year vs Year, not a level below&lt;/P&gt;
&lt;P&gt;This Year = CALCULATE(sum('Table'[Qty]),filter(ALL('Date'),'Date'[Year]=max('Date'[Year])))&lt;BR /&gt;Last Year = CALCULATE(sum('Table'[Qty]),filter(ALL('Date'),'Date'[Year]=max('Date'[Year])-1))&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;</description>
      <pubDate>Fri, 10 Sep 2021 07:06:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-YoY-measure/m-p/2068298#M46764</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-09-10T07:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: Help with YoY % measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-YoY-measure/m-p/2077802#M47108</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 15 Sep 2021 13:02:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-YoY-measure/m-p/2077802#M47108</guid>
      <dc:creator>Dimps</dc:creator>
      <dc:date>2021-09-15T13:02:22Z</dc:date>
    </item>
  </channel>
</rss>

