<?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: Translating SQL command to DAX Measure Help! in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Translating-SQL-command-to-DAX-Measure-Help/m-p/2324844#M58161</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="295343" data-lia-user-login="bballjoe12" class="lia-mention lia-mention-user"&gt;bballjoe12&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can create a measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
IF (
    LEFT ( MAX ( 'Table'[Group] ), 2 ) = "DS"
        &amp;amp;&amp;amp; RIGHT(MAX('Table'[Group]),1)= "*"
        &amp;amp;&amp;amp; MAX ( 'Table'[GroupChangeFlag] ) &amp;gt;= 1
        &amp;amp;&amp;amp; MAX ( 'Table'[GroupSeqNum] ) &amp;gt; 1,
    1
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sample data&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Put the measure into visual level filters, set show items when the value is 1.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Stephen Tao&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&lt;STRONG&gt;&lt;EM&gt; Accept it as the solution &lt;/EM&gt;&lt;/STRONG&gt;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Feb 2022 07:54:25 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-02-08T07:54:25Z</dc:date>
    <item>
      <title>Translating SQL command to DAX Measure Help!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Translating-SQL-command-to-DAX-Measure-Help/m-p/2311799#M57492</link>
      <description>&lt;P&gt;I'm trying to create a DAX measure that would grab me the values from a table similar to what this SQL command would do.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SELECT TicketNumber&lt;/P&gt;&lt;P&gt;WHERE Group LIKE "DS_*"&lt;/P&gt;&lt;P&gt;AND GroupChangeFlag &amp;gt;=1&lt;/P&gt;&lt;P&gt;AND GroupSeqNum &amp;gt; 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am failing miserably and have looked all over the internet.&amp;nbsp; If the measure would just display the Ticket Numbers that would be perfect!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jan 2022 21:59:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Translating-SQL-command-to-DAX-Measure-Help/m-p/2311799#M57492</guid>
      <dc:creator>bballjoe12</dc:creator>
      <dc:date>2022-01-31T21:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: Translating SQL command to DAX Measure Help!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Translating-SQL-command-to-DAX-Measure-Help/m-p/2311851#M57495</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="295343" data-lia-user-login="bballjoe12" class="lia-mention lia-mention-user"&gt;bballjoe12&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it Access Code?&lt;BR /&gt;You can use this to create a new table with one column as&amp;nbsp;&lt;SPAN&gt;Ticket Numbers and all filters:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="php"&gt;New Table =
CALCULATETABLE (
    VALUES ( table[TicketNumber] ),
    FILTER (
        table,
        LEFT ( table[Group], 2 ) = "DS"
            &amp;amp;&amp;amp; LEN ( table[Group] ) &amp;gt;= 3
            &amp;amp;&amp;amp; Tble[GroupChangeFlag] &amp;gt;= 1
            &amp;amp;&amp;amp; table[GroupSeqNum] &amp;gt; 1
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;helps&lt;/SPAN&gt;&lt;/STRONG&gt;, please consider&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;accepting&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;it as the solution&lt;/SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN&gt;Appreciate your Kudos!!&lt;BR /&gt;&lt;STRONG&gt;LinkedIn:&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;A href="https://www.linkedin.com/in/vahid-dm/" target="_blank"&gt;www.linkedin.com/in/vahid-dm/&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jan 2022 23:21:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Translating-SQL-command-to-DAX-Measure-Help/m-p/2311851#M57495</guid>
      <dc:creator>VahidDM</dc:creator>
      <dc:date>2022-01-31T23:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Translating SQL command to DAX Measure Help!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Translating-SQL-command-to-DAX-Measure-Help/m-p/2311899#M57498</link>
      <description>&lt;P&gt;Hello! Thank you for the response.&amp;nbsp; The table that I am using is currently part of a larger dataset, that I am not the owner of.&amp;nbsp; It seems that the New Table icon is grayed out and I can only create a new measure or a quick measure.&amp;nbsp; Can I still use your syntax by creating a new measure?&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;</description>
      <pubDate>Tue, 01 Feb 2022 00:40:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Translating-SQL-command-to-DAX-Measure-Help/m-p/2311899#M57498</guid>
      <dc:creator>bballjoe12</dc:creator>
      <dc:date>2022-02-01T00:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: Translating SQL command to DAX Measure Help!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Translating-SQL-command-to-DAX-Measure-Help/m-p/2311967#M57501</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="295343" data-lia-user-login="bballjoe12" class="lia-mention lia-mention-user"&gt;bballjoe12&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use the filter section in your measure to find the result&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;helps&lt;/SPAN&gt;&lt;/STRONG&gt;, please consider&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;accepting&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;it as the solution&lt;/SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN&gt;Appreciate your Kudos!!&lt;BR /&gt;&lt;STRONG&gt;LinkedIn:&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;A href="https://www.linkedin.com/in/vahid-dm/" target="_blank"&gt;www.linkedin.com/in/vahid-dm/&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2022 01:48:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Translating-SQL-command-to-DAX-Measure-Help/m-p/2311967#M57501</guid>
      <dc:creator>VahidDM</dc:creator>
      <dc:date>2022-02-01T01:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Translating SQL command to DAX Measure Help!</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Translating-SQL-command-to-DAX-Measure-Help/m-p/2324844#M58161</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="295343" data-lia-user-login="bballjoe12" class="lia-mention lia-mention-user"&gt;bballjoe12&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can create a measure.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
IF (
    LEFT ( MAX ( 'Table'[Group] ), 2 ) = "DS"
        &amp;amp;&amp;amp; RIGHT(MAX('Table'[Group]),1)= "*"
        &amp;amp;&amp;amp; MAX ( 'Table'[GroupChangeFlag] ) &amp;gt;= 1
        &amp;amp;&amp;amp; MAX ( 'Table'[GroupSeqNum] ) &amp;gt; 1,
    1
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sample data&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Put the measure into visual level filters, set show items when the value is 1.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Stephen Tao&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider&lt;STRONG&gt;&lt;EM&gt; Accept it as the solution &lt;/EM&gt;&lt;/STRONG&gt;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 07:54:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Translating-SQL-command-to-DAX-Measure-Help/m-p/2324844#M58161</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-08T07:54:25Z</dc:date>
    </item>
  </channel>
</rss>

