<?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: Logic problem? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Logic-problem/m-p/4696873#M179883</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="472542" data-lia-user-login="Daz474" class="lia-mention lia-mention-user"&gt;Daz474&lt;/a&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this information is helpful. Please let me know if you have any further questions or if you'd like to discuss this further. If this answers your question, kindly "&lt;STRONG&gt;A&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;ccept &amp;nbsp;as&amp;nbsp; Solution"&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;and give it a '&lt;/SPAN&gt;&lt;STRONG&gt;Kudos&lt;/STRONG&gt;&lt;SPAN&gt;' so others can find it easily.&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Pavan.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 17 May 2025 15:58:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2025-05-17T15:58:13Z</dc:date>
    <item>
      <title>Logic problem?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Logic-problem/m-p/4684278#M179403</link>
      <description>&lt;P&gt;I wonder if anyone can come up with a simple solution to the following problem. I am sure its easy but it takes me forever.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My data has only two fields - Account Code and Description I do not have any reference key or date field. There are millions of transactions and in only one of them there is a Smiley Face character in the text. This character breaks the load and I cannot get any data. I need to isolate which Account Code it belongs to.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I could try loading a range of account codes at a time and if it does not fail i know that I can exclude this range of Account Codes. but there are just too many for that. I cant do a between because it is alpha-numeric. Or is there a way to do that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Additionaly, I want to make sure that I capture all of these characters in the case there are several at a time.&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2025 08:47:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Logic-problem/m-p/4684278#M179403</guid>
      <dc:creator>Daz474</dc:creator>
      <dc:date>2025-05-08T08:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: Logic problem?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Logic-problem/m-p/4684776#M179429</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="472542" data-lia-user-login="Daz474" class="lia-mention lia-mention-user"&gt;Daz474&lt;/a&gt;&amp;nbsp;Hi!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In Power Query you can add a custom column to select only safe characters:&lt;/P&gt;
