<?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: DAX Fetch base value of 1 column and multiply it to all the rows of another column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Fetch-base-value-of-1-column-and-multiply-it-to-all-the-rows/m-p/2750965#M84874</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;the easiest would be to create a calculated table using the following DAX expression:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table = 
ADDCOLUMNS (
    CROSSJOIN (
        SELECTCOLUMNS (
            Entities, 
            "Entity", Entities[Entity],
            "Value", Entities[Value]
        ),
        Multiplier
    ),
    "Value with Multiplier", [Value] * [Multiplier]
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H2 style="margin: 0in; font-size: 14.0pt; color: #2e75b5;"&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":sparkles:"&gt;✨&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN&gt; Follow us on &lt;/SPAN&gt;&lt;A href="https://www.linkedin.com/company/perytus/" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;LinkedIn&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt; and&amp;nbsp;&lt;img /&gt;&amp;nbsp;to our &lt;/SPAN&gt;&lt;A href="https://www.youtube.com/perytus" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;YouTube&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt; channel &lt;/SPAN&gt;&lt;/H2&gt;
&lt;P style="margin: 0in;"&gt;&lt;SPAN&gt;I would &lt;/SPAN&gt;&lt;SPAN&gt;❤&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Kudos&lt;/SPAN&gt;&lt;SPAN&gt; if my solution helped. &lt;/SPAN&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":backhand_index_pointing_right:"&gt;👉&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN&gt; If you can spend time posting the question, you can also make effort to give Kudos to whoever helped to solve your problem. It is a token of appreciation! &lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-size: 9.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-size: 9.0pt;"&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":high_voltage:"&gt;⚡&lt;/span&gt; &lt;/SPAN&gt;&lt;SPAN&gt;Visit us at &lt;/SPAN&gt;&lt;A href="https://perytus.com" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;https://perytus.com&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;, your one-stop shop for Power BI-related projects/training/consultancy.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Sep 2022 16:20:53 GMT</pubDate>
    <dc:creator>parry2k</dc:creator>
    <dc:date>2022-09-06T16:20:53Z</dc:date>
    <item>
      <title>DAX Fetch base value of 1 column and multiply it to all the rows of another column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Fetch-base-value-of-1-column-and-multiply-it-to-all-the-rows/m-p/2749844#M84808</link>
      <description>&lt;P&gt;Need help in DAX. I have one table that contains data related to multipliers for each year, like the follows:&lt;/P&gt;&lt;P&gt;***********************************&lt;/P&gt;&lt;P&gt;Table &lt;STRONG&gt;Multiplier&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;********************************&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another table is there which has multiple 'values' for the year column like the follows:&lt;/P&gt;&lt;P&gt;******************************************&lt;/P&gt;&lt;P&gt;Table &lt;STRONG&gt;Entities&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;*************************************************&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;There's a 1- * relation between the tables based on the year column.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question:&amp;nbsp;&lt;/STRONG&gt;&lt;EM&gt;What I have to achieve is access the base/starting"Value" of every entity (base year being 2011-12) and multiply only that value by&amp;nbsp;all the rows in the 'Multiplier' column&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The solution for entity A would look something like below:&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;Base value remains 20 for every year, then that value gets multiplied by the multiplier which changes every year.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, to get the &lt;U&gt;&lt;EM&gt;Base value&lt;/EM&gt;&lt;/U&gt;, I used the following to create a measure:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Base value = CALCULATE(SUM('Entities'[Value]), Multiplier[Year] = "2011-12")&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;U&gt;For the base*multiplier&lt;/U&gt; column:&amp;nbsp;&lt;STRONG&gt;Base * multiplier = [Base value] * SUM('Multiplier'[Multiplier])&lt;BR /&gt;&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;The result of the above is&lt;STRONG&gt;:&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;So, it is generating correct base value but then not moving forward to multiply each year's multiplier with the base value. I&amp;nbsp;Tried other filter contexts too using KEEPFILTER, ALL within the CALCULATE, but nothing seems to generate the value I want.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Please help. Thanks in advance.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Some people I know who are good and can help are tagged, but others are most welcome to help too.&lt;BR /&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="341552" data-lia-user-login="v-chenyue-msft" class="lia-mention lia-mention-user"&gt;v-chenyue-msft&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="507" data-lia-user-login="parry2k" class="lia-mention lia-mention-user"&gt;parry2k&lt;/a&gt;&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="19851" data-lia-user-login="Ashish_Mathur" class="lia-mention lia-mention-user"&gt;Ashish_Mathur&lt;/a&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 06 Sep 2022 09:34:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Fetch-base-value-of-1-column-and-multiply-it-to-all-the-rows/m-p/2749844#M84808</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-06T09:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Fetch base value of 1 column and multiply it to all the rows of another column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Fetch-base-value-of-1-column-and-multiply-it-to-all-the-rows/m-p/2750965#M84874</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;the easiest would be to create a calculated table using the following DAX expression:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table = 
ADDCOLUMNS (
    CROSSJOIN (
        SELECTCOLUMNS (
            Entities, 
            "Entity", Entities[Entity],
            "Value", Entities[Value]
        ),
        Multiplier
    ),
    "Value with Multiplier", [Value] * [Multiplier]
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H2 style="margin: 0in; font-size: 14.0pt; color: #2e75b5;"&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":sparkles:"&gt;✨&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN&gt; Follow us on &lt;/SPAN&gt;&lt;A href="https://www.linkedin.com/company/perytus/" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;LinkedIn&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt; and&amp;nbsp;&lt;img /&gt;&amp;nbsp;to our &lt;/SPAN&gt;&lt;A href="https://www.youtube.com/perytus" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;YouTube&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt; channel &lt;/SPAN&gt;&lt;/H2&gt;
&lt;P style="margin: 0in;"&gt;&lt;SPAN&gt;I would &lt;/SPAN&gt;&lt;SPAN&gt;❤&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Kudos&lt;/SPAN&gt;&lt;SPAN&gt; if my solution helped. &lt;/SPAN&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":backhand_index_pointing_right:"&gt;👉&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN&gt; If you can spend time posting the question, you can also make effort to give Kudos to whoever helped to solve your problem. It is a token of appreciation! &lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-size: 9.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-size: 9.0pt;"&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":high_voltage:"&gt;⚡&lt;/span&gt; &lt;/SPAN&gt;&lt;SPAN&gt;Visit us at &lt;/SPAN&gt;&lt;A href="https://perytus.com" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;https://perytus.com&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;, your one-stop shop for Power BI-related projects/training/consultancy.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 16:20:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Fetch-base-value-of-1-column-and-multiply-it-to-all-the-rows/m-p/2750965#M84874</guid>
      <dc:creator>parry2k</dc:creator>
      <dc:date>2022-09-06T16:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Fetch base value of 1 column and multiply it to all the rows of another column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Fetch-base-value-of-1-column-and-multiply-it-to-all-the-rows/m-p/2752341#M84946</link>
      <description>&lt;P&gt;&lt;FONT&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for reaching out to us.&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;&amp;nbsp;&lt;SPAN&gt;So, it is generating correct base value but then not moving forward to multiply each year's multiplier with the base value. I&amp;nbsp;Tried other filter contexts too using KEEPFILTER, ALL within the CALCULATE, but nothing seems to generate the value I want.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Can you fill this table with the expected values? thanks&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;Best Regards,&lt;/P&gt;
&lt;P&gt;Community Support Team _Tang&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;helps&lt;/STRONG&gt;, please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2022 07:29:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Fetch-base-value-of-1-column-and-multiply-it-to-all-the-rows/m-p/2752341#M84946</guid>
      <dc:creator>v-xiaotang</dc:creator>
      <dc:date>2022-09-07T07:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Fetch base value of 1 column and multiply it to all the rows of another column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Fetch-base-value-of-1-column-and-multiply-it-to-all-the-rows/m-p/2754261#M85084</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="296930" data-lia-user-login="v-xiaotang" class="lia-mention lia-mention-user"&gt;v-xiaotang&lt;/a&gt;&amp;nbsp;Thanks for such a prompt reply. The required table would look like this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Where in, obviously, the values in the last column would be the result of the multiplication shown.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Roopansh&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 03:59:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Fetch-base-value-of-1-column-and-multiply-it-to-all-the-rows/m-p/2754261#M85084</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-08T03:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: DAX Fetch base value of 1 column and multiply it to all the rows of another column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Fetch-base-value-of-1-column-and-multiply-it-to-all-the-rows/m-p/2754288#M85085</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="507" data-lia-user-login="parry2k" class="lia-mention lia-mention-user"&gt;parry2k&lt;/a&gt;&amp;nbsp;, Thanks for your reply. Here's your code with v small changes that worked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;New Index table = 
ADDCOLUMNS (
    CROSSJOIN (
        SELECTCOLUMNS (
            Entities, 
            "Entity", 'Entities'[Entity],
            " Base year value", CALCULATE(SUM('Entities'[Value]), 'Entities'[Year] = "2011-12" )
        ),
        Multiplier
    ),
    "Value with Multiplier", [Base year value] * Multiplier[Multiplier]
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thanks a bunch man. I'd love to hear from you what should be the best source to learn dax from. I'm currently reading a book by Matt Allington called Supercharge Power bi.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 05:05:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Fetch-base-value-of-1-column-and-multiply-it-to-all-the-rows/m-p/2754288#M85085</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-08T05:05:12Z</dc:date>
    </item>
  </channel>
</rss>

