<?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: Converting SQL into DAX... in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-SQL-into-DAX/m-p/2848907#M91237</link>
    <description>&lt;P&gt;i did not get the right results because the sql query is having distinct fields&lt;/P&gt;</description>
    <pubDate>Tue, 18 Oct 2022 11:09:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-10-18T11:09:13Z</dc:date>
    <item>
      <title>Converting SQL into DAX...</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-SQL-into-DAX/m-p/2726799#M83386</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have written the sql query below&lt;/P&gt;&lt;P&gt;SELECT count(job_id) FROM (SELECT distinct job_id,status,DENSE_RANK over() partition by job_id order by timestamp desc AS rn FROM table1) t2 WHERE t2.rn = 1 and&amp;nbsp;where t2.status = "PAUSED"&lt;/P&gt;&lt;P&gt;to get the number of paused jobs by getting the latest status of the each job_id. I have duplicate values in the table, so I can't use LASTDATE and MAX also didn't work to get the correct result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/73450751/convert-sql-query-into-dax-query-for-powerbi-visual/73484462?noredirect=1#comment129773108_73484462" target="_blank" rel="noopener"&gt;Convert SQL query into DAX query for PowerBI visual - Stack Overflow&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is my question posted in StackOverflow.&lt;/P&gt;&lt;P&gt;the solutions I got don't meet my requirements 100%&lt;/P&gt;&lt;P&gt;Just wondering if anyone knows how to convert that sql query to DAX.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm doing this in direct query mode so there are some limitations as well..&lt;/P&gt;&lt;P&gt;thanks in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2022 16:22:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-SQL-into-DAX/m-p/2726799#M83386</guid>
      <dc:creator>yjk3140</dc:creator>
      <dc:date>2022-08-25T16:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: Converting SQL into DAX...</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-SQL-into-DAX/m-p/2727109#M83419</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/353281"&gt;@yjk3140&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please try&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Paused Jobs =
