<?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 to count of rows from New Measure column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-count-of-rows-from-New-Measure-column/m-p/2918509#M95649</link>
    <description>&lt;P&gt;Yes it is record table. it is connected to&amp;nbsp;postgresql database.&amp;nbsp;and it came as &lt;STRONG&gt;Direct query&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;as you mention, not able to add column due to error&amp;nbsp;&lt;/P&gt;&lt;P&gt;Order Since = Today() - 'Poduction Ready'[orderdate]&amp;nbsp; i.e. 'Production Ready' is table name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;and so,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;100PlusCount :=&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;COUNTROWS(&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; FILTER(&lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; 'Production Ready',&amp;nbsp;&lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;'Production Ready'[Order Since]&amp;gt;=100&lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;)&lt;/SPAN&gt;&lt;DIV&gt;)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;is not applied.&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 21 Nov 2022 10:53:37 GMT</pubDate>
    <dc:creator>Vinit</dc:creator>
    <dc:date>2022-11-21T10:53:37Z</dc:date>
    <item>
      <title>DAX to count of rows from New Measure column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-count-of-rows-from-New-Measure-column/m-p/2917764#M95578</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Purpose&lt;/STRONG&gt;&lt;/U&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I required DAX formula for 'Count greater than 100 of Order Since column ' . Order since is Direct Query Meaure column&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g. ( Order Since =&amp;nbsp;DATEDIFF(SELECTEDVALUE('Production Ready'[orderdate]),TODAY(),DAY)&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Explanination&lt;/U&gt;:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I want DAX&amp;nbsp; in &lt;STRONG&gt;Direct Query&lt;/STRONG&gt; to calculate for how many times the value is greater than 100 in order since column. i.e. 20 times,&lt;/P&gt;&lt;P&gt;to put value (20) into Card Tile. so that i can create alert in power bi service&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Suggestions:&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If you have any other solution, Please suggest.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know, if require any other clarification&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 06:34:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-count-of-rows-from-New-Measure-column/m-p/2917764#M95578</guid>
      <dc:creator>Vinit</dc:creator>
      <dc:date>2022-11-21T06:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: DAX to count of rows from New Measure column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-count-of-rows-from-New-Measure-column/m-p/2917822#M95584</link>
      <description>&lt;DIV&gt;You would need a measure with the code below:&lt;DIV&gt;&amp;nbsp;&lt;DIV&gt;100PlusCount =&amp;nbsp;&lt;DIV&gt;COUNTROWS(&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; FILTER(&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; ALL(TableName),&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;TableName&lt;SPAN&gt;[Order Since]&amp;gt;=100&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;)&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 21 Nov 2022 06:58:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-count-of-rows-from-New-Measure-column/m-p/2917822#M95584</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2022-11-21T06:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: DAX to count of rows from New Measure column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-count-of-rows-from-New-Measure-column/m-p/2917950#M95598</link>
      <description>&lt;P&gt;Hi FreemanZ,&lt;/P&gt;&lt;P&gt;above shared DAX is working but it shows wrong count no.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I used 'ALL' inside FILTER then it shows 28k (which is completely wrong. and does not change with Date slicer) but If I used 'ALLSELECTED' then it shows nearer to value but not correct.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I can see only 6 values which is above 100, but it shows 19.&amp;nbsp;&lt;/P&gt;&lt;P&gt;and the value should change according to Date changes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know anything required,&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 07:47:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-count-of-rows-from-New-Measure-column/m-p/2917950#M95598</guid>
      <dc:creator>Vinit</dc:creator>
      <dc:date>2022-11-21T07:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: DAX to count of rows from New Measure column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-count-of-rows-from-New-Measure-column/m-p/2918166#M95614</link>
      <description>&lt;P&gt;Is [measure 2] really a measure? try to change it to column name - Order Since&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 09:07:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-count-of-rows-from-New-Measure-column/m-p/2918166#M95614</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2022-11-21T09:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: DAX to count of rows from New Measure column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-count-of-rows-from-New-Measure-column/m-p/2918226#M95622</link>
      <description>&lt;P&gt;Yes, It is a measure. I Rename it as 'Order Since'&lt;/P&gt;&lt;P&gt;Measure 2 = Order Since =&amp;nbsp;DATEDIFF(SELECTEDVALUE('Production Ready'[orderdate]),TODAY(),DAY)&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 09:24:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-count-of-rows-from-New-Measure-column/m-p/2918226#M95622</guid>
      <dc:creator>Vinit</dc:creator>
      <dc:date>2022-11-21T09:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: DAX to count of rows from New Measure column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-count-of-rows-from-New-Measure-column/m-p/2918295#M95627</link>
      <description>&lt;P&gt;the screenshot is basically a record table, suggest to add a new column in your table, with such code:&lt;/P&gt;&lt;P&gt;Order Since = TODAY() - TableName[Order Dt.],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then use this code for the measure:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;100PlusCount :=&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;COUNTROWS(&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; FILTER(&lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; TableName,&amp;nbsp;&lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;TableName[Order Since]&amp;gt;=100&lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;)&lt;/SPAN&gt;&lt;DIV&gt;)&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 21 Nov 2022 09:43:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-count-of-rows-from-New-Measure-column/m-p/2918295#M95627</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2022-11-21T09:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: DAX to count of rows from New Measure column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-count-of-rows-from-New-Measure-column/m-p/2918509#M95649</link>
      <description>&lt;P&gt;Yes it is record table. it is connected to&amp;nbsp;postgresql database.&amp;nbsp;and it came as &lt;STRONG&gt;Direct query&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;as you mention, not able to add column due to error&amp;nbsp;&lt;/P&gt;&lt;P&gt;Order Since = Today() - 'Poduction Ready'[orderdate]&amp;nbsp; i.e. 'Production Ready' is table name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;and so,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;100PlusCount :=&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;COUNTROWS(&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; FILTER(&lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; 'Production Ready',&amp;nbsp;&lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;'Production Ready'[Order Since]&amp;gt;=100&lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;)&lt;/SPAN&gt;&lt;DIV&gt;)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;is not applied.&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 21 Nov 2022 10:53:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-to-count-of-rows-from-New-Measure-column/m-p/2918509#M95649</guid>
      <dc:creator>Vinit</dc:creator>
      <dc:date>2022-11-21T10:53:37Z</dc:date>
    </item>
  </channel>
</rss>

