<?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: Win Rate in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Win-Rate/m-p/2420702#M64115</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;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I think the second option cannot be applied in my matrix case.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;the first solution is applicable, but unfortunately it brings the grand total value for all the years and quarters.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I need to show the data with quarter regards.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I hope you can help in this&lt;/P&gt;</description>
    <pubDate>Mon, 28 Mar 2022 07:37:57 GMT</pubDate>
    <dc:creator>Hadill</dc:creator>
    <dc:date>2022-03-28T07:37:57Z</dc:date>
    <item>
      <title>Win Rate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Win-Rate/m-p/2420430#M64090</link>
      <description>&lt;P&gt;Hi there!&lt;/P&gt;&lt;P&gt;In my data query I have a table with the 'Sales Information', includes the following columns:&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;Deal value&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Deal status&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;500&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Booked&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;1000&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Abounded&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;400&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Booked&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;1500&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Lost&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;2000&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Lost&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;1500&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Abounded&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;4000&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;signed&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the report view, I already created a table that includes the sum of the values for ‘Deal Status’ by every quarter…&lt;/P&gt;&lt;P&gt;but I still want to add the win rate to the table for every quarter exactly as follow:&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;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Q1&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Q2&lt;/P&gt;&lt;/TD&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lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;Win Rate&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;42%&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;44%&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;41%&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;44%&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Win rate calculation = sum of [deal value] for the&amp;nbsp;&lt;STRONG&gt;booked&lt;/STRONG&gt;&amp;nbsp;[deal status]/sum of [deal value] for the&amp;nbsp;&lt;STRONG&gt;booked&lt;/STRONG&gt;&amp;nbsp;[deal status]+sum of [deal value] for the&amp;nbsp;&lt;STRONG&gt;Lost&lt;/STRONG&gt;&amp;nbsp;[deal status].&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What do you think the best way to apply this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope it is easy for you to help.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2022 05:55:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Win-Rate/m-p/2420430#M64090</guid>
      <dc:creator>Hadill</dc:creator>
      <dc:date>2022-03-28T05:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: Win Rate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Win-Rate/m-p/2420504#M64095</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="336315" data-lia-user-login="Hadill" class="lia-mention lia-mention-user"&gt;Hadill&lt;/a&gt; , You need have measure for booked , lost , others and win %&lt;/P&gt;
&lt;P&gt;Win Ratio = &lt;/P&gt;
&lt;P&gt;Divide( Calculate(Sum(Table[Deal Amount] ), Filter(Table, Table[Status] ="Booked")) ,Calculate(Sum(Table[Deal Amount] ), Filter(Table, Table[Status] in{"Booked","Lost"} )))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use Show on row in&amp;nbsp; matrix visual&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or you can show win % in Grand Total&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If (isinscope(Table[Status]) ,Sum(Table[Deal Amount] ) , [Win Ratio])&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/" target="_blank"&gt;https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2022 06:28:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Win-Rate/m-p/2420504#M64095</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-03-28T06:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Win Rate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Win-Rate/m-p/2420702#M64115</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;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I think the second option cannot be applied in my matrix case.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;the first solution is applicable, but unfortunately it brings the grand total value for all the years and quarters.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I need to show the data with quarter regards.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I hope you can help in this&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2022 07:37:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Win-Rate/m-p/2420702#M64115</guid>
      <dc:creator>Hadill</dc:creator>
      <dc:date>2022-03-28T07:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: Win Rate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Win-Rate/m-p/2421612#M64175</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="336315" data-lia-user-login="Hadill" class="lia-mention lia-mention-user"&gt;Hadill&lt;/a&gt; , In the first option you have all the measures and those should follow the filter on columns and in slicer.&lt;/P&gt;
&lt;P&gt;You will have total on column&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In second case you will replace the total column&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2022 12:55:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Win-Rate/m-p/2421612#M64175</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-03-28T12:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: Win Rate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Win-Rate/m-p/2438811#M65197</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="336315" data-lia-user-login="Hadill" class="lia-mention lia-mention-user"&gt;Hadill&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a calculated column like below.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;rate = 
var _win = CALCULATE(SUM('Table'[Deal value]),FILTER(ALLEXCEPT('Table','Table'[quarter]),'Table'[Deal status]="Booked"))
var _total = CALCULATE(SUM('Table'[Deal value]),FILTER(ALLEXCEPT('Table','Table'[quarter]),'Table'[Deal status]="Booked"||'Table'[Deal status]="Lost"))
return
_win/_total&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Then create a new table:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table 2 = 
var _table1 = SELECTCOLUMNS('Table',"deal status",'Table'[Deal status],"deal value",'Table'[Deal value],"quarter",[quarter])
var _table2 = distinct(SELECTCOLUMNS('Table',"deal status","win_rate","deal value",'Table'[rate],"quarter",[quarter]))
return
UNION(_table1,_table2)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Then use this table to create matrix.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jay&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 18:01:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Win-Rate/m-p/2438811#M65197</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-05T18:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: Win Rate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Win-Rate/m-p/2461430#M66641</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot for your reply, it seems very close !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first table created perfectly,&amp;nbsp;&amp;nbsp;but when I come to the second table, it brings Error data with the folloing message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please note that I copied the same function as yours.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks again, and I look forward to receiving your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2022 11:22:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Win-Rate/m-p/2461430#M66641</guid>
      <dc:creator>Hadill</dc:creator>
      <dc:date>2022-04-18T11:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: Win Rate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Win-Rate/m-p/2516868#M70021</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you get any solutin for my problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 08:22:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Win-Rate/m-p/2516868#M70021</guid>
      <dc:creator>Hadill</dc:creator>
      <dc:date>2022-05-16T08:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: Win Rate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Win-Rate/m-p/2516912#M70024</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="336315" data-lia-user-login="Hadill" class="lia-mention lia-mention-user"&gt;Hadill&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please split the second table into two tables.&lt;BR /&gt;table1 = SELECTCOLUMNS(...&lt;BR /&gt;table2 = distinct(...&lt;BR /&gt;Then check which table occurred the error.&lt;/P&gt;
&lt;P&gt;It looks like there are some differences between your raw data and the sample data.&lt;/P&gt;
&lt;P&gt;I didn't get this error when using the data you provided above so that I could not reproduce the scenario.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jay&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 08:33:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Win-Rate/m-p/2516912#M70024</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-16T08:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: Win Rate</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Win-Rate/m-p/2811530#M89006</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i wolud like to thank you for answering my query perfictly,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I need some additional help over here.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I added an additional colomn to the final table, just to link it with the fact table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But i am getting the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A circular dependency was detected.&lt;/P&gt;&lt;P&gt;have you ever experinced this kind of issues?&lt;/P&gt;&lt;P&gt;do you have any idea how can i solve it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Oct 2022 09:13:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Win-Rate/m-p/2811530#M89006</guid>
      <dc:creator>Hadill</dc:creator>
      <dc:date>2022-10-02T09:13:57Z</dc:date>
    </item>
  </channel>
</rss>

