<?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: Problem with calcul in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-calcul/m-p/4927897#M186948</link>
    <description>&lt;P&gt;Countries2 = 32 ==&amp;gt; position of ";" after "ApplicationName"&lt;/P&gt;&lt;P&gt;_x = 9 ==&amp;gt; position of "ApplicationName"&lt;/P&gt;&lt;P&gt;_y = 32 -9 = 23 ==&amp;gt; length of the chain to extract&lt;/P&gt;</description>
    <pubDate>Tue, 27 Jan 2026 07:09:59 GMT</pubDate>
    <dc:creator>FP68</dc:creator>
    <dc:date>2026-01-27T07:09:59Z</dc:date>
    <item>
      <title>Problem with calcul</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-calcul/m-p/4927786#M186939</link>
      <description>&lt;P&gt;Hello the community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try to extract a chain of caracters from a columns and I don't understand why I've the message "an argument of function MID has the wrong data type or has an invalid value"&lt;/P&gt;&lt;P&gt;My column TAGS is in text format and contains ".......;ApplicationName=.......;....."&lt;/P&gt;&lt;P&gt;I put:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ApplicationName =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;_x&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;find&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"ApplicationName"&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&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt; ) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;SPAN&gt; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;SemiColonPos&lt;/SPAN&gt;&lt;SPAN&gt; &amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks a lot for your help&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 27 Jan 2026 06:16:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-calcul/m-p/4927786#M186939</guid>
      <dc:creator>FP68</dc:creator>
      <dc:date>2026-01-27T06:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with calcul</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-calcul/m-p/4927827#M186940</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1521449" data-lia-user-login="FP68" class="lia-mention lia-mention-user"&gt;FP68&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In "&lt;SPAN&gt;_y&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Disques_Global&lt;/SPAN&gt;&lt;SPAN&gt;[Countries2]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;-&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;_x", could _y be negative?&lt;BR /&gt;Negative arguments in MID could lead to such error.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jan 2026 06:43:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-calcul/m-p/4927827#M186940</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2026-01-27T06:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with calcul</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-calcul/m-p/4927841#M186941</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;No _y couldn't be negative&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jan 2026 06:47:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-calcul/m-p/4927841#M186941</guid>
      <dc:creator>FP68</dc:creator>
      <dc:date>2026-01-27T06:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with calcul</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-calcul/m-p/4927844#M186942</link>
      <description>&lt;P&gt;in Countries2, should it be like:&lt;BR /&gt;SemiColonPos = SEARCH ( ";" , [TAGS] , _z , 0 ) &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;+ _z&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jan 2026 06:49:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-calcul/m-p/4927844#M186942</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2026-01-27T06:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with calcul</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-calcul/m-p/4927857#M186944</link>
      <description>&lt;P&gt;No SemiColonPos is the posiion of ";" after the word ApplicationName&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jan 2026 06:52:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-calcul/m-p/4927857#M186944</guid>
      <dc:creator>FP68</dc:creator>
      <dc:date>2026-01-27T06:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with calcul</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-calcul/m-p/4927887#M186947</link>
      <description>&lt;P&gt;with "&lt;SPAN&gt;.......;ApplicationName=.......;.....&lt;/SPAN&gt;", could you confirm the comments in red:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Countries2 =&lt;BR /&gt;VAR _x = SEARCH ( "ApplicationName=" , [TAGS] , 1 , 0 )&lt;BR /&gt;VAR _z = _x + LEN ( "ApplicationName=" )&lt;BR /&gt;VAR SemiColonPos = SEARCH ( ";" , [TAGS] , _z , 0 )&lt;BR /&gt;RETURN SemiColonPos&amp;nbsp; //&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;returns 8?&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ApplicationName =&lt;BR /&gt;var _x = find("ApplicationName",[TAGS],1,0) &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;//_x returns 9?&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;var _y = Disques_Global[Countries2] - _x&amp;nbsp; &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;//_y return -1?&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;var _z = MID (Disques_Global[Tags], _x,_y)&lt;BR /&gt;return _z&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jan 2026 07:03:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-calcul/m-p/4927887#M186947</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2026-01-27T07:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with calcul</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-calcul/m-p/4927897#M186948</link>
      <description>&lt;P&gt;Countries2 = 32 ==&amp;gt; position of ";" after "ApplicationName"&lt;/P&gt;&lt;P&gt;_x = 9 ==&amp;gt; position of "ApplicationName"&lt;/P&gt;&lt;P&gt;_y = 32 -9 = 23 ==&amp;gt; length of the chain to extract&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jan 2026 07:09:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-calcul/m-p/4927897#M186948</guid>
      <dc:creator>FP68</dc:creator>
      <dc:date>2026-01-27T07:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with calcul</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-calcul/m-p/4927911#M186950</link>
      <description>&lt;P&gt;i see. with your code and sample data, i see no error:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;could you post more sample data?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jan 2026 07:29:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-calcul/m-p/4927911#M186950</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2026-01-27T07:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with calcul</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-calcul/m-p/4927919#M186951</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jan 2026 07:33:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-calcul/m-p/4927919#M186951</guid>
      <dc:creator>FP68</dc:creator>
      <dc:date>2026-01-27T07:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with calcul</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-calcul/m-p/4927921#M186952</link>
      <description>&lt;P class=""&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1521449" data-lia-user-login="FP68" class="lia-mention lia-mention-user"&gt;FP68&lt;/a&gt;,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Your error comes from subtracting the wrong positions, which sometimes gave MID a zero or negative length. The corrected formula above works in both &lt;STRONG&gt;Power BI&lt;/STRONG&gt; and &lt;STRONG&gt;Microsoft Fabric semantic models&lt;/STRONG&gt;.&lt;BR /&gt;&lt;BR /&gt;Correct DAX Formula:&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;ApplicationName = VAR StartPos = SEARCH("ApplicationName=", [TAGS], 1, 0) + LEN("ApplicationName=") VAR EndPos = SEARCH(";", [TAGS], StartPos, 0) VAR Length = EndPos - StartPos RETURN MID([TAGS], StartPos, Length)&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;Why this fixes the error&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;SEARCH("ApplicationName=", [TAGS]) finds the keyword.&lt;/LI&gt;&lt;LI&gt;+ LEN("ApplicationName=") moves the pointer to the first character after the equals sign.&lt;/LI&gt;&lt;LI&gt;SEARCH(";", [TAGS], StartPos) finds the next semicolon.&lt;/LI&gt;&lt;LI&gt;EndPos - StartPos guarantees a positive length for MID.&lt;/LI&gt;&lt;LI&gt;MID([TAGS], StartPos, Length) extracts the substring correctly.&lt;/LI&gt;&lt;/UL&gt;&lt;P class=""&gt;The original error happened because _y = Countries2 - _x sometimes produced zero or negative values, which MID cannot accept.&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;Works in Both Power BI and Microsoft Fabric&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Power BI Desktop&lt;/STRONG&gt;: Use this formula in a calculated column or measure.&lt;/LI&gt;&lt;/UL&gt;&lt;P class=""&gt;&lt;STRONG&gt;Microsoft Fabric (Lakehouse / Data Warehouse)&lt;/STRONG&gt;: When you build a semantic model in Fabric, you use the same DAX functions. This formula works identically because Fabric’s semantic models run on the same DAX engine as Power BI.&lt;BR /&gt;&lt;BR /&gt;Official Microsoft Documentation&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/dax/mid-function-dax?utm_" target="_blank" rel="noopener"&gt;&lt;SPAN class=""&gt;MID FUNCTION DAX&lt;/SPAN&gt;&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/dax/search-function-dax?utm_" target="_blank" rel="noopener"&gt;&lt;SPAN class=""&gt;Serach Function&lt;/SPAN&gt;&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/dax/find-function-dax?utm_" target="_blank" rel="noopener"&gt;&lt;SPAN class=""&gt;FIND Function&lt;/SPAN&gt;&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Generalization Tip&lt;BR /&gt;&lt;/STRONG&gt;If you want to extract &lt;I&gt;any&lt;/I&gt; key=value pair from TAGS, you can parameterize the key:&lt;BR /&gt;&lt;BR /&gt;ExtractValue = VAR Key = "ApplicationName=" VAR StartPos = SEARCH(Key, [TAGS], 1, 0) + LEN(Key) VAR EndPos = SEARCH(";", [TAGS], StartPos, 0) VAR Length = EndPos - StartPos RETURN MID([TAGS], StartPos, Length)&lt;BR /&gt;Change Key to "UserName=", "Version=", etc., and reuse the same logic.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jan 2026 07:39:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-calcul/m-p/4927921#M186952</guid>
      <dc:creator>Olufemi7</dc:creator>
      <dc:date>2026-01-27T07:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with calcul</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-calcul/m-p/4927931#M186954</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="843006" data-lia-user-login="Olufemi7" class="lia-mention lia-mention-user"&gt;Olufemi7&lt;/a&gt;,&lt;BR /&gt;Thanks a lot for your explanation and proposal of solution but I've always the same message:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it due because sometime the [TAGS] finished by the "ApplicationName..." and we haven't a ";" ?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jan 2026 07:49:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-calcul/m-p/4927931#M186954</guid>
      <dc:creator>FP68</dc:creator>
      <dc:date>2026-01-27T07:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with calcul</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-calcul/m-p/4927932#M186955</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1521449" data-lia-user-login="FP68" class="lia-mention lia-mention-user"&gt;FP68&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Seemingly in the first 3 rows, "&lt;SPAN&gt;var _x = find("ApplicationName",[TAGS],1,0)&lt;/SPAN&gt;" will return 0, which leads to error in MID.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jan 2026 07:50:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-calcul/m-p/4927932#M186955</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2026-01-27T07:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with calcul</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-calcul/m-p/4928365#M186958</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1521449" data-lia-user-login="FP68" class="lia-mention lia-mention-user"&gt;FP68&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;anyway you can share your pbix via private message to me so I fix the issue? I see a lot of messages and I would like to cut time to the solution.&lt;/P&gt;
