<?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: DAX formula to count number of value base on measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-to-count-number-of-value-base-on-measure/m-p/4629291#M177218</link>
    <description>&lt;P&gt;Thank you for the proposal, it almost work as I expext except that the formula count how many time for each supplier and commodities the ITO is lower than 12, so if supplier is serving 3 commodities that are lower than 1, it will count for 3.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there possible to check just the ITO at supplier level?&lt;/P&gt;&lt;P&gt;from&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to this&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Even if supplier has ITO per commodity &amp;lt;12 just considering the total ITO for the all ommodity in once.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for your support&lt;/P&gt;</description>
    <pubDate>Fri, 28 Mar 2025 12:54:36 GMT</pubDate>
    <dc:creator>Dimitri70</dc:creator>
    <dc:date>2025-03-28T12:54:36Z</dc:date>
    <item>
      <title>DAX formula to count number of value base on measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-to-count-number-of-value-base-on-measure/m-p/4628457#M177191</link>
      <description>&lt;P&gt;Hello, I'm getting very frustating today trying to make a new measure but not giving correct result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this table&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Commodity&lt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;10&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In power BI, I created a new measure to calculate the Inventory turn over ITO =(Past consumption /Inventory) and then I would like to create a formula to know for example when I select the commodity X, how many supplier has the Inventory turn value less than 12 (answer should be 2). And if I select commodity X and Y, it should still be 2.&lt;/P&gt;&lt;P&gt;I tried to use a formula such as =&amp;nbsp;CALCULATE(DISTINCTCOUNT('data'[Supplier]),FILTER('data','data'[ITO]&amp;lt;12)) but result is not matching.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have an idea how I could proceed?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2025 03:16:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-to-count-number-of-value-base-on-measure/m-p/4628457#M177191</guid>
      <dc:creator>Dimitri70</dc:creator>
      <dc:date>2025-03-28T03:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula to count number of value base on measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-to-count-number-of-value-base-on-measure/m-p/4628475#M177193</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure how it is created, but if you try to create calcualted column like the below, I think it is working.&lt;BR /&gt;please check the below picture and the attached pbix file.&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;