SUMX (
    VALUES ( 'Table'[job_id] ),
    VAR MaxDate =
        MAX ( 'Table'[timestamp] )
    VAR LastRecord =
        CALCULATETABLE ( 'Table', 'Table'[timestamp] = MaxDate )
    VAR LastStatus =
        MAXX ( LastRecord, 'Table'[status] )
    RETURN
        IF ( LastStatus = "PAUSED", 1 )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 25 Aug 2022 19:55:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-SQL-into-DAX/m-p/2727109#M83419</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-08-25T19:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: Converting SQL into DAX...</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-SQL-into-DAX/m-p/2727115#M83422</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/317289"&gt;@tamerj1&lt;/a&gt;, tanks for your resoponse &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I tried your query, but it gives me blank as a result...&lt;/P&gt;&lt;P&gt;do you think this dax query makes sense to get the correct result?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 14:46:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-SQL-into-DAX/m-p/2727115#M83422</guid>
      <dc:creator>yjk3140</dc:creator>
      <dc:date>2022-08-26T14:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: Converting SQL into DAX...</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-SQL-into-DAX/m-p/2727172#M83424</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/317289"&gt;@tamerj1&lt;/a&gt;&amp;nbsp;, I think if I understood your query correctly..you are finding the latest timestamp in the table then count the job_ids are in paused status with that timestamp. please correct me if I understood it wrong.. but what i want is to find the max timestamp for each job_id then if the status of the job is in paused status with its latest timestamp then count it as 1.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2022 21:12:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-SQL-into-DAX/m-p/2727172#M83424</guid>
      <dc:creator>yjk3140</dc:creator>
      <dc:date>2022-08-25T21:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: Converting SQL into DAX...</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-SQL-into-DAX/m-p/2727511#M83434</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/353281"&gt;@yjk3140&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Apologies. It was too late last night and seems that I missed one small detail. Please use&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Paused Jobs =
SUMX (
    VALUES ( 'Table'[job_id] ),
    VAR MaxDate =
        CALCULATE ( MAX ( 'Table'[timestamp] ) )
    VAR LastRecord =
        CALCULATETABLE ( 'Table', 'Table'[timestamp] = MaxDate )
    VAR LastStatus =
        MAXX ( LastRecord, 'Table'[status] )
    RETURN
        IF ( LastStatus = "PAUSED", 1 )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and yes, for each job id we are finding the max date then we count it only if it is PAUSED&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 02:44:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-SQL-into-DAX/m-p/2727511#M83434</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-08-26T02:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Converting SQL into DAX...</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-SQL-into-DAX/m-p/2728317#M83473</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/317289"&gt;@tamerj1&lt;/a&gt;! your DAX query looks logically correct and smart but I don't think MAX function works for the date column here..I'm not getting any result but blank.&lt;/P&gt;&lt;P&gt;Do you think there is another approach to solve this query that I can try?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for your help!&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 09:17:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-SQL-into-DAX/m-p/2728317#M83473</guid>
      <dc:creator>yjk3140</dc:creator>
      <dc:date>2022-08-26T09:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: Converting SQL into DAX...</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-SQL-into-DAX/m-p/2728429#M83480</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/353281"&gt;@yjk3140&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Just now I've prepared a sample file and it works just fine. However, this for sure depends of the filter context. The details that you might think they don't matter&amp;nbsp;they actually do.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 639px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/772750i91CCC65313E1CCA8/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 09:55:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-SQL-into-DAX/m-p/2728429#M83480</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-08-26T09:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Converting SQL into DAX...</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-SQL-into-DAX/m-p/2728459#M83483</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/317289"&gt;@tamerj1&lt;/a&gt;&amp;nbsp;yes the query looks really clear but I'm not sure why it doesn't work on my dataset...&lt;/P&gt;&lt;P&gt;This is a screenshot of the actual table I have below&lt;/P&gt;&lt;P&gt;do you think the format of the date matters here..? if so, is there anyway to get the result I want with the timestamps in this format?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;really appreciate your help..!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 12:55:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-SQL-into-DAX/m-p/2728459#M83483</guid>
      <dc:creator>yjk3140</dc:creator>
      <dc:date>2022-08-26T12:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: Converting SQL into DAX...</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-SQL-into-DAX/m-p/2728564#M83484</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/317289"&gt;@tamerj1&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;&lt;P&gt;can we use count function intead of sum and if functions?&amp;nbsp;&lt;/P&gt;&lt;P&gt;sth like this..(not sure if this query would make sense)&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Paused Jobs = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;MaxDate&lt;/SPAN&gt;&lt;SPAN&gt; =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;'table1'&lt;/SPAN&gt;&lt;SPAN&gt;[timestamp]&lt;/SPAN&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;LastRecord&lt;/SPAN&gt;&lt;SPAN&gt; =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATETABLE&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;'table1'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'table1'&lt;/SPAN&gt;&lt;SPAN&gt;[timestamp]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;MaxDate&lt;/SPAN&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;LastStatus&lt;/SPAN&gt;&lt;SPAN&gt; =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;MAXX&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;LastRecord&lt;/SPAN&gt;&lt;SPAN&gt;, table1&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;[job_active_status]&lt;/SPAN&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;countid&lt;/SPAN&gt;&lt;SPAN&gt; = &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;ops_log&lt;/SPAN&gt;&lt;SPAN&gt;[job_id]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;LastStatus&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;"PUASED"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt; &lt;SPAN&gt;countid&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 26 Aug 2022 10:42:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-SQL-into-DAX/m-p/2728564#M83484</guid>
      <dc:creator>yjk3140</dc:creator>
      <dc:date>2022-08-26T10:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: Converting SQL into DAX...</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-SQL-into-DAX/m-p/2728571#M83486</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/353281"&gt;@yjk3140&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Is it a text or date format?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 10:44:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-SQL-into-DAX/m-p/2728571#M83486</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-08-26T10:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: Converting SQL into DAX...</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-SQL-into-DAX/m-p/2728582#M83487</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/317289"&gt;@tamerj1&lt;/a&gt;&lt;/P&gt;&lt;P&gt;It's a date/time format!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 12:55:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-SQL-into-DAX/m-p/2728582#M83487</guid>
      <dc:creator>yjk3140</dc:creator>
      <dc:date>2022-08-26T12:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: Converting SQL into DAX...</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-SQL-into-DAX/m-p/2728592#M83489</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/353281"&gt;@yjk3140&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please make sure you have this CALCULATE in your code&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 639px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/772803i9220C81EC30F4B28/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 10:52:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-SQL-into-DAX/m-p/2728592#M83489</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-08-26T10:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: Converting SQL into DAX...</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-SQL-into-DAX/m-p/2728632#M83491</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/317289"&gt;@tamerj1&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to use this query below to count the # of the jobs&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Paused Jobs = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; MaxDate =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt; ( 'table1'[timestamp] ))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; LastRecord =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATETABLE&lt;/SPAN&gt;&lt;SPAN&gt; ( 'table1', 'table1'[timestamp] = MaxDate )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; LastStatus =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;MAXX&lt;/SPAN&gt;&lt;SPAN&gt; ( LastRecord, 'table1[job_status] )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt;&lt;SPAN&gt; countid = &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;(table1[job_id]), LastStatus = &lt;/SPAN&gt;&lt;SPAN&gt;"PUASED"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;SPAN&gt; countid&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;and it's throwing the error below&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The True/False expression does not specify a column. Each True/False expressions used as a table filter expression must refer to exactly one column&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;How can I fix it? &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 26 Aug 2022 11:06:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-SQL-into-DAX/m-p/2728632#M83491</guid>
      <dc:creator>yjk3140</dc:creator>
      <dc:date>2022-08-26T11:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: Converting SQL into DAX...</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-SQL-into-DAX/m-p/2728647#M83493</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/353281"&gt;@yjk3140&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;would you like to connect via teams or zoom? I have some time now&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 11:15:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-SQL-into-DAX/m-p/2728647#M83493</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-08-26T11:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: Converting SQL into DAX...</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-SQL-into-DAX/m-p/2728663#M83495</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/317289"&gt;@tamerj1&lt;/a&gt;&amp;nbsp; sure! I just created the zoom meeting and ID is 399 024 9510&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 11:24:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-SQL-into-DAX/m-p/2728663#M83495</guid>
      <dc:creator>yjk3140</dc:creator>
      <dc:date>2022-08-26T11:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: Converting SQL into DAX...</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-SQL-into-DAX/m-p/2728673#M83497</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/353281"&gt;@yjk3140&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I'll join in 5min&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 11:28:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-SQL-into-DAX/m-p/2728673#M83497</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-08-26T11:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Converting SQL into DAX...</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-SQL-into-DAX/m-p/2728677#M83499</link>
      <description>&lt;P&gt;sure thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 11:29:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-SQL-into-DAX/m-p/2728677#M83499</guid>
      <dc:creator>yjk3140</dc:creator>
      <dc:date>2022-08-26T11:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: Converting SQL into DAX...</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-SQL-into-DAX/m-p/2728684#M83500</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/353281"&gt;@yjk3140&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Asking for meeting passcode&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 11:31:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-SQL-into-DAX/m-p/2728684#M83500</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-08-26T11:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: Converting SQL into DAX...</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-SQL-into-DAX/m-p/2728688#M83501</link>
      <description>&lt;P&gt;///&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 14:47:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-SQL-into-DAX/m-p/2728688#M83501</guid>
      <dc:creator>yjk3140</dc:creator>
      <dc:date>2022-08-26T14:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Converting SQL into DAX...</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-SQL-into-DAX/m-p/2728737#M83505</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/317289"&gt;@tamerj1&lt;/a&gt;! could you join again? the meeting ended because of the subscription issue..I just started the same one&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 12:15:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Converting-SQL-into-DAX/m-p/2728737#M83505</guid>
      <dc:creator>yjk3140</dc:creator>
      <dc:date>2022-08-26T12:15:45Z</dc:date>
    </item>
  </channel>
</rss>

