<?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: Calculated Column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Column/m-p/2465288#M66985</link>
    <description>&lt;P&gt;Actually the categories work fine for all cells, except the empty cells.&lt;BR /&gt;The empty cells return "private". So somehow the Isblank part of the formula doesn't work properly.&lt;/P&gt;</description>
    <pubDate>Wed, 20 Apr 2022 09:01:15 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-04-20T09:01:15Z</dc:date>
    <item>
      <title>Calculated Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Column/m-p/2465165#M66971</link>
      <description>&lt;P&gt;Hey all,&lt;BR /&gt;&lt;BR /&gt;I've got a column containing e-mail adresses. I need to categorize this into three groups:&lt;BR /&gt;An e-mail containing the string "unknown" should be categorized as "unknown"&lt;BR /&gt;An empty cell should be categorized as "unknown"&lt;BR /&gt;An e-mail containing "jnj" should be categorized as "business"&lt;BR /&gt;Otherwise an e-mail should be categorized as "private"&lt;BR /&gt;&lt;BR /&gt;I've written the following custom column:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Type E-mail = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SWITCH&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;TRUE&lt;/SPAN&gt;&lt;SPAN&gt;(),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CONTAINSSTRING&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Data'[e-mail]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"onbekend"&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;"unknown"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ISBLANK&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Data'[e-mail]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;"unknown"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CONTAINSSTRING&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Data'[e-mail]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"jnj"&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;"business"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"private"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;However empty cells are returned as "private".&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;What did I do wrong?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 20 Apr 2022 08:24:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Column/m-p/2465165#M66971</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-20T08:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Column/m-p/2465211#M66976</link>
      <description>&lt;P&gt;Check that the cells are truly empty as opposed to having an empty string or a space character or something&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 08:39:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Column/m-p/2465211#M66976</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-04-20T08:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Column/m-p/2465218#M66977</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need to use wild cards&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Type E-mail =
SWITCH (
    TRUE (),
    CONTAINSSTRING ( 'Data'[e-mail], "*onbekend*" ), "unknown",
    ISBLANK ( 'Data'[e-mail] ), "*unknown*",
    CONTAINSSTRING ( 'Data'[e-mail], "*jnj*" ), "business",
    "private"
)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 20 Apr 2022 08:43:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Column/m-p/2465218#M66977</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-20T08:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Column/m-p/2465266#M66982</link>
      <description>&lt;P&gt;Hey Johnt75. I did check them for spaces or something. The cells are truly empty.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 08:56:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Column/m-p/2465266#M66982</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-20T08:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Column/m-p/2465288#M66985</link>
      <description>&lt;P&gt;Actually the categories work fine for all cells, except the empty cells.&lt;BR /&gt;The empty cells return "private". So somehow the Isblank part of the formula doesn't work properly.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 09:01:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Column/m-p/2465288#M66985</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-20T09:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Column/m-p/2465309#M66986</link>
      <description>&lt;P&gt;There doesn't appear to be anything wrong with the SWITCH statement. You could add a new column&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Is Blank = ISBLANK ( 'Data'[e-mail] )&lt;/LI-CODE&gt;&lt;P&gt;and see if that gives the expected results&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 09:05:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Column/m-p/2465309#M66986</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-04-20T09:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Column/m-p/2465312#M66987</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Type E-mail =
SWITCH (
    TRUE (),
    CONTAINSSTRING ( 'Data'[e-mail], "*onbekend*" ), "unknown",
    'Data'[e-mail] = BLANK (), "unknown",
    CONTAINSSTRING ( 'Data'[e-mail], "*jnj*" ), "business",
    "private"
)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 20 Apr 2022 09:06:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Column/m-p/2465312#M66987</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-20T09:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Column/m-p/2510481#M69619</link>
      <description>&lt;P&gt;I have an Excel sheet with customer order details, I would like to calculate the following:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Number of registered customers since starting the online store (Just the number of customers to date)&lt;/LI&gt;&lt;LI&gt;Top cities or areas within the city that ordered&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Total Unit Sales and Total Revenue&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;How can I achieve this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 12:05:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-Column/m-p/2510481#M69619</guid>
      <dc:creator>Jasonk-WP43</dc:creator>
      <dc:date>2022-05-12T12:05:17Z</dc:date>
    </item>
  </channel>
</rss>

