<?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: count of values based on condition in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/count-of-values-based-on-condition/m-p/4615610#M176641</link>
    <description>&lt;P&gt;Hi, As of now my data doesn't contain restock column . stock covered calculation I wanted to do based on 2 variables I have mentions ,I can't able to achieve those using DAX .&lt;/P&gt;</description>
    <pubDate>Wed, 19 Mar 2025 04:40:58 GMT</pubDate>
    <dc:creator>s_fs</dc:creator>
    <dc:date>2025-03-19T04:40:58Z</dc:date>
    <item>
      <title>count of values based on condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/count-of-values-based-on-condition/m-p/4615006#M176616</link>
      <description>&lt;P&gt;I have created a table visual there I have a column which is numeric and it is weekyear like 202501,202502,202503 ... Then I have a another columns called in-hand goods and demand&amp;nbsp; for the respective weekyear. Now I want to create measure how much I have covered. This measure says that my present weekyear,let say 202501 in-hand goods are 4000 and demand for 202502 is 2000 means I can survive next week with my inhand goods and then we will check for next week 202503 demand which is 1500 . So, we still can survive 202503 week also, for 202504 demand is 1000 . Now comes the point where you exhausted with your inhand stock which is 2000+1500+1000 &amp;gt;= 4000.now I want to count the distinct weekyear which is 3&amp;nbsp; here. Also the safe week means 202503 is the week where we are safe with our goods based on the demand.so,i need to get the sum means 2000+1500 =3500 also. Here 2 variable I need to achieve,Let me know how can I achieve this in dax.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2025 16:18:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/count-of-values-based-on-condition/m-p/4615006#M176616</guid>
      <dc:creator>s_fs</dc:creator>
      <dc:date>2025-03-18T16:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: count of values based on condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/count-of-values-based-on-condition/m-p/4615245#M176622</link>
      <description>&lt;P&gt;That's all very nice but what happens when new demand comes in, and when you restock?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DAX is incapable of doing conditional accumulations. Your only chance is Power Query List.Accumulate&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or - use a proper material planning app, rather than a reporting tool.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Mar 2025 19:36:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/count-of-values-based-on-condition/m-p/4615245#M176622</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2025-03-18T19:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: count of values based on condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/count-of-values-based-on-condition/m-p/4615606#M176639</link>
      <description>&lt;P&gt;Hi ,as of now my data is not having restock column . the measure stock covered is based on the above variables that I have mentioned which is the count and sum of survival in hand goods.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2025 04:23:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/count-of-values-based-on-condition/m-p/4615606#M176639</guid>
      <dc:creator>s_fs</dc:creator>
      <dc:date>2025-03-19T04:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: count of values based on condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/count-of-values-based-on-condition/m-p/4615609#M176640</link>
      <description>&lt;P&gt;Hi, As of now my data doesn't contain restock column . stock covered calculation I wanted to do based on 2 variables I have mentions ,I can't able to achieve those using DAX .&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2025 04:38:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/count-of-values-based-on-condition/m-p/4615609#M176640</guid>
      <dc:creator>s_fs</dc:creator>
      <dc:date>2025-03-19T04:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: count of values based on condition</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/count-of-values-based-on-condition/m-p/4615610#M176641</link>
      <description>&lt;P&gt;Hi, As of now my data doesn't contain restock column . stock covered calculation I wanted to do based on 2 variables I have mentions ,I can't able to achieve those using DAX .&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2025 04:40:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/count-of-values-based-on-condition/m-p/4615610#M176641</guid>
      <dc:creator>s_fs</dc:creator>
      <dc:date>2025-03-19T04:40:58Z</dc:date>
    </item>
  </channel>
</rss>

