<?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 How to write measure for counting rows based result produced by another measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-write-measure-for-counting-rows-based-result-produced-by/m-p/1758062#M36745</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I stuck at a situation which seems quite challenging for me. Kindly enlighten your views.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 04 tables in my data model.&lt;/P&gt;&lt;P&gt;Table 1: Network Code Master: This is dimension table with Network Code details for eg: each code is in which state etc.&lt;/P&gt;&lt;P&gt;Table 2: Calendar: This is default calendar table&lt;/P&gt;&lt;P&gt;Table 3: Contains Target: Coloumns are: Network Code, Target Month, Type of Service (Free/Paid), Target No. of service (1 network code will appear 1 time per month)&lt;/P&gt;&lt;P&gt;Table 4: Contains Result: Coloumns are: Network Code, Result Month, Actual No. of Service (Total)&amp;nbsp;(1 network code will appear 1 time per month)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created measure for Total Target = by using calculate &amp;amp; filter function: Networkwise/ Monthwise total service volume (sum of paid &amp;amp; free service) from Table 3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created another measure for Total result = by simpling using calculate sum of actual no. of service from Table 4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another measure for Target Achieve No. = by dividing above 02 measure (result divide by target)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now here is requirement. Now I want to count no. of dealers (network codes) achieved&lt;/P&gt;&lt;P&gt;100% &amp;amp; above result,&lt;/P&gt;&lt;P&gt;80%~99%,&lt;/P&gt;&lt;P&gt;Below 80%&lt;/P&gt;&lt;P&gt;I will plot a tendency chart by month for the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: I can do it by adding calculated colomn however it is giving performance issue so solution should be related to DAX measure&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pls. advise&lt;/P&gt;</description>
    <pubDate>Wed, 31 Mar 2021 16:28:12 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-03-31T16:28:12Z</dc:date>
    <item>
      <title>How to write measure for counting rows based result produced by another measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-write-measure-for-counting-rows-based-result-produced-by/m-p/1758062#M36745</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I stuck at a situation which seems quite challenging for me. Kindly enlighten your views.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 04 tables in my data model.&lt;/P&gt;&lt;P&gt;Table 1: Network Code Master: This is dimension table with Network Code details for eg: each code is in which state etc.&lt;/P&gt;&lt;P&gt;Table 2: Calendar: This is default calendar table&lt;/P&gt;&lt;P&gt;Table 3: Contains Target: Coloumns are: Network Code, Target Month, Type of Service (Free/Paid), Target No. of service (1 network code will appear 1 time per month)&lt;/P&gt;&lt;P&gt;Table 4: Contains Result: Coloumns are: Network Code, Result Month, Actual No. of Service (Total)&amp;nbsp;(1 network code will appear 1 time per month)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created measure for Total Target = by using calculate &amp;amp; filter function: Networkwise/ Monthwise total service volume (sum of paid &amp;amp; free service) from Table 3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created another measure for Total result = by simpling using calculate sum of actual no. of service from Table 4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another measure for Target Achieve No. = by dividing above 02 measure (result divide by target)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now here is requirement. Now I want to count no. of dealers (network codes) achieved&lt;/P&gt;&lt;P&gt;100% &amp;amp; above result,&lt;/P&gt;&lt;P&gt;80%~99%,&lt;/P&gt;&lt;P&gt;Below 80%&lt;/P&gt;&lt;P&gt;I will plot a tendency chart by month for the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: I can do it by adding calculated colomn however it is giving performance issue so solution should be related to DAX measure&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pls. advise&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 16:28:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-write-measure-for-counting-rows-based-result-produced-by/m-p/1758062#M36745</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-03-31T16:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to write measure for counting rows based result produced by another measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-write-measure-for-counting-rows-based-result-produced-by/m-p/1758953#M36768</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , Seem like you need to bucket a measure. This can be done with help from an independent table and new measure with a common group &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Refer to my video on that&lt;/P&gt;
&lt;P&gt;&lt;A href="https://youtu.be/CuczXPj0N-k" target="_blank"&gt;https://youtu.be/CuczXPj0N-k&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.daxpatterns.com/dynamic-segmentation/" target="_blank"&gt;https://www.daxpatterns.com/dynamic-segmentation/&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://radacad.com/grouping-and-binning-step-towards-better-data-visualization" target="_blank"&gt;https://radacad.com/grouping-and-binning-step-towards-better-data-visualization&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 05:43:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-write-measure-for-counting-rows-based-result-produced-by/m-p/1758953#M36768</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-04-01T05:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to write measure for counting rows based result produced by another measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-write-measure-for-counting-rows-based-result-produced-by/m-p/1762767#M36912</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&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;, I read article written by you in link. Requirement is matching to my requirement. However it needs study at my end and then I can try to complete the same.&lt;/P&gt;&lt;P&gt;Let me study and I will try the same. After trying I will share findings. Also I will watch video soon (currently restrictions in company to open you tube). Will watch and then give it a try&lt;/P&gt;</description>
      <pubDate>Sun, 04 Apr 2021 14:26:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-write-measure-for-counting-rows-based-result-produced-by/m-p/1762767#M36912</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-04T14:26:49Z</dc:date>
    </item>
  </channel>
</rss>