&lt;P&gt;Best&lt;/P&gt;
&lt;P&gt;If this helped, please consider giving kudos and mark as a solution&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;@me in replies or I'll lose your thread&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Want to check your DAX skills? &lt;A href="https://www.linkedin.com/company/kubisco/" target="_blank"&gt;Answer my biweekly DAX challenges on the kubisco Linkedin page&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Consider voting &lt;A href="https://community.fabric.microsoft.com/t5/Fabric-Ideas/Power-BI-Filter-Pane-as-an-icon-on-the-right-side-bar-in-on/idi-p/4728588" target="_blank"&gt;this Power BI idea&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Francesco Bergamaschi&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;MBA, M.Eng, M.Econ, Professor of BI&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jan 2026 09:01:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-calcul/m-p/4928365#M186958</guid>
      <dc:creator>FBergamaschi</dc:creator>
      <dc:date>2026-01-27T09:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with calcul</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-calcul/m-p/4929162#M186959</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1521449" data-lia-user-login="FP68" class="lia-mention lia-mention-user"&gt;FP68&lt;/a&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Great catch yes, that’s exactly the issue. When [TAGS] ends with "ApplicationName=..." and there’s &lt;STRONG&gt;no trailing semicolon&lt;/STRONG&gt;, the original formula fails because SEARCH(";", ...) returns 0, which causes MID to break.&lt;BR /&gt;I wanted to share a full walkthrough of how I implemented this in &lt;STRONG&gt;Power BI Service&lt;/STRONG&gt; using a semantic model.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;H3&gt;Semantic Model Setup in Power BI Service&lt;/H3&gt;&lt;P&gt;&lt;SPAN&gt;I created calculated columns directly in the semantic model using the following logic:&lt;/SPAN&gt;&lt;/P&gt;&lt;H4&gt;&lt;STRONG&gt;ApplicationName&lt;BR /&gt;&lt;/STRONG&gt;&lt;/H4&gt;&lt;LI-CODE lang="markup"&gt;ApplicationName = 
