<?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: multiply two columns with different date in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/multiply-two-columns-with-different-date/m-p/3155692#M113193</link>
    <description>&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want multiply "12 month Retention rate for 202302" into "Total Crew Needed", But as you can see, there is no data for "12 month Retention rate for 202302" , since they are for another date (last month).&lt;/P&gt;</description>
    <pubDate>Mon, 27 Mar 2023 10:07:56 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-03-27T10:07:56Z</dc:date>
    <item>
      <title>multiply two columns with different date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/multiply-two-columns-with-different-date/m-p/3153809#M113055</link>
      <description>&lt;P&gt;Hello, I have two columns. One column is based on the last month value and another one is based on next month value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to multiply these two coulmns and sort it based on the current date.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have any solution?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Mar 2023 11:28:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/multiply-two-columns-with-different-date/m-p/3153809#M113055</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-25T11:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: multiply two columns with different date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/multiply-two-columns-with-different-date/m-p/3154057#M113075</link>
      <description>&lt;P&gt;Could you show a few rows of a sample dataset, and the resulting dataset you're trying to achieve? I have a couple of things I'm not clear on, and a sample could help with this.&lt;/P&gt;</description>
      <pubDate>Sat, 25 Mar 2023 19:47:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/multiply-two-columns-with-different-date/m-p/3154057#M113075</guid>
      <dc:creator>andrewpirie</dc:creator>
      <dc:date>2023-03-25T19:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: multiply two columns with different date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/multiply-two-columns-with-different-date/m-p/3155692#M113193</link>
      <description>&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want multiply "12 month Retention rate for 202302" into "Total Crew Needed", But as you can see, there is no data for "12 month Retention rate for 202302" , since they are for another date (last month).&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 10:07:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/multiply-two-columns-with-different-date/m-p/3155692#M113193</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-27T10:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: multiply two columns with different date</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/multiply-two-columns-with-different-date/m-p/3157779#M113308</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is your&amp;nbsp;&lt;SPAN&gt;"12 month Retention rate for 202302" from another source table or in the same source table as&amp;nbsp;"Total Crew Needed"? Anyway you need to create a measure to get the last month's&amp;nbsp;Retention rate. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Assume that your [Date] column in the matrix visual is from 'Table1' and that your "12 month Retention rate" is from a table 'Table2' which has a month column (with month value like 202302), you can create a measure similar to below:&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;last month rate =
VAR _lastMonth =
    YEAR ( EOMONTH ( MAX ( 'Table1'[Date] ), -1 ) ) * 100 + MONTH ( EOMONTH ( MAX ( 'Table1'[Date] ), -1 ) )
RETURN
    CALCULATE (
        MAX ( 'Table2'[Retention rate] ),
        ALL ( 'Table2' ),
        'Table2'[Month] = _lastMonth
    )
&lt;/LI-CODE&gt;
&lt;P&gt;Add this measure to the matrix visual to check whether it gets the retention rate of last month correctly. Then you can create another measure to multiply it to&amp;nbsp;&lt;SPAN&gt;"Total Crew Needed".&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = [last month rate] * SUM ( 'Table'[Total Crew Needed] )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ Jing&lt;BR /&gt;If this post helps, please Accept it as Solution to help other members find it.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 07:15:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/multiply-two-columns-with-different-date/m-p/3157779#M113308</guid>
      <dc:creator>v-jingzhang</dc:creator>
      <dc:date>2023-03-28T07:15:01Z</dc:date>
    </item>
  </channel>
</rss>

