<?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: Currency Format in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Currency-Format/m-p/2686288#M80697</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks a million. I got it solved with the SELECTEDMEASUREFORMATSTRING()&lt;/P&gt;</description>
    <pubDate>Mon, 08 Aug 2022 06:02:33 GMT</pubDate>
    <dc:creator>Molin</dc:creator>
    <dc:date>2022-08-08T06:02:33Z</dc:date>
    <item>
      <title>Currency Format</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Currency-Format/m-p/2675710#M79944</link>
      <description>&lt;P&gt;Dear Community,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am working on a report where the users should be able to switch between 3 different currencies.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have created a simple table (CurrencyMeasure) and the following DAX command to support a currency slicer on the report page:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;NET SALES =&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;HASONEVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt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SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ,&lt;/SPAN&gt;&lt;SPAN&gt;"€"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;FORMAT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DIVIDE&lt;/SPAN&gt;&lt;SPAN&gt;([Net Sales (DKK)]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"€ #,##"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ,&lt;/SPAN&gt;&lt;SPAN&gt;[Net Sales (DKK)]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;It all works fine, however the sorting of Net Sales gets rather odd in a table as its now a string (see picture).&lt;BR /&gt;&lt;BR /&gt;As I would prefer to have the currency symbols in the table, is there a way to sort by highest value and not first numer in a table?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 02 Aug 2022 13:35:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Currency-Format/m-p/2675710#M79944</guid>
      <dc:creator>Molin</dc:creator>
      <dc:date>2022-08-02T13:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: Currency Format</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Currency-Format/m-p/2676161#M79981</link>
      <description>&lt;P&gt;You could use a field parameter. Create separate measures to return the value in the appropriate currency, each of which you can then format properly. Add all the measures to a field parameter and the user can choose between them.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 16:24:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Currency-Format/m-p/2676161#M79981</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-08-02T16:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Currency Format</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Currency-Format/m-p/2676487#M80002</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240987" data-lia-user-login="johnt75" class="lia-mention lia-mention-user"&gt;johnt75&lt;/a&gt;,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks for the answer. The user should be able to change more then just the currency of Net Sales, also Buget and Forecast. Would that be possible using field parameter? I havent really played around with that feature yet.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 19:55:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Currency-Format/m-p/2676487#M80002</guid>
      <dc:creator>Molin</dc:creator>
      <dc:date>2022-08-02T19:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: Currency Format</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Currency-Format/m-p/2677717#M80062</link>
      <description>&lt;P&gt;If there are multiple different types of measures to change then a fields parameter is probably not the best option, you might be better off with a calculation group as that would work with any measure you passed in to it, simply perform the currency conversion on the results of SELECTEDMEASURE(). It is also possible to have different format strings for different calculation items&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 08:12:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Currency-Format/m-p/2677717#M80062</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-08-03T08:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: Currency Format</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Currency-Format/m-p/2681335#M80308</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240987" data-lia-user-login="johnt75" class="lia-mention lia-mention-user"&gt;johnt75&lt;/a&gt;,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks great feedback. I have looked into using Tabular Editor with Calculating groups. However, it tends to format all measures (some which are not currencies) when I use SELECTEDMEASURE(). Do you know a way around this?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 10:02:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Currency-Format/m-p/2681335#M80308</guid>
      <dc:creator>Molin</dc:creator>
      <dc:date>2022-08-04T10:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: Currency Format</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Currency-Format/m-p/2681401#M80312</link>
      <description>&lt;P&gt;The format expression itself can be DAX, so you could put a SWITCH( SELECTEDMEASURENAME() in there and return different format strings dependent on which measure was currently in context&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 10:42:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Currency-Format/m-p/2681401#M80312</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-08-04T10:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: Currency Format</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Currency-Format/m-p/2682701#M80409</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240987" data-lia-user-login="johnt75" class="lia-mention lia-mention-user"&gt;johnt75&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;When I try to use either SWITCH or IF I am able to format the selectedmeasures, however I can find a way to keep the normal format for all other measure. I have a table where I want the Calculated group to format some columns with Sales and Budget but the rest of the measures should keep their normal format.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;How do I do that?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 20:43:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Currency-Format/m-p/2682701#M80409</guid>
      <dc:creator>Molin</dc:creator>
      <dc:date>2022-08-04T20:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: Currency Format</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Currency-Format/m-p/2683641#M80457</link>
      <description>&lt;P&gt;I think you should be able to use SELECTEDMEASUREFORMATSTRING() as the default in a SWITCH statement, so unless you explicitly specify a new format string for a measure it will use its original setting&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2022 08:14:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Currency-Format/m-p/2683641#M80457</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-08-05T08:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: Currency Format</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Currency-Format/m-p/2686288#M80697</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks a million. I got it solved with the SELECTEDMEASUREFORMATSTRING()&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2022 06:02:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Currency-Format/m-p/2686288#M80697</guid>
      <dc:creator>Molin</dc:creator>
      <dc:date>2022-08-08T06:02:33Z</dc:date>
    </item>
  </channel>
</rss>

