<?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 Measures multiplication not working in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measures-multiplication-not-working/m-p/3196075#M157061</link>
    <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to update a cost (base cost) from a reference period to the latest period available using the DCCI Index. The final result should give me the capitalized cost.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To make this dynamic (I want to be free to choose any combination of references and latest period), I have created the following:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT color="#0000FF"&gt;a measure to return the reference period based on a filter:&amp;nbsp;&lt;/FONT&gt;&lt;BR /&gt;&lt;EM&gt;&lt;SPAN&gt;reference period = &lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Reference Period'&lt;/SPAN&gt;&lt;SPAN&gt;[QY_reference]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;&lt;FONT color="#0000FF"&gt;a measure to return the latest period based on a filter:&lt;/FONT&gt;&lt;I&gt;&lt;FONT color="#0000FF"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;BR /&gt;&lt;/I&gt;&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN&gt;latest period = &lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Latest Period'&lt;/SPAN&gt;&lt;SPAN&gt;[QY_latest]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT color="#0000FF"&gt;a measure to return the respective DCCI index for the selected periods&lt;/FONT&gt;&lt;SPAN&gt;:&lt;BR /&gt;&lt;/SPAN&gt;&lt;EM&gt;&lt;EM&gt;&lt;SPAN&gt;DCCI_latest = &lt;/SPAN&gt;&lt;SPAN&gt;LOOKUPVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DCCI&lt;/SPAN&gt;&lt;SPAN&gt;[DCCI]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;DCCI&lt;/SPAN&gt;&lt;SPAN&gt;[QY]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'Latest Period'&lt;/SPAN&gt;&lt;SPAN&gt;[latest period]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;EM&gt;DCCI_reference = LOOKUPVALUE(DCCI[DCCI],DCCI[QY],'Reference Period'[reference period])&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;At this point, these measures are working:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Now, I want to multiply the base cost (&lt;STRONG&gt;Electrical Labour Cost USD&lt;/STRONG&gt; -&amp;gt; this is another measure, it's the sum of the electrical labour base cost column) by the ratio of these indexes (DCCI_lateste / DCCI_reference).&lt;BR /&gt;I typed the following function but it doesn't work I cannot understand what I need to change:&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;EM&gt;Electrical Labour Capitalized Cost USD = DIVIDE(&amp;nbsp;[Electrical Labour Cost USD]*DCCI_reference ,&amp;nbsp;[DCCI_latest]) )&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts about this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mónica Trilho&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 19 Apr 2023 14:41:55 GMT</pubDate>
    <dc:creator>mtrilho</dc:creator>
    <dc:date>2023-04-19T14:41:55Z</dc:date>
    <item>
      <title>Measures multiplication not working</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measures-multiplication-not-working/m-p/3196075#M157061</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to update a cost (base cost) from a reference period to the latest period available using the DCCI Index. The final result should give me the capitalized cost.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To make this dynamic (I want to be free to choose any combination of references and latest period), I have created the following:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;FONT color="#0000FF"&gt;a measure to return the reference period based on a filter:&amp;nbsp;&lt;/FONT&gt;&lt;BR /&gt;&lt;EM&gt;&lt;SPAN&gt;reference period = &lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Reference Period'&lt;/SPAN&gt;&lt;SPAN&gt;[QY_reference]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;&lt;FONT color="#0000FF"&gt;a measure to return the latest period based on a filter:&lt;/FONT&gt;&lt;I&gt;&lt;FONT color="#0000FF"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;BR /&gt;&lt;/I&gt;&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN&gt;latest period = &lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Latest Period'&lt;/SPAN&gt;&lt;SPAN&gt;[QY_latest]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT color="#0000FF"&gt;a measure to return the respective DCCI index for the selected periods&lt;/FONT&gt;&lt;SPAN&gt;:&lt;BR /&gt;&lt;/SPAN&gt;&lt;EM&gt;&lt;EM&gt;&lt;SPAN&gt;DCCI_latest = &lt;/SPAN&gt;&lt;SPAN&gt;LOOKUPVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;DCCI&lt;/SPAN&gt;&lt;SPAN&gt;[DCCI]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;DCCI&lt;/SPAN&gt;&lt;SPAN&gt;[QY]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'Latest Period'&lt;/SPAN&gt;&lt;SPAN&gt;[latest period]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;EM&gt;DCCI_reference = LOOKUPVALUE(DCCI[DCCI],DCCI[QY],'Reference Period'[reference period])&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;At this point, these measures are working:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Now, I want to multiply the base cost (&lt;STRONG&gt;Electrical Labour Cost USD&lt;/STRONG&gt; -&amp;gt; this is another measure, it's the sum of the electrical labour base cost column) by the ratio of these indexes (DCCI_lateste / DCCI_reference).&lt;BR /&gt;I typed the following function but it doesn't work I cannot understand what I need to change:&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;EM&gt;Electrical Labour Capitalized Cost USD = DIVIDE(&amp;nbsp;[Electrical Labour Cost USD]*DCCI_reference ,&amp;nbsp;[DCCI_latest]) )&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts about this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mónica Trilho&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 19 Apr 2023 14:41:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measures-multiplication-not-working/m-p/3196075#M157061</guid>
      <dc:creator>mtrilho</dc:creator>
      <dc:date>2023-04-19T14:41:55Z</dc:date>
    </item>
  </channel>
</rss>

