<?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 Direct Query Converting Number To Text in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Direct-Query-Converting-Number-To-Text/m-p/1463808#M27664</link>
    <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm producing a simple report for work that must include slicer buttons for each day of the week so management can easily view sales trends for each day of the week.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've managed to use the weekday function to convert the dates to numbers 1-7 (mon-sun) but I want to now convert these numbers to text e.g. IF( day=1, "Monday", IF(day=2, "Tuesday, .... etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This doesn't work as I'm trying to convert numbers to text.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using direct query so I cannot use the convert or format functions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also there is no checkbox option to allow unrestricted measures via direct query in the data source options (seen this suggestion in other threads)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a relatively simple formula and for some reason finding impossible to achieve - any help will be much appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Essentially just need to find a way to convert numbers to text when using a direct query data source.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Louis&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Oct 2020 15:32:08 GMT</pubDate>
    <dc:creator>LJ16923</dc:creator>
    <dc:date>2020-10-29T15:32:08Z</dc:date>
    <item>
      <title>Direct Query Converting Number To Text</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Direct-Query-Converting-Number-To-Text/m-p/1463808#M27664</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm producing a simple report for work that must include slicer buttons for each day of the week so management can easily view sales trends for each day of the week.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've managed to use the weekday function to convert the dates to numbers 1-7 (mon-sun) but I want to now convert these numbers to text e.g. IF( day=1, "Monday", IF(day=2, "Tuesday, .... etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This doesn't work as I'm trying to convert numbers to text.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using direct query so I cannot use the convert or format functions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also there is no checkbox option to allow unrestricted measures via direct query in the data source options (seen this suggestion in other threads)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a relatively simple formula and for some reason finding impossible to achieve - any help will be much appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Essentially just need to find a way to convert numbers to text when using a direct query data source.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Louis&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2020 15:32:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Direct-Query-Converting-Number-To-Text/m-p/1463808#M27664</guid>
      <dc:creator>LJ16923</dc:creator>
      <dc:date>2020-10-29T15:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: Direct Query Converting Number To Text</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Direct-Query-Converting-Number-To-Text/m-p/1463945#M27674</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="267860" data-lia-user-login="LJ16923" class="lia-mention lia-mention-user"&gt;LJ16923&lt;/a&gt; , what error does it show?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Oct 2020 16:32:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Direct-Query-Converting-Number-To-Text/m-p/1463945#M27674</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-10-29T16:32:01Z</dc:date>
    </item>
  </channel>
</rss>

