<?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: Switch between Currency and Number in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-between-Currency-and-Number/m-p/3266553#M120937</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="343431" data-lia-user-login="ValtteriN" class="lia-mention lia-mention-user"&gt;ValtteriN&lt;/a&gt;&amp;nbsp;:Thanks for sharing. Is it possible to use the same approach to switch between a Volume and a Dollar column with the indidivudal format? As of now it changing just the format for a single column, right?&lt;/P&gt;</description>
    <pubDate>Sat, 03 Jun 2023 05:24:59 GMT</pubDate>
    <dc:creator>joshua1990</dc:creator>
    <dc:date>2023-06-03T05:24:59Z</dc:date>
    <item>
      <title>Switch between Currency and Number</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-between-Currency-and-Number/m-p/3256247#M120266</link>
      <description>&lt;P&gt;Hi all!&lt;/P&gt;
&lt;P&gt;I have a report where I would like to put a switch on top as a slicer to switch between currency and units.&lt;/P&gt;
&lt;P&gt;For this objective I started with this approach:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SWITCH A = 
VAR _Selection = SELECTEDVALUE('Currency/ Volume'[ID])
VAR _Volume = FORMAT(DIVIDE(SUM('Sales'[Value 1]),1000), "#,##K")
VAR _Dollar = FORMAT(DIVIDE(SUM('Sales'[Value 1 $]),1000), "$ #,##K")

RETURN
IF(_Selection = 1, _Dollar, _Volume) &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have an unrelated table with 2 columns&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="50%" height="30px"&gt;Dimension&lt;/TD&gt;
&lt;TD width="50%" height="30px"&gt;ID&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%" height="30px"&gt;Currency&lt;/TD&gt;
&lt;TD width="50%" height="30px"&gt;1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50%" height="30px"&gt;Volumne&lt;/TD&gt;
&lt;TD width="50%" height="30px"&gt;2&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on the selection of ID (1 or 2), I switch within the measure to Units or Dollars.&lt;/P&gt;
&lt;P&gt;But now I get a Text Format as a result in the matrix. I would still like to have a number column in the matrix in the end with all values on the right alligned.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any thoughts / optimizations on the approach above?&lt;/P&gt;
&lt;P&gt;How would you do it?&lt;/P&gt;</description>
      <pubDate>Sat, 27 May 2023 11:10:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-between-Currency-and-Number/m-p/3256247#M120266</guid>
      <dc:creator>joshua1990</dc:creator>
      <dc:date>2023-05-27T11:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: Switch between Currency and Number</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-between-Currency-and-Number/m-p/3256685#M120291</link>
      <description>&lt;P&gt;No ideas?&lt;/P&gt;</description>
      <pubDate>Sun, 28 May 2023 10:24:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-between-Currency-and-Number/m-p/3256685#M120291</guid>
      <dc:creator>joshua1990</dc:creator>
      <dc:date>2023-05-28T10:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: Switch between Currency and Number</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-between-Currency-and-Number/m-p/3256772#M120297</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;I would do this with a calculation group:&lt;BR /&gt;&lt;BR /&gt;Expression:&lt;FONT&gt;&lt;FONT class=""&gt;selectedmeasure&lt;FONT class=""&gt;()&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Format string expression:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;FONT&gt;&lt;FONT class=""&gt;IF&lt;FONT class=""&gt;(&lt;FONT class=""&gt;SELECTEDVALUE&lt;FONT class=""&gt;(&lt;FONT class=""&gt;'Selection for V/C'[value]=&lt;FONT class=""&gt;"Currency"&lt;FONT class=""&gt;,&lt;FONT class=""&gt; "$ #,##K"&lt;FONT class=""&gt;, &lt;FONT class=""&gt;selectedmeasureformatstring&lt;FONT class=""&gt;())&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="92006" data-lia-user-login="joshua1990" class="lia-mention lia-mention-user"&gt;joshua1990&lt;/a&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 28 May 2023 14:26:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-between-Currency-and-Number/m-p/3256772#M120297</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2023-05-28T14:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Switch between Currency and Number</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-between-Currency-and-Number/m-p/3257855#M120368</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="343431" data-lia-user-login="ValtteriN" class="lia-mention lia-mention-user"&gt;ValtteriN&lt;/a&gt;&amp;nbsp;THanks a lot! Any workourant without Tabular Editor? I am not allowed to use this software.&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2023 11:07:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-between-Currency-and-Number/m-p/3257855#M120368</guid>
      <dc:creator>joshua1990</dc:creator>
      <dc:date>2023-05-29T11:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Switch between Currency and Number</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-between-Currency-and-Number/m-p/3257977#M120386</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="92006" data-lia-user-login="joshua1990" class="lia-mention lia-mention-user"&gt;joshua1990&lt;/a&gt;&amp;nbsp; you can also manage calculation groups in Visual studio or after the upcoming release announced at MS Build calculation groups will be available in Power BI desktop. I think this was scheduled for June's release.&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2023 12:43:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-between-Currency-and-Number/m-p/3257977#M120386</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2023-05-29T12:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: Switch between Currency and Number</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-between-Currency-and-Number/m-p/3261514#M120627</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="343431" data-lia-user-login="ValtteriN" class="lia-mention lia-mention-user"&gt;ValtteriN&lt;/a&gt;&amp;nbsp;: Thanks a lot! Could you please share the Power BI File as well?&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 09:48:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-between-Currency-and-Number/m-p/3261514#M120627</guid>
      <dc:creator>joshua1990</dc:creator>
      <dc:date>2023-05-31T09:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: Switch between Currency and Number</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-between-Currency-and-Number/m-p/3262998#M120720</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="92006" data-lia-user-login="joshua1990" class="lia-mention lia-mention-user"&gt;joshua1990&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Sure,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Here is an example file&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 03:31:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-between-Currency-and-Number/m-p/3262998#M120720</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2023-06-01T03:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: Switch between Currency and Number</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-between-Currency-and-Number/m-p/3264329#M120808</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="343431" data-lia-user-login="ValtteriN" class="lia-mention lia-mention-user"&gt;ValtteriN&lt;/a&gt;&amp;nbsp;: Thanks a lot for providing this. It seems like the same column is display once in units and once in dollars, right?&lt;/P&gt;
&lt;P&gt;But what I need is something the also multiplies the units into a dollar value. I have a column with units, I have a column with the price per unit and then if needed I have a calculated column with the total dollars (units x price)&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 15:57:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-between-Currency-and-Number/m-p/3264329#M120808</guid>
      <dc:creator>joshua1990</dc:creator>
      <dc:date>2023-06-01T15:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: Switch between Currency and Number</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-between-Currency-and-Number/m-p/3266553#M120937</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="343431" data-lia-user-login="ValtteriN" class="lia-mention lia-mention-user"&gt;ValtteriN&lt;/a&gt;&amp;nbsp;:Thanks for sharing. Is it possible to use the same approach to switch between a Volume and a Dollar column with the indidivudal format? As of now it changing just the format for a single column, right?&lt;/P&gt;</description>
      <pubDate>Sat, 03 Jun 2023 05:24:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-between-Currency-and-Number/m-p/3266553#M120937</guid>
      <dc:creator>joshua1990</dc:creator>
      <dc:date>2023-06-03T05:24:59Z</dc:date>
    </item>
  </channel>
</rss>

