<?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: Need Help in Desktop</title>
    <link>https://community.fabric.microsoft.com/t5/Desktop/Need-Help/m-p/2617150#M921237</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="405205" data-lia-user-login="Vindesh" class="lia-mention lia-mention-user"&gt;Vindesh&lt;/a&gt; ,&amp;nbsp; Try measure like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sumx(Filter(values(Hierarchy[Territory]), [Secondary Sales measure] &amp;gt;90 ) , [Secondary Sales measure])&lt;/P&gt;</description>
    <pubDate>Mon, 04 Jul 2022 10:24:13 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2022-07-04T10:24:13Z</dc:date>
    <item>
      <title>Need Help</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Need-Help/m-p/2617138#M921232</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have 3 tables (PrimarySales,SecondarySales and Hierarchy).&lt;/P&gt;&lt;P&gt;Territory Column is common among them and i have joined Hierarchy table with PrimarySales and Secondary sales table on common Key(Territory).&lt;/P&gt;&lt;P&gt;Now, I want to have a mesure which can give me count of Territory whose Secondary sales is &amp;lt;90% of Primary Sales or vice versa.&lt;/P&gt;&lt;P&gt;Please guide and help to achieve the same.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2022 10:22:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Need-Help/m-p/2617138#M921232</guid>
      <dc:creator>Vindesh</dc:creator>
      <dc:date>2022-07-04T10:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Need-Help/m-p/2617150#M921237</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="405205" data-lia-user-login="Vindesh" class="lia-mention lia-mention-user"&gt;Vindesh&lt;/a&gt; ,&amp;nbsp; Try measure like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sumx(Filter(values(Hierarchy[Territory]), [Secondary Sales measure] &amp;gt;90 ) , [Secondary Sales measure])&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2022 10:24:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Need-Help/m-p/2617150#M921237</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-07-04T10:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Need-Help/m-p/2617154#M921238</link>
      <description>&lt;P&gt;Can you show a depiction of how the model is set up please?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2022 10:25:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Need-Help/m-p/2617154#M921238</guid>
      <dc:creator>PaulDBrown</dc:creator>
      <dc:date>2022-07-04T10:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Need-Help/m-p/2617179#M921247</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2022 10:30:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Need-Help/m-p/2617179#M921247</guid>
      <dc:creator>Vindesh</dc:creator>
      <dc:date>2022-07-04T10:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Need-Help/m-p/2617410#M921318</link>
      <description>&lt;P&gt;Ok, you need a couple of measures (+ the sum for the sales in each table)&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;Sales 1 where S2 &amp;gt; 90% =
VAR _90Threshold =
    DIVIDE ( [Sum Sales 1], [Sum Sales 2] )
RETURN
    IF ( _90Threshold &amp;gt; 0.9, 1 )
&lt;/LI-CODE&gt;&lt;LI-CODE lang="cpp"&gt;Final = 
SUMX(VALUES('Hierarchy'[Region]), [Sales 1 where S2 &amp;gt; 90%])&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2022 12:08:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Need-Help/m-p/2617410#M921318</guid>
      <dc:creator>PaulDBrown</dc:creator>
      <dc:date>2022-07-04T12:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Need-Help/m-p/2617842#M921437</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Many thanks for your reply ans yes same objective even i want to achieve which i rflecting in your image.However,request you to explain bit in detail for measure creation part.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2022 15:07:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Need-Help/m-p/2617842#M921437</guid>
      <dc:creator>Vindesh</dc:creator>
      <dc:date>2022-07-04T15:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Need-Help/m-p/2617999#M921466</link>
      <description>&lt;P&gt;The first measure, [&lt;/P&gt;
&lt;PRE class=""&gt;&lt;CODE&gt;Sales 1 where S2 &amp;gt; 90%&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Returns the value 1 when the division of the primary sales by the secondary sales is greater than 0.9 (90%)&lt;/P&gt;
&lt;P&gt;The second measure,&lt;/P&gt;
&lt;PRE class=""&gt;&lt;CODE&gt;Final&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Sums these 1 values to obtain the total.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;I've attached the sample PBIX file for you&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class=""&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE class=""&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 04 Jul 2022 16:34:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Need-Help/m-p/2617999#M921466</guid>
      <dc:creator>PaulDBrown</dc:creator>
      <dc:date>2022-07-04T16:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Need-Help/m-p/2699741#M944459</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks, this has worked for me.&lt;/P&gt;&lt;P&gt;However, one challange is it is giving me count which include duplicates territory names since my hierarchy table contains duplicates.&lt;/P&gt;&lt;P&gt;Not able to figure out to hoe to get distinct count in sumx.&lt;/P&gt;&lt;P&gt;Please guide/help&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 06:31:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Need-Help/m-p/2699741#M944459</guid>
      <dc:creator>Vindesh</dc:creator>
      <dc:date>2022-08-15T06:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Need-Help/m-p/2700139#M944551</link>
      <description>&lt;P&gt;I'm not sure what you mean. The relationships stemming from your Hirarchy table are on the "One" side, which means they are unique values. There should be no duplicates.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 10:34:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Need-Help/m-p/2700139#M944551</guid>
      <dc:creator>PaulDBrown</dc:creator>
      <dc:date>2022-08-15T10:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Need-Help/m-p/2700166#M944557</link>
      <description>&lt;P&gt;Hierarchy table contains duplicates of territory name since its on brand level.&lt;/P&gt;&lt;P&gt;If any territory is bound to sell more than one brand than for that territory there is more than one record in hierarchy table.So i ahve modified your dax in to below one&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FInal Count = &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DISTINCTCOUNT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Master[Territory-22]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Master&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'Measure'&lt;/SPAN&gt;&lt;SPAN&gt;[90% SS]&lt;/SPAN&gt;&lt;SPAN&gt;)).&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;However this is also not working for all the records correctly because its considering those records also where either one of the conditons is met.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;90% SS = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&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&gt;&lt;SPAN&gt;In below image you can see for siliguri also it is giving me a count.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 15 Aug 2022 10:42:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Need-Help/m-p/2700166#M944557</guid>
      <dc:creator>Vindesh</dc:creator>
      <dc:date>2022-08-15T10:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Need-Help/m-p/2700215#M944570</link>
      <description>&lt;P&gt;Please share some non-confidential sample data or PBIX file&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 11:13:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Need-Help/m-p/2700215#M944570</guid>
      <dc:creator>PaulDBrown</dc:creator>
      <dc:date>2022-08-15T11:13:52Z</dc:date>
    </item>
  </channel>
</rss>

