<?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 Return Custom text using DAX in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-Custom-text-using-DAX/m-p/3045273#M156626</link>
    <description>&lt;P&gt;Hi All, I need help with my DAX query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a custom column that has multiple criteria and conditions. In the first segment, the code works fine where I am simply assigning an existing column text to my new column. However when I get the Bold, Underline, Italic part of my code the values return as blank in my visualization. The second part of the code is meant to go through a specific column(line descrip), find text, and return a new "label" if account number and je category are a particular value as well. It could be my syntax or how i've written it, but i havent been able to find a function in dax that allows you to return a value you want other than T/F or a number.&amp;nbsp; It essentially looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SWITCH(TRUE(),&lt;BR /&gt;(CanadaGL[account_number]) = "0", CanadaGL[gl_account_description],&lt;BR /&gt;(CanadaGL[account_number]) = "1", CanadaGL[gl_account_description],&lt;BR /&gt;(CanadaGL[account_number]) = "6", CanadaGL[gl_account_description],&lt;BR /&gt;(CanadaGL[account_number]) = "7", CanadaGL[gl_account_description],&lt;BR /&gt;(CanadaGL[account_number]) = "3", CanadaGL[gl_account_description],&lt;BR /&gt;(CanadaGL[account_number]) = "2", CanadaGL[gl_account_description],&lt;BR /&gt;(CanadaGL[account_number]) = "23", CanadaGL[gl_account_description],&lt;BR /&gt;(CanadaGL[account_number]) = "25", CanadaGL[gl_account_description],&lt;BR /&gt;(CanadaGL[account_number]) = "26", CanadaGL[gl_account_description],&lt;BR /&gt;(CanadaGL[account_number]) = "27", CanadaGL[gl_account_description],&lt;BR /&gt;(CanadaGL[account_number]) = "30", CanadaGL[gl_account_description],&lt;BR /&gt;(CanadaGL[account_number]) = "35", CanadaGL[gl_account_description],&lt;BR /&gt;(CanadaGL[account_number]) = "41", CanadaGL[gl_account_description],&lt;BR /&gt;(CanadaGL[account_number]) = "99", CanadaGL[gl_account_description],&lt;BR /&gt;(CanadaGL[account_number]) = "15", CanadaGL[gl_account_description],&lt;BR /&gt;(CanadaGL[account_number]) = "45", CanadaGL[gl_account_description],&lt;BR /&gt;(CanadaGL[account_number]) = "46", CanadaGL[gl_account_description],&lt;BR /&gt;(CanadaGL[account_number]) = "42", CanadaGL[gl_account_description],&lt;BR /&gt;(CanadaGL[account_number]) = "14", CanadaGL[gl_account_description],&lt;/P&gt;&lt;P&gt;CanadaGL[account_number]= "12", "Pineapple",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;U&gt;&lt;EM&gt;&lt;STRONG&gt;CanadaGL[account_number] = "40" &amp;amp;&amp;amp; CanadaGL[je_category] = "Purchase Invoice", CanadaGL[vendor_name],&lt;/STRONG&gt;&lt;/EM&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;EM&gt;&lt;STRONG&gt;CanadaGL[account_number] = "40" &amp;amp;&amp;amp; CanadaGL[je_category] = "Payroll" &amp;amp;&amp;amp; SEARCH("Wellbeing", CanadaGL[line_description],"Mercer",)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;EM&gt;&lt;STRONG&gt;CanadaGL[account_number] = "40" &amp;amp;&amp;amp; CanadaGL[je_category] = "Payroll" &amp;amp;&amp;amp; SEARCH("Grape",CanadaGL[line_description] ,"Grape"), "Not Mapped")&lt;/STRONG&gt;&lt;/EM&gt;&lt;/U&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be really appreciated!&lt;/P&gt;</description>
    <pubDate>Thu, 26 Jan 2023 14:20:08 GMT</pubDate>
    <dc:creator>araug27</dc:creator>
    <dc:date>2023-01-26T14:20:08Z</dc:date>
    <item>
      <title>Return Custom text using DAX</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-Custom-text-using-DAX/m-p/3045273#M156626</link>
      <description>&lt;P&gt;Hi All, I need help with my DAX query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a custom column that has multiple criteria and conditions. In the first segment, the code works fine where I am simply assigning an existing column text to my new column. However when I get the Bold, Underline, Italic part of my code the values return as blank in my visualization. The second part of the code is meant to go through a specific column(line descrip), find text, and return a new "label" if account number and je category are a particular value as well. It could be my syntax or how i've written it, but i havent been able to find a function in dax that allows you to return a value you want other than T/F or a number.&amp;nbsp; It essentially looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SWITCH(TRUE(),&lt;BR /&gt;(CanadaGL[account_number]) = "0", CanadaGL[gl_account_description],&lt;BR /&gt;(CanadaGL[account_number]) = "1", CanadaGL[gl_account_description],&lt;BR /&gt;(CanadaGL[account_number]) = "6", CanadaGL[gl_account_description],&lt;BR /&gt;(CanadaGL[account_number]) = "7", CanadaGL[gl_account_description],&lt;BR /&gt;(CanadaGL[account_number]) = "3", CanadaGL[gl_account_description],&lt;BR /&gt;(CanadaGL[account_number]) = "2", CanadaGL[gl_account_description],&lt;BR /&gt;(CanadaGL[account_number]) = "23", CanadaGL[gl_account_description],&lt;BR /&gt;(CanadaGL[account_number]) = "25", CanadaGL[gl_account_description],&lt;BR /&gt;(CanadaGL[account_number]) = "26", CanadaGL[gl_account_description],&lt;BR /&gt;(CanadaGL[account_number]) = "27", CanadaGL[gl_account_description],&lt;BR /&gt;(CanadaGL[account_number]) = "30", CanadaGL[gl_account_description],&lt;BR /&gt;(CanadaGL[account_number]) = "35", CanadaGL[gl_account_description],&lt;BR /&gt;(CanadaGL[account_number]) = "41", CanadaGL[gl_account_description],&lt;BR /&gt;(CanadaGL[account_number]) = "99", CanadaGL[gl_account_description],&lt;BR /&gt;(CanadaGL[account_number]) = "15", CanadaGL[gl_account_description],&lt;BR /&gt;(CanadaGL[account_number]) = "45", CanadaGL[gl_account_description],&lt;BR /&gt;(CanadaGL[account_number]) = "46", CanadaGL[gl_account_description],&lt;BR /&gt;(CanadaGL[account_number]) = "42", CanadaGL[gl_account_description],&lt;BR /&gt;(CanadaGL[account_number]) = "14", CanadaGL[gl_account_description],&lt;/P&gt;&lt;P&gt;CanadaGL[account_number]= "12", "Pineapple",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;U&gt;&lt;EM&gt;&lt;STRONG&gt;CanadaGL[account_number] = "40" &amp;amp;&amp;amp; CanadaGL[je_category] = "Purchase Invoice", CanadaGL[vendor_name],&lt;/STRONG&gt;&lt;/EM&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;EM&gt;&lt;STRONG&gt;CanadaGL[account_number] = "40" &amp;amp;&amp;amp; CanadaGL[je_category] = "Payroll" &amp;amp;&amp;amp; SEARCH("Wellbeing", CanadaGL[line_description],"Mercer",)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;EM&gt;&lt;STRONG&gt;CanadaGL[account_number] = "40" &amp;amp;&amp;amp; CanadaGL[je_category] = "Payroll" &amp;amp;&amp;amp; SEARCH("Grape",CanadaGL[line_description] ,"Grape"), "Not Mapped")&lt;/STRONG&gt;&lt;/EM&gt;&lt;/U&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be really appreciated!&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2023 14:20:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-Custom-text-using-DAX/m-p/3045273#M156626</guid>
      <dc:creator>araug27</dc:creator>
      <dc:date>2023-01-26T14:20:08Z</dc:date>
    </item>
  </channel>
</rss>

