<?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 Calculated measure for tables with different data intervals in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-measure-for-tables-with-different-data-intervals/m-p/3693730#M143598</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two tables - Table A has daily data and Table B has weekly data. They have two common fields - Product and Week Ending.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Problem: I need a Calculated Measure to&amp;nbsp; get the SUM of the Daily data from Table A and divide that by the value in Table B for the corresponding Product and Week Ending period.&amp;nbsp;Is this possible?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So something like this --&amp;gt; Table A / Table B where Product &amp;amp; Week Ending matches&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;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Feb 2024 09:32:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-02-12T09:32:02Z</dc:date>
    <item>
      <title>Calculated measure for tables with different data intervals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-measure-for-tables-with-different-data-intervals/m-p/3693730#M143598</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two tables - Table A has daily data and Table B has weekly data. They have two common fields - Product and Week Ending.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Problem: I need a Calculated Measure to&amp;nbsp; get the SUM of the Daily data from Table A and divide that by the value in Table B for the corresponding Product and Week Ending period.&amp;nbsp;Is this possible?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So something like this --&amp;gt; Table A / Table B where Product &amp;amp; Week Ending matches&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2024 09:32:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-measure-for-tables-with-different-data-intervals/m-p/3693730#M143598</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-12T09:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated measure for tables with different data intervals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-measure-for-tables-with-different-data-intervals/m-p/3695778#M143724</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;No relationship between the two tables&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can create a measure as follows.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = DIVIDE(MAX(TableA[Volume]), CALCULATE(MAX(TableB[Volume]), FILTER(TableB, [Product] = SELECTEDVALUE(TableA[Product]) &amp;amp;&amp;amp; [Weeking Ending Date] = SELECTEDVALUE(TableA[Week Ending Date]))))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Is this the result you expect?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Yulia Xu&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 08:27:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculated-measure-for-tables-with-different-data-intervals/m-p/3695778#M143724</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-13T08:27:18Z</dc:date>
    </item>
  </channel>
</rss>