VAR SourceText =
    COALESCE([Column1], [Column2], [Column3], [TAGS])
RETURN
MID(
    SourceText &amp;amp; ";",
    SEARCH("ApplicationName=", SourceText, 1) + LEN("ApplicationName="),
    SEARCH(";", SourceText &amp;amp; ";", SEARCH("ApplicationName=", SourceText, 1) + LEN("ApplicationName=")) -
    (SEARCH("ApplicationName=", SourceText, 1) + LEN("ApplicationName="))
)&lt;/LI-CODE&gt;&lt;P&gt;ApplicationId&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ApplicationId = 
IFERROR(
    MID(
        [TAGS] &amp;amp; ";",
        SEARCH("ApplicationId=", [TAGS], 1) + LEN("ApplicationId="),
        SEARCH(";", [TAGS] &amp;amp; ";", SEARCH("ApplicationId=", [TAGS], 1) + LEN("ApplicationId=")) -
        (SEARCH("ApplicationId=", [TAGS], 1) + LEN("ApplicationId="))
    ),
    BLANK()
)&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Countries&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Countries = 
IFERROR(
    MID(
        [Column2] &amp;amp; ";",
        SEARCH("Countries=", [Column2], 1) + LEN("Countries="),
        SEARCH(";", [Column2] &amp;amp; ";", SEARCH("Countries=", [Column2], 1) + LEN("Countries=")) -
        (SEARCH("Countries=", [Column2], 1) + LEN("Countries="))
    ),
    BLANK()
)&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Environment&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Environment = 
IFERROR(
    MID(
        [Column3] &amp;amp; ";",
        SEARCH("Environment=", [Column3], 1) + LEN("Environment="),
        SEARCH(";", [Column3] &amp;amp; ";", SEARCH("Environment=", [Column3], 1) + LEN("Environment=")) -
        (SEARCH("Environment=", [Column3], 1) + LEN("Environment="))
    ),
    BLANK()
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;SampleData_TAGS&lt;/TD&gt;&lt;TD&gt;SampleData_Column1&lt;/TD&gt;&lt;TD&gt;SampleData_Column2&lt;/TD&gt;&lt;TD&gt;SampleData_Column3&lt;/TD&gt;&lt;TD&gt;SampleData_ApplicationName&lt;/TD&gt;&lt;TD&gt;SampleData_Environment&lt;/TD&gt;&lt;TD&gt;SampleData_Countries&lt;/TD&gt;&lt;TD&gt;SampleData_ApplicationId&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ApplicationId=fsp&lt;/TD&gt;&lt;TD&gt;ApplicationName=fileserv/pfne&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;fileserv/pfne&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;fsp&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ApplicationId=fsp&lt;/TD&gt;&lt;TD&gt;ApplicationName=fileserv/pfp&lt;/TD&gt;&lt;TD&gt;Countries=pl&lt;/TD&gt;&lt;TD&gt;Environment=prod&lt;/TD&gt;&lt;TD&gt;fileserv/pfp&lt;/TD&gt;&lt;TD&gt;prod&lt;/TD&gt;&lt;TD&gt;pl&lt;/TD&gt;&lt;TD&gt;fsp&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Name=yyal02h0&lt;/TD&gt;&lt;TD&gt;ApplicationName=sauve/netbackup&lt;/TD&gt;&lt;TD&gt;Environment=prod&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;sauve/netbackup&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;H3&gt;Why This Works&lt;/H3&gt;&lt;P&gt;&lt;SPAN&gt;Yes — as you pointed out — the original error happens when [TAGS] ends with "ApplicationName=..." and there's &lt;STRONG&gt;no trailing semicolon&lt;/STRONG&gt;. That causes SEARCH(";", ...) to return 0, which breaks MID.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;By appending ";" to the source string, the formula always finds a delimiter, even if the original string doesn't end with one. That’s the key fix.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This approach works across both &lt;STRONG&gt;Power BI Desktop&lt;/STRONG&gt; and &lt;STRONG&gt;Microsoft Fabric&lt;/STRONG&gt;, since the semantic model uses the same DAX engine. You can easily adapt the logic to extract any key=value pair from any column.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;img /&gt;Let me know if you'd like help building a reusable function or Power Query version&amp;nbsp; happy to share that too!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jan 2026 10:12:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-calcul/m-p/4929162#M186959</guid>
      <dc:creator>Olufemi7</dc:creator>
      <dc:date>2026-01-27T10:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with calcul</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-calcul/m-p/4929372#M186960</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1521449" data-lia-user-login="FP68" class="lia-mention lia-mention-user"&gt;FP68&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regarding your scenario of extracting strings, you can use the following DAX UDF:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;DEFINE
    /// Returns the text between specified delimiters from a string. The startIndex parameter can be used to specify which starting delimiter to use, while the endIndex parameter specifies which ending delimiter to use. However, the starting position of endIndex is relative to the position after startIndex.
    FUNCTION XF.Str.BetweenDelimiters = (str:string,startDelimiter:string,endDelimiter:string,startIndex:int64,endIndex:int64) =&amp;gt;
    IF(startIndex&amp;lt;1 || endIndex&amp;lt;1,
        ERROR("startIndex and endIndex should &amp;gt;=1"),
        VAR StartDelimiterIndex = 
            DISTINCT(
                FILTER(
                    SELECTCOLUMNS(
                        GENERATESERIES(1,LEN(str)),
                        "Position",FIND(startDelimiter,str,[Value],BLANK())
                    ),
                    [Position]&amp;lt;&amp;gt;BLANK()
                )
            )
        VAR StartDelimiterIndex_AddRank = 
            ADDCOLUMNS(
                StartDelimiterIndex,
                "Rank",RANKX(StartDelimiterIndex,[Position],,1)
            )
        VAR StartIndex = COALESCE(MAXX(FILTER(StartDelimiterIndex_AddRank,[Rank]=startIndex),[Position]),LEN(str))
        VAR RightText = RIGHT(str,MAX(LEN(str)-(StartIndex+LEN(startDelimiter)-1),0))
		VAR SplitedKey = "虪"
		VAR Alter_RightText = SUBSTITUTE(RightText,"|",SplitedKey)
		VAR Alter_EndDelimiter = SUBSTITUTE(endDelimiter,"|",SplitedKey)
        VAR TransToPath = SUBSTITUTE(Alter_RightText,Alter_EndDelimiter,"|")
        RETURN
        CONCATENATEX(
            ADDCOLUMNS(
                GENERATESERIES(1,MIN(endIndex,PATHLENGTH(TransToPath))),
                "SubStr",SUBSTITUTE(PATHITEM(TransToPath,[Value]),SplitedKey,"|")
            ),
            [SubStr],
            endDelimiter,
            [Value],ASC
        )
    )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example:&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you~&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jan 2026 10:22:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-calcul/m-p/4929372#M186960</guid>
      <dc:creator>xifeng_L</dc:creator>
      <dc:date>2026-01-27T10:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with calcul</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-calcul/m-p/4929797#M186962</link>
      <description>&lt;P&gt;Please try the following formula:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;ApplicationName =
VAR TagText = Disques_Global[TAGS]
VAR Key = "ApplicationName="
VAR KeyPos = SEARCH ( Key, TagText, 1, 0 )
VAR ValueStart = KeyPos + LEN ( Key )
VAR SemiPos = SEARCH ( ";", TagText, ValueStart, 0 )
RETURN
IF (
    KeyPos = 0,
    BLANK(),
    IF (
        SemiPos = 0,
        MID ( TagText, ValueStart, LEN ( TagText ) - ValueStart + 1 ),
        MID ( TagText, ValueStart, SemiPos - ValueStart )
    )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 27 Jan 2026 10:50:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-calcul/m-p/4929797#M186962</guid>
      <dc:creator>cengizhanarslan</dc:creator>
      <dc:date>2026-01-27T10:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with calcul</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-calcul/m-p/4930975#M186966</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1521449" data-lia-user-login="FP68" class="lia-mention lia-mention-user"&gt;FP68&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;This error is happening because 1 or more of your rows does not have "ApplicationName", "&lt;SPAN&gt;ApplicationName=" or ";". This is then returning 0 in you '_x' and or '_y' variables (which MID does not accept as either the starting position or length).&lt;BR /&gt;&lt;BR /&gt;To account for this in you calculated column, simplle update the DAX for the column ApplicationName to the below, this will allow for the missing data. You could then filter on this column to see where the ApplicationName=blank, this will then show the TAGS that are not conforming to the expected format.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;VAR _x =
    FIND ( "ApplicationName", [TAGS], 1, 0 )
VAR _y = [Countries2] - _x
VAR _XErrorFix =
    IF ( _x = 0, 1, _x )
VAR _YErrorFix =
    IF ( _y = 0, 1, _y )
VAR _z =
    MID ( [TAGS], _XErrorFix, _YErrorFix )
RETURN
    IF ( _x = 0 || _y = 0, BLANK (), _z )&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;Hope this helps, AWD&lt;BR /&gt;&lt;BR /&gt;If it did help, please ✓ Mark as Solution, it helps other find this post.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Kudos appreciated &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jan 2026 12:03:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-calcul/m-p/4930975#M186966</guid>
      <dc:creator>AWD</dc:creator>
      <dc:date>2026-01-27T12:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with calcul</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-calcul/m-p/4934780#M186976</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="1521449" data-lia-user-login="FP68" class="lia-mention lia-mention-user"&gt;FP68&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;here the correct code&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;ApplicationName =&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;TagText&lt;/SPAN&gt;&lt;SPAN&gt;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&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;MID&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;TagText&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;ValueStart&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;LEN&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;TagText&lt;/SPAN&gt;&lt;SPAN&gt; ) - &lt;/SPAN&gt;&lt;SPAN&gt;ValueStart&lt;/SPAN&gt;&lt;SPAN&gt; + &lt;/SPAN&gt;&lt;SPAN&gt;1&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;MID&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;TagText&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;ValueStart&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;SemiPos&lt;/SPAN&gt;&lt;SPAN&gt; - &lt;/SPAN&gt;&lt;SPAN&gt;ValueStart&lt;/SPAN&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;P&gt;If this helped, please consider giving kudos and mark as a solution&lt;/P&gt;
&lt;SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;@me in replies or I'll lose your thread&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;
&lt;P&gt;Want to check your DAX skills? &lt;A href="https://www.linkedin.com/company/kubisco/" target="_blank"&gt;Answer my biweekly DAX challenges on the kubisco Linkedin page&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Consider voting &lt;A href="https://community.fabric.microsoft.com/t5/Fabric-Ideas/Power-BI-Filter-Pane-as-an-icon-on-the-right-side-bar-in-on/idi-p/4728588" target="_blank"&gt;this Power BI idea&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Francesco Bergamaschi&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;MBA, M.Eng, M.Econ, Professor of BI&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 27 Jan 2026 15:20:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-calcul/m-p/4934780#M186976</guid>
      <dc:creator>FBergamaschi</dc:creator>
      <dc:date>2026-01-27T15:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with calcul</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-calcul/m-p/4940499#M186987</link>
      <description>&lt;P&gt;Thanks a lot Frnacesco and thanks to all&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jan 2026 05:46:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-with-calcul/m-p/4940499#M186987</guid>
      <dc:creator>FP68</dc:creator>
      <dc:date>2026-01-28T05:46:14Z</dc:date>
    </item>
  </channel>
</rss>