&lt;P&gt;this is calculated column&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;ITO CC = 
data[Past consumption] / data[Inventory]&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;this is measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;expected result measure: = 
CALCULATE ( DISTINCTCOUNT ( 'data'[Supplier] ), 'data'[ITO CC] &amp;lt; 12 )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2025 03:54:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-to-count-number-of-value-base-on-measure/m-p/4628475#M177193</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2025-03-28T03:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula to count number of value base on measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-to-count-number-of-value-base-on-measure/m-p/4628482#M177194</link>
      <description>&lt;P&gt;Thank you for the suggestion, I tried but I get same result.&lt;/P&gt;&lt;P&gt;from the moment where a supplier has a part number in the commodity with the ITO&amp;lt;12, it is count as 1 even if the total value of ITO per supplier &amp;amp;commodity is &amp;gt;12.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2025 04:10:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-to-count-number-of-value-base-on-measure/m-p/4628482#M177194</guid>
      <dc:creator>Dimitri70</dc:creator>
      <dc:date>2025-03-28T04:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula to count number of value base on measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-to-count-number-of-value-base-on-measure/m-p/4628488#M177195</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Please share your sample pbix file's link (onedrive or dropbox or googlelink or else) here, and then I can try to look into it.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2025 04:17:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-to-count-number-of-value-base-on-measure/m-p/4628488#M177195</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2025-03-28T04:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula to count number of value base on measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-to-count-number-of-value-base-on-measure/m-p/4628524#M177196</link>
      <description>&lt;P&gt;Sorry I cant sent as it is sensitive data.&lt;/P&gt;&lt;P&gt;But below this is to show my issue:&lt;/P&gt;&lt;P&gt;You can see below at supplier level ITO is 43 so higher than 12 but formula still give 1 as answer&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Then at supplier and commodity level: Still formula give 1 even if ITO is higher than 12&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;By deepdown I can see the 1 is coming because 1 part number.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to considere supplier level?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2025 05:02:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-to-count-number-of-value-base-on-measure/m-p/4628524#M177196</guid>
      <dc:creator>Dimitri70</dc:creator>
      <dc:date>2025-03-28T05:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula to count number of value base on measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-to-count-number-of-value-base-on-measure/m-p/4628756#M177201</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Please find below my solution regarding your ask please use&amp;nbsp; this&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;Solution =&lt;BR /&gt;var table_ = ADDCOLUMNS(VALUES(solution[Commodity]),"Div",CALCULATE(DIVIDE( SUM(solution[Past consumption]),SUM(solution[Inventory]))))&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;RETURN&lt;BR /&gt;CALCULATE(DISTINCTCOUNT(solution[Supplier]),FILTER(table_,[Div] &amp;lt;12))&lt;/P&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 28 Mar 2025 07:41:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-to-count-number-of-value-base-on-measure/m-p/4628756#M177201</guid>
      <dc:creator>venkatesh-11</dc:creator>
      <dc:date>2025-03-28T07:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula to count number of value base on measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-to-count-number-of-value-base-on-measure/m-p/4628759#M177202</link>
      <description>&lt;P&gt;Solution =&lt;BR /&gt;var table_ = ADDCOLUMNS(VALUES(solution[Commodity]),"Div",CALCULATE(DIVIDE( SUM(solution[Past consumption]),SUM(solution[Inventory]))))&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;RETURN&lt;BR /&gt;CALCULATE(DISTINCTCOUNT(solution[Supplier]),FILTER(table_,[Div] &amp;lt;12))&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2025 07:43:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-to-count-number-of-value-base-on-measure/m-p/4628759#M177202</guid>
      <dc:creator>venkatesh-11</dc:creator>
      <dc:date>2025-03-28T07:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula to count number of value base on measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-to-count-number-of-value-base-on-measure/m-p/4628809#M177205</link>
      <description>&lt;P&gt;Hi Dimitri Please refer my solution if its works please give thumbs up&lt;BR /&gt;Solution =&lt;BR /&gt;var table_ = ADDCOLUMNS(VALUES(solution[Commodity]),"Div",CALCULATE(DIVIDE( SUM(solution[Past consumption]),SUM(solution[Inventory]))))&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;RETURN&lt;BR /&gt;CALCULATE(DISTINCTCOUNT(solution[Supplier]),FILTER(table_, [Div] &amp;lt;12))&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2025 08:10:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-to-count-number-of-value-base-on-measure/m-p/4628809#M177205</guid>
      <dc:creator>venkatesh-11</dc:creator>
      <dc:date>2025-03-28T08:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula to count number of value base on measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-to-count-number-of-value-base-on-measure/m-p/4628811#M177206</link>
      <description>&lt;P&gt;Hi Dimitri Please refer my solution if its works please give thumbs up&lt;BR /&gt;Solution =&lt;BR /&gt;var table_ = ADDCOLUMNS(VALUES(solution[Commodity]),"Div",CALCULATE(DIVIDE( SUM(solution[Past consumption]),SUM(solution[Inventory]))))&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;RETURN&lt;BR /&gt;CALCULATE(DISTINCTCOUNT(solution[Supplier]),FILTER(table_, [Div] &amp;lt;12))&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2025 08:11:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-to-count-number-of-value-base-on-measure/m-p/4628811#M177206</guid>
      <dc:creator>venkatesh-11</dc:creator>
      <dc:date>2025-03-28T08:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula to count number of value base on measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-to-count-number-of-value-base-on-measure/m-p/4628813#M177207</link>
      <description>&lt;P&gt;Hi Dimitri Please refer my solution if its works please give thumbs up&lt;BR /&gt;Solution =&lt;BR /&gt;var table_ = ADDCOLUMNS(VALUES(solution[Commodity]),"Div",CALCULATE(DIVIDE( SUM(solution[Past consumption]),SUM(solution[Inventory]))))&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;RETURN&lt;BR /&gt;CALCULATE(DISTINCTCOUNT(solution[Supplier]),FILTER(table_, [Div] &amp;lt;12))&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2025 08:11:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-to-count-number-of-value-base-on-measure/m-p/4628813#M177207</guid>
      <dc:creator>venkatesh-11</dc:creator>
      <dc:date>2025-03-28T08:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula to count number of value base on measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-to-count-number-of-value-base-on-measure/m-p/4629291#M177218</link>
      <description>&lt;P&gt;Thank you for the proposal, it almost work as I expext except that the formula count how many time for each supplier and commodities the ITO is lower than 12, so if supplier is serving 3 commodities that are lower than 1, it will count for 3.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there possible to check just the ITO at supplier level?&lt;/P&gt;&lt;P&gt;from&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to this&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Even if supplier has ITO per commodity &amp;lt;12 just considering the total ITO for the all ommodity in once.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for your support&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2025 12:54:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-to-count-number-of-value-base-on-measure/m-p/4629291#M177218</guid>
      <dc:creator>Dimitri70</dc:creator>
      <dc:date>2025-03-28T12:54:36Z</dc:date>
    </item>
  </channel>
</rss>

