<?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: Filtering text with &amp;gt; or &amp;lt; in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-text-with-gt-or-lt/m-p/4948303#M186995</link>
    <description>&lt;P&gt;I think the solution would to use power query to remove the decimal points and possilby store the verison number as a whole number in a column.&amp;nbsp; That way you are just dealing with numbers like, 1110, 1101 and 1102 as the trailing zero shouldn't matter for the comparison you are trying to make.&lt;/P&gt;</description>
    <pubDate>Wed, 28 Jan 2026 18:51:13 GMT</pubDate>
    <dc:creator>d_m_LNK</dc:creator>
    <dc:date>2026-01-28T18:51:13Z</dc:date>
    <item>
      <title>Filtering text with &gt; or &lt;</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-text-with-gt-or-lt/m-p/4946813#M186994</link>
      <description>&lt;P&gt;I have software version information like version 11.0.2 and 11.0.10.&amp;nbsp; If I want to filter to all versions 11.1.0 or later I don't see a good way to filter.&amp;nbsp; Yes, I have broken it into three pieces major, minor, and patch, but for these two version examples when sorting as text 11.0.10 is actually earlier than 11.0.2 (as a string "10" &amp;lt; "2")&lt;BR /&gt;&lt;BR /&gt;My solution was to left pad each piece to 3 characters so that the version looks like 011.000.010 and&amp;nbsp;011.000.002 which works great for sorting, but not for filtering because I don't see a &amp;gt; or &amp;lt; operator, only for numeric values, only things like "contains" and "blank", etc.&lt;BR /&gt;&lt;BR /&gt;So what's my best option?&amp;nbsp; Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jan 2026 17:33:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-text-with-gt-or-lt/m-p/4946813#M186994</guid>
      <dc:creator>mateoc15</dc:creator>
      <dc:date>2026-01-28T17:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering text with &gt; or &lt;</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-text-with-gt-or-lt/m-p/4948303#M186995</link>
      <description>&lt;P&gt;I think the solution would to use power query to remove the decimal points and possilby store the verison number as a whole number in a column.&amp;nbsp; That way you are just dealing with numbers like, 1110, 1101 and 1102 as the trailing zero shouldn't matter for the comparison you are trying to make.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jan 2026 18:51:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-text-with-gt-or-lt/m-p/4948303#M186995</guid>
      <dc:creator>d_m_LNK</dc:creator>
      <dc:date>2026-01-28T18:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering text with &gt; or &lt;</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-text-with-gt-or-lt/m-p/4948325#M186996</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="985487" data-lia-user-login="d_m_LNK" class="lia-mention lia-mention-user"&gt;d_m_LNK&lt;/a&gt;&amp;nbsp; has given an easy solution that should work.&lt;BR /&gt;Here is more complicated Power Query solution if you are in to that sort of thing...&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;let
    Source = 
    Table.FromRows(
        Json.Document(
            Binary.Decompress(
                Binary.FromText(
                    "i45WMjTUM9AzUorVgTINDWBsIA/BRBaGqjZCUm2EMMQIojEWAA==", 
                    BinaryEncoding.Base64
                ), 
                Compression.Deflate
            )
        ), 
        let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Version = _t]
    ),
    // turn table into nested list
    nested_list = 
    List.Transform(
        Table.ToList(Source), 
        each Text.Split(_, ".")
    ),
    // sort the list
    sort_list = 
    List.Sort(
        nested_list, 
        (x,y)=&amp;gt; 
            if Value.Compare(Number.From(x{0}), Number.From(y{0})) &amp;lt;= 0
                then
                    if Value.Compare(Number.From(x{1}), Number.From(y{1})) &amp;lt;= 0 
                        then Value.Compare(Number.From(x{2}), Number.From(y{2}))
                        else 1 
                else 1
    ),
    // convert list to table
    convert_to_table = 
    Table.FromList(
        List.Transform(sort_list, each Text.Combine(_, ".")), 
        Splitter.SplitByNothing(), 
        {"Version"}, 
        null, 
        ExtraValues.Error
    ),
    // set data type
    set_types = 
    Table.TransformColumnTypes(
        convert_to_table,
        {{"Version", type text}}
    ),
    // add a sort order index
    add_sort_order_index = 
    Table.AddIndexColumn(
        set_types, 
        "VersionSortOrder", 
        1, 
        1, 
        Int64.Type
    )
in
    add_sort_order_index&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jan 2026 19:38:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-text-with-gt-or-lt/m-p/4948325#M186996</guid>
      <dc:creator>jgeddes</dc:creator>
      <dc:date>2026-01-28T19:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering text with &gt; or &lt;</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-text-with-gt-or-lt/m-p/4948436#M187001</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="232022" data-lia-user-login="mateoc15" class="lia-mention lia-mention-user"&gt;mateoc15&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;you can create a formula in powerquery:&amp;nbsp;&lt;BR /&gt;1. paste the next code in the advance editor:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;(myText as text) as number =&amp;gt;
let
  parts = Text.Split(myText, "."),
  numbers = List.Transform(parts, each Number.FromText(_)),
  count = List.Count(numbers),
  exponents = List.Transform({0..count-1}, each 8 - 2 * _),
  products = List.Transform({0..count-1}, each numbers{_} * Number.Power(10, exponents{_})),
  result = List.Sum(products)
in
  result&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;2. in your table create a new column invokating this function:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;with this colum you can compare the codes as integer numbers.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If this response was helpful in any way, I’d gladly accept a&amp;nbsp;kudo.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;STRONG&gt;Please mark it as the correct solution&lt;/STRONG&gt;. It helps other community members find their way faster.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jan 2026 23:52:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-text-with-gt-or-lt/m-p/4948436#M187001</guid>
      <dc:creator>pcoley</dc:creator>
      <dc:date>2026-01-28T23:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering text with &gt; or &lt;</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-text-with-gt-or-lt/m-p/4952371#M187006</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="232022" data-lia-user-login="mateoc15" class="lia-mention lia-mention-user"&gt;mateoc15&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How about convert the version number further to an integer like:&lt;BR /&gt;&lt;SPAN&gt;011.000.010 =&amp;gt; 11000010&lt;BR /&gt;major*10^6 + minor * 10^3 + patch&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jan 2026 07:05:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-text-with-gt-or-lt/m-p/4952371#M187006</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2026-01-29T07:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering text with &gt; or &lt;</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-text-with-gt-or-lt/m-p/4958853#M187014</link>
      <description>&lt;P&gt;Because I'm only concerned about a version 11+ that should be alright, two digits there is good.&amp;nbsp; Won't cause a problem until we get to version 99+, and I won't be around for that.&amp;nbsp; Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jan 2026 15:39:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-text-with-gt-or-lt/m-p/4958853#M187014</guid>
      <dc:creator>mateoc15</dc:creator>
      <dc:date>2026-01-29T15:39:34Z</dc:date>
    </item>
  </channel>
</rss>

