<?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: Opportunity Win Rate of last year used as a prediction for next 6 months in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Opportunity-Win-Rate-of-last-year-used-as-a-prediction-for-next/m-p/1654822#M33682</link>
    <description>&lt;P&gt;This is my measure so far:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;Estimated Revenue (Weighed) = 

VAR Won=
CALCULATE(SUM('Opps'[Estimated Revenue]), FILTER('Opps', YEAR('Opps'[Estimated Closing Date])=YEAR(TODAY())-1
&amp;amp;&amp;amp; 'Opps'[Status]=3 ))



VAR Lost = 

CALCULATE(SUM('Opps'[Estimated Revenue]), FILTER('Opps', YEAR('Opps'[Estimated Closing Date])=YEAR(TODAY())-1
&amp;amp;&amp;amp; 'Opps'[Status]=4 ))

VAR 
WinRate= Won/(Won+Lost)


RETURN

SUM('Opps'[Estimated Revenue])* WinRate&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 09 Feb 2021 12:15:46 GMT</pubDate>
    <dc:creator>autodafe</dc:creator>
    <dc:date>2021-02-09T12:15:46Z</dc:date>
    <item>
      <title>Opportunity Win Rate of last year used as a prediction for next 6 months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Opportunity-Win-Rate-of-last-year-used-as-a-prediction-for-next/m-p/1654642#M33677</link>
      <description>&lt;P&gt;I would like to calculate the Opportunities Win Rate (from Dynamics 365) of the last full year (i.e. YEAR minus 1) and us that ratio to weigh Esimated Revenues for the next six months.&lt;/P&gt;&lt;P&gt;I already have a measures that simply calculates Win and Lost opportunities (using some CALCULATE and FILTER on YEAR -1).&lt;BR /&gt;It works OK&lt;/P&gt;&lt;P&gt;The problem arises when I try to use that measure to calculate Revenue for the next six Months, where in a Visual I use a "Relative Date" set to "Next 6 Months".&lt;BR /&gt;It goes to zero, probably because I am "intersecting" somehting that goes back one year with a filter that show the next six months.&lt;BR /&gt;&lt;BR /&gt;How is it possible to NOT intersesct the filter in the visual with the actual measure and keep the measure the same no matter how I filter it?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2021 11:18:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Opportunity-Win-Rate-of-last-year-used-as-a-prediction-for-next/m-p/1654642#M33677</guid>
      <dc:creator>autodafe</dc:creator>
      <dc:date>2021-02-09T11:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: Opportunity Win Rate of last year used as a prediction for next 6 months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Opportunity-Win-Rate-of-last-year-used-as-a-prediction-for-next/m-p/1654796#M33679</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="22444" data-lia-user-login="autodafe" class="lia-mention lia-mention-user"&gt;autodafe&lt;/a&gt; , have tried a measure like this with date tbale &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Rolling 6 = CALCULATE(sum(Sales[Sales Amount]),DATESINPERIOD('Date'[Date ],MAX('Date'[Date ]),6,MONTH))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&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>Tue, 09 Feb 2021 11:57:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Opportunity-Win-Rate-of-last-year-used-as-a-prediction-for-next/m-p/1654796#M33679</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-02-09T11:57:15Z</dc:date>
    </item>
    <item>
      <title>Re: Opportunity Win Rate of last year used as a prediction for next 6 months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Opportunity-Win-Rate-of-last-year-used-as-a-prediction-for-next/m-p/1654804#M33681</link>
      <description>&lt;P&gt;Thanks, but that would not work.&lt;BR /&gt;I have to create a visual filtered ith a "Relative Date Filter" for the next six months (easy), but multiply that value for the Win Ratio of 2020.&amp;nbsp;&lt;BR /&gt;The two date ranges cannot intersect...&lt;BR /&gt;I have tried using KEEPFILTERS on the Win Rate but it doesn't work either...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2021 12:01:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Opportunity-Win-Rate-of-last-year-used-as-a-prediction-for-next/m-p/1654804#M33681</guid>
      <dc:creator>autodafe</dc:creator>
      <dc:date>2021-02-09T12:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: Opportunity Win Rate of last year used as a prediction for next 6 months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Opportunity-Win-Rate-of-last-year-used-as-a-prediction-for-next/m-p/1654822#M33682</link>
      <description>&lt;P&gt;This is my measure so far:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;Estimated Revenue (Weighed) = 

VAR Won=
CALCULATE(SUM('Opps'[Estimated Revenue]), FILTER('Opps', YEAR('Opps'[Estimated Closing Date])=YEAR(TODAY())-1
&amp;amp;&amp;amp; 'Opps'[Status]=3 ))



VAR Lost = 

CALCULATE(SUM('Opps'[Estimated Revenue]), FILTER('Opps', YEAR('Opps'[Estimated Closing Date])=YEAR(TODAY())-1
&amp;amp;&amp;amp; 'Opps'[Status]=4 ))

VAR 
WinRate= Won/(Won+Lost)


RETURN

SUM('Opps'[Estimated Revenue])* WinRate&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 09 Feb 2021 12:15:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Opportunity-Win-Rate-of-last-year-used-as-a-prediction-for-next/m-p/1654822#M33682</guid>
      <dc:creator>autodafe</dc:creator>
      <dc:date>2021-02-09T12:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: Opportunity Win Rate of last year used as a prediction for next 6 months</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Opportunity-Win-Rate-of-last-year-used-as-a-prediction-for-next/m-p/1654879#M33685</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="22444" data-lia-user-login="autodafe" class="lia-mention lia-mention-user"&gt;autodafe&lt;/a&gt; , with date table a measure for last year &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Last YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(dateadd('Date'[Date],-1,Year),"12/31"))&lt;BR /&gt;Last year Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(ENDOFYEAR(dateadd('Date'[Date],-1,Year)),"12/31"))&lt;/P&gt;</description>
      <pubDate>Tue, 09 Feb 2021 12:38:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Opportunity-Win-Rate-of-last-year-used-as-a-prediction-for-next/m-p/1654879#M33685</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-02-09T12:38:40Z</dc:date>
    </item>
  </channel>
</rss>

