<?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 Switch and Multiply in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-and-Multiply/m-p/3334869#M125054</link>
    <description>&lt;P&gt;Hi All!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm looking to write a function similar to the image below:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;For example if column one is 20%, I need the values in that row to be multiplied by 1 and so on. Thanks in advance!&lt;/P&gt;</description>
    <pubDate>Mon, 17 Jul 2023 16:52:54 GMT</pubDate>
    <dc:creator>am_i_really</dc:creator>
    <dc:date>2023-07-17T16:52:54Z</dc:date>
    <item>
      <title>Switch and Multiply</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-and-Multiply/m-p/3334869#M125054</link>
      <description>&lt;P&gt;Hi All!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm looking to write a function similar to the image below:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;For example if column one is 20%, I need the values in that row to be multiplied by 1 and so on. Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2023 16:52:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-and-Multiply/m-p/3334869#M125054</guid>
      <dc:creator>am_i_really</dc:creator>
      <dc:date>2023-07-17T16:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: Switch and Multiply</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-and-Multiply/m-p/3391817#M127869</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="490352" data-lia-user-login="am_i_really" class="lia-mention lia-mention-user"&gt;am_i_really&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would first create a index column as multiplier in Power Query. Pay attention to start with number 1.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And then, use this measure:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Medida 2 = SUMX(MyTable, MyTable[Value]*MyTable[Multiplier])&lt;/LI-CODE&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 07:32:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switch-and-Multiply/m-p/3391817#M127869</guid>
      <dc:creator>mlsx4</dc:creator>
      <dc:date>2023-08-22T07:32:43Z</dc:date>
    </item>
  </channel>
</rss>