&lt;P&gt;= Table.AddColumn(#"Previous Step", "HasSpecialChar", each Text.Length(Text.Select([Description], {"A".."Z","a".."z","0".."9"," ",".","-",",","/"})) &amp;lt;&amp;gt; Text.Length([Description]))&lt;/P&gt;
&lt;P&gt;Then remove the original column with unsafe characters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BBF&lt;/P&gt;
&lt;DIV style="font-family: Segoe UI, sans-serif; font-size: 14px; line-height: 1.2;"&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":light_bulb:"&gt;💡&lt;/span&gt; &lt;STRONG&gt;Did I answer your question?&lt;/STRONG&gt; Mark my post as a solution! &lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt; Kudos are appreciated &lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;span class="lia-unicode-emoji" title=":fire:"&gt;🔥&lt;/span&gt; Proud to be a Super User!&lt;/STRONG&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt; &lt;/DIV&gt;</description>
      <pubDate>Thu, 08 May 2025 12:06:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Logic-problem/m-p/4684776#M179429</guid>
      <dc:creator>BeaBF</dc:creator>
      <dc:date>2025-05-08T12:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: Logic problem?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Logic-problem/m-p/4686160#M179487</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="472542" data-lia-user-login="Daz474" class="lia-mention lia-mention-user"&gt;Daz474&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Thank you for reaching out in Microsoft Community Forum.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Please follow below steps to resolve the issue;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;1.In Power Query, you can filter out records containing specific characters. This will allow you to detect any rows with unusual or special characters, like the Smiley Face.&lt;/P&gt;
&lt;P&gt;2.You could create a custom column that checks for non-standard characters in the Description field.&lt;/P&gt;
&lt;P&gt;3.Add a custom column with a function to identify the presence of a Smiley Face (&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;) or any other non-standard characters.&lt;/P&gt;
&lt;P&gt;let&lt;BR /&gt;Source = YourSourceTable,&lt;BR /&gt;AddCustomColumn = Table.AddColumn(Source, "HasSmiley", each if Text.Contains([Description], "&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;") then "Yes" else "No"),&lt;BR /&gt;FilteredRows = Table.SelectRows(AddCustomColumn, each [HasSmiley] = "Yes")&lt;BR /&gt;in&lt;BR /&gt;FilteredRows&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Please continue using Microsoft Community Forum.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;If this post helps in resolve your issue, kindly consider marking it as "&lt;STRONG&gt;Accept as Solution&lt;/STRONG&gt;" and give it a '&lt;STRONG&gt;Kudos&lt;/STRONG&gt;' to help others find it more easily.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Pavan.&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2025 07:37:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Logic-problem/m-p/4686160#M179487</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-05-09T07:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: Logic problem?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Logic-problem/m-p/4689358#M179588</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="472542" data-lia-user-login="Daz474" class="lia-mention lia-mention-user"&gt;Daz474&lt;/a&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please "&lt;/SPAN&gt;&lt;STRONG&gt;Accept&amp;nbsp; as&amp;nbsp; Solution&lt;/STRONG&gt;&lt;SPAN&gt;" and give a '&lt;/SPAN&gt;&lt;STRONG&gt;Kudos&lt;/STRONG&gt;&lt;SPAN&gt;' so other members can easily find it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Pavan.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2025 14:00:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Logic-problem/m-p/4689358#M179588</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-05-12T14:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: Logic problem?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Logic-problem/m-p/4696873#M179883</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="472542" data-lia-user-login="Daz474" class="lia-mention lia-mention-user"&gt;Daz474&lt;/a&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this information is helpful. Please let me know if you have any further questions or if you'd like to discuss this further. If this answers your question, kindly "&lt;STRONG&gt;A&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;ccept &amp;nbsp;as&amp;nbsp; Solution"&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;and give it a '&lt;/SPAN&gt;&lt;STRONG&gt;Kudos&lt;/STRONG&gt;&lt;SPAN&gt;' so others can find it easily.&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Pavan.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 17 May 2025 15:58:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Logic-problem/m-p/4696873#M179883</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-05-17T15:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Logic problem?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Logic-problem/m-p/4701555#M180081</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;FONT&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="472542" data-lia-user-login="Daz474" class="lia-mention lia-mention-user"&gt;Daz474&lt;/a&gt;,&lt;/FONT&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I wanted to follow up since we haven't heard back from you regarding our last response. We hope your issue has been resolved.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If the community member's answer your query, please mark it as "&lt;/SPAN&gt;&lt;STRONG&gt;Accept as Solution&lt;/STRONG&gt;&lt;SPAN&gt;" and select "&lt;/SPAN&gt;&lt;STRONG&gt;Yes&lt;/STRONG&gt;&lt;SPAN&gt;" if it was helpful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you need any further assistance, feel free to reach out.&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Pavan.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2025 11:33:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Logic-problem/m-p/4701555#M180081</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-05-21T11:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: Logic problem?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Logic-problem/m-p/4701589#M180083</link>
      <description>&lt;P&gt;Thanks for the suggestion. This won't work though because if there is a special character in the data load, it breaks it and nothing loads. I need to find the character without loading it.&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2025 11:43:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Logic-problem/m-p/4701589#M180083</guid>
      <dc:creator>Daz474</dc:creator>
      <dc:date>2025-05-21T11:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: Logic problem?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Logic-problem/m-p/4701598#M180084</link>
      <description>&lt;P&gt;Sorry for the delay!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This doesn't work because if the character is in the load then it won't load anything. I need to find the characters without loading it.&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2025 11:45:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Logic-problem/m-p/4701598#M180084</guid>
      <dc:creator>Daz474</dc:creator>
      <dc:date>2025-05-21T11:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: Logic problem?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Logic-problem/m-p/4701671#M180090</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="472542" data-lia-user-login="Daz474" class="lia-mention lia-mention-user"&gt;Daz474&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ok, now it's clearer. So try to&amp;nbsp;Load as Binary First, then Inspect Lines Before Parsing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;let&lt;BR /&gt;Source = File.Contents("C:\YourFile.csv"),&lt;BR /&gt;Lines = Lines.FromBinary(Source, null, null),&lt;BR /&gt;TableFromList = Table.FromList(Lines, Splitter.SplitByNothing(), {"Line"}),&lt;BR /&gt;AddCheck = Table.AddColumn(TableFromList, "HasNonAscii", each List.AnyTrue(List.Transform(Text.ToList([Line]), each Character.ToNumber(_) &amp;gt; 127)))&lt;BR /&gt;in&lt;BR /&gt;AddCheck&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BBF&lt;/P&gt;
&lt;DIV style="font-family: Segoe UI, sans-serif; font-size: 14px; line-height: 1.2;"&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":light_bulb:"&gt;💡&lt;/span&gt; &lt;STRONG&gt;Did I answer your question?&lt;/STRONG&gt; Mark my post as a solution! &lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt; Kudos are appreciated &lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;span class="lia-unicode-emoji" title=":fire:"&gt;🔥&lt;/span&gt; Proud to be a Super User!&lt;/STRONG&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt; &lt;/DIV&gt;</description>
      <pubDate>Wed, 21 May 2025 12:19:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Logic-problem/m-p/4701671#M180090</guid>
      <dc:creator>BeaBF</dc:creator>
      <dc:date>2025-05-21T12:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: Logic problem?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Logic-problem/m-p/4702627#M180113</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="472542" data-lia-user-login="Daz474" class="lia-mention lia-mention-user"&gt;Daz474&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Thank you for reaching out in Microsoft Community Forum.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Since the presence of a special character (like a smiley face) breaks the data load completely, the safest approach is to analyze the file in raw binary format before any parsing happens in Power BI.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Please follow these steps to safely identify the problematic row:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;1.Use File.Contents to load the file as raw binary instead of as a table. This prevents Power BI from trying to parse corrupted characters.&lt;/P&gt;
&lt;P&gt;2.Convert the binary into a list of lines using Lines.FromBinary.&lt;/P&gt;
&lt;P&gt;3.Convert the list of lines into a table so you can inspect each one.&lt;/P&gt;
&lt;P&gt;4.Add a column to flag lines that contain non-standard (non-ASCII) characters, such as emojis or symbols.&lt;/P&gt;
&lt;P&gt;5.Optionally filter the table to only show the problematic rows, helping you isolate the account code.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Please continue using Microsoft Community Forum.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;If this post helps in resolve your issue, kindly consider marking it as "&lt;STRONG&gt;Accept as Solution&lt;/STRONG&gt;" and give it a '&lt;STRONG&gt;Kudos&lt;/STRONG&gt;' to help others find it more easily.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Pavan.&lt;/P&gt;</description>
      <pubDate>Thu, 22 May 2025 04:38:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Logic-problem/m-p/4702627#M180113</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-05-22T04:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: Logic problem?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Logic-problem/m-p/4702989#M180126</link>
      <description>&lt;P&gt;I will try that and thank you so much for the suggestion!&lt;/P&gt;</description>
      <pubDate>Thu, 22 May 2025 07:22:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Logic-problem/m-p/4702989#M180126</guid>
      <dc:creator>Daz474</dc:creator>
      <dc:date>2025-05-22T07:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Logic problem?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Logic-problem/m-p/4707302#M180284</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&lt;FONT&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="472542" data-lia-user-login="Daz474" class="lia-mention lia-mention-user"&gt;Daz474&lt;/a&gt;,&lt;/FONT&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I wanted to follow up since we haven't heard back from you regarding our last response. We hope your issue has been resolved.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If the community member's answer your query, please mark it as "&lt;/SPAN&gt;&lt;STRONG&gt;Accept as Solution&lt;/STRONG&gt;&lt;SPAN&gt;" and select "&lt;/SPAN&gt;&lt;STRONG&gt;Yes&lt;/STRONG&gt;&lt;SPAN&gt;" if it was helpful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you need any further assistance, feel free to reach out.&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Pavan.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 May 2025 10:47:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Logic-problem/m-p/4707302#M180284</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-05-26T10:47:23Z</dc:date>
    </item>
  </channel>
</rss>

