<?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: Can not modify power bi measure to Date Format in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-not-modify-power-bi-measure-to-Date-Format/m-p/2669221#M79522</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="417304" data-lia-user-login="razamatazzz" class="lia-mention lia-mention-user"&gt;razamatazzz&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems impossible to do that. If possible, you can use format([date]," en-US mm-dd-yyyy") and use sort it by column to sort it. Because&amp;nbsp;you can not identify 01/04/2022, it is January&amp;nbsp;or April.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Community Support Team _ chenwu zhu&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 29 Jul 2022 10:30:28 GMT</pubDate>
    <dc:creator>v-chenwuz-msft</dc:creator>
    <dc:date>2022-07-29T10:30:28Z</dc:date>
    <item>
      <title>Can not modify power bi measure to Date Format</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-not-modify-power-bi-measure-to-Date-Format/m-p/2661859#M78967</link>
      <description>&lt;P&gt;Hello All, I have created a power BI report which is embedded into D365. I created a measure which would format the date based on the location the user is i.e DD/MM/YYYY or MM/DD/YYYY.&amp;nbsp; I need to do this in DAX, because i need to get the location information from the APP (D365 FO) as this is an embedded report. (can not get this from the power bi workspace)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All is working fine, however the measure is coming back as a text and not allowing me to format it to Date, which does not allow to sort it properly especially when the date format is DD/MM/YYYY.&amp;nbsp;&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;I have tried changing the measure twice but still no luck . I have tried using Format function and date function (please see below)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;val1 is the value coming back from FO&amp;nbsp;&lt;/P&gt;&lt;P&gt;val2 is the date that i am trying to format.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be DEEPLY appreciatted&amp;nbsp;&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;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 11:34:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-not-modify-power-bi-measure-to-Date-Format/m-p/2661859#M78967</guid>
      <dc:creator>razamatazzz</dc:creator>
      <dc:date>2022-07-26T11:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: Can not modify power bi measure to Date Format</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-not-modify-power-bi-measure-to-Date-Format/m-p/2661973#M78979</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="417304" data-lia-user-login="razamatazzz" class="lia-mention lia-mention-user"&gt;razamatazzz&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;FORMAT functions return string data type. For sorting you need to use a sorting measure "the SELECTEDVALUE ( Table[Date] "&amp;nbsp; will be jsut fine, and the hide it.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 12:20:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-not-modify-power-bi-measure-to-Date-Format/m-p/2661973#M78979</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-07-26T12:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: Can not modify power bi measure to Date Format</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-not-modify-power-bi-measure-to-Date-Format/m-p/2662007#M78982</link>
      <description>&lt;P&gt;Thanks Tamerj but i need to either use format or the date function to change the format of the Date to dd/mm/yyyy incase the location is based out of the US. Are you saying i can combine the format and selectedvalue formula ?&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 12:36:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-not-modify-power-bi-measure-to-Date-Format/m-p/2662007#M78982</guid>
      <dc:creator>razamatazzz</dc:creator>
      <dc:date>2022-07-26T12:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Can not modify power bi measure to Date Format</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-not-modify-power-bi-measure-to-Date-Format/m-p/2662011#M78983</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="417304" data-lia-user-login="razamatazzz" class="lia-mention lia-mention-user"&gt;razamatazzz&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm saying you have to have two measure. One eith FORMAT to disply and one with SELECTEDVALUE to sort.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 12:37:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-not-modify-power-bi-measure-to-Date-Format/m-p/2662011#M78983</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-07-26T12:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Can not modify power bi measure to Date Format</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-not-modify-power-bi-measure-to-Date-Format/m-p/2662049#M78989</link>
      <description>&lt;P&gt;I dont think that will work as i have three of these measures and i want the user to be able to sort using the table headers dynamically if they want to&amp;nbsp;&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;</description>
      <pubDate>Tue, 26 Jul 2022 12:49:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-not-modify-power-bi-measure-to-Date-Format/m-p/2662049#M78989</guid>
      <dc:creator>razamatazzz</dc:creator>
      <dc:date>2022-07-26T12:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Can not modify power bi measure to Date Format</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-not-modify-power-bi-measure-to-Date-Format/m-p/2669221#M79522</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="417304" data-lia-user-login="razamatazzz" class="lia-mention lia-mention-user"&gt;razamatazzz&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems impossible to do that. If possible, you can use format([date]," en-US mm-dd-yyyy") and use sort it by column to sort it. Because&amp;nbsp;you can not identify 01/04/2022, it is January&amp;nbsp;or April.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Community Support Team _ chenwu zhu&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2022 10:30:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Can-not-modify-power-bi-measure-to-Date-Format/m-p/2669221#M79522</guid>
      <dc:creator>v-chenwuz-msft</dc:creator>
      <dc:date>2022-07-29T10:30:28Z</dc:date>
    </item>
  </channel>
</rss>

