<?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: Sum of the continuous values by week in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-the-continuous-values-by-week/m-p/2412189#M63571</link>
    <description>&lt;P&gt;Maybe something using GENERATE, like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Meas 3 =
var summaryTable = GENERATE( VALUES( 'Clients'[Code]),
   ADDCOLUMNS( VALUES('Date'[Week]), "@value", CALCULATE( [Meas 2] ) )
)
return SUMX( summaryTable, [@value] )&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 23 Mar 2022 11:49:15 GMT</pubDate>
    <dc:creator>johnt75</dc:creator>
    <dc:date>2022-03-23T11:49:15Z</dc:date>
    <item>
      <title>Sum of the continuous values by week</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-the-continuous-values-by-week/m-p/2411765#M63547</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a problem with the measure&amp;nbsp; creation and I'm looking for the DAX&amp;nbsp; hero &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;My measure (meas2) fills last value of the other measure (meas1) for the empty cusomers periods. For example:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;My goal is to sum up Meas2 for the weeks:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I tried in different ways, using summarize etc but I can't find the solution &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Measures code;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;step 1&lt;/STRONG&gt; =&lt;/P&gt;&lt;P&gt;VAR MaxDate =MAX ( 'Date'[Date] )&lt;/P&gt;&lt;P&gt;RETURN&lt;/P&gt;&lt;P&gt;CALCULATE ( [Meas1],&lt;/P&gt;&lt;P&gt;FILTER ( 'Date', 'Date'[Date] = MaxDate )&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;---------------------------------------------------&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;Meas2= &lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;PrevDate&lt;/SPAN&gt;&lt;SPAN&gt; =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;MAXX&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Date'&lt;/SPAN&gt;&lt;SPAN&gt;) ,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;'Date'[Date]&lt;/SPAN&gt;&lt;SPAN&gt; &amp;lt; &lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;'Date'[Date]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;amp;&amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;NOT&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;ISBLANK&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;[step 1]&lt;/SPAN&gt;&lt;SPAN&gt; ) )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;'Date'[Date]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;LastValueFill&lt;/SPAN&gt;&lt;SPAN&gt; =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[Meas1],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;'Date'[Date]&lt;/SPAN&gt;&lt;SPAN&gt; ), &lt;/SPAN&gt;&lt;SPAN&gt;'Date'[Date]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;PrevDate&lt;/SPAN&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;FillEmpty&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;ISBLANK&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;[step 1]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;LastValueFill&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;[step 1]&lt;/SPAN&gt;&lt;SPAN&gt; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;FillEmpty&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;-----------------------------------------&lt;/P&gt;&lt;P&gt;As you can see it doesn't work when I would like to sum up by weeks:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried sth like this:&lt;/P&gt;&lt;P&gt;Meas3 =&lt;/P&gt;&lt;P&gt;var _crosstable = CALCULATETABLE(CROSSJOIN(Clients,'Date'))&lt;BR /&gt;var _client_week = SUMMARIZE(_crosstable,'Date'[Week],Clients[Code])&lt;BR /&gt;var _finalresult = SUMX(_client_week,&lt;BR /&gt;[Meas 2]&lt;BR /&gt;)&lt;BR /&gt;return&lt;BR /&gt;if(&lt;BR /&gt;and(HASONEFILTER(Clients[Code]),HASONEFILTER('Date'[Week]))&lt;BR /&gt;,[Meas 2]&lt;BR /&gt;, _finalresult&lt;BR /&gt;)&lt;BR /&gt;----------&lt;BR /&gt;But It doesn't work (total is ok but per week is wrong)&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I can't add a sample because it's live connected to AS, part of the model:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;So Dax Heroes, please help me! &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 09:32:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-the-continuous-values-by-week/m-p/2411765#M63547</guid>
      <dc:creator>mic_rys_eLbiz</dc:creator>
      <dc:date>2022-03-23T09:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of the continuous values by week</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-the-continuous-values-by-week/m-p/2411909#M63556</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="279058" data-lia-user-login="mic_rys_eLbiz" class="lia-mention lia-mention-user"&gt;mic_rys_eLbiz&lt;/a&gt; , to me meas3 looks like&lt;/P&gt;
&lt;P&gt;Sumx(filter(allselected(Table), Table[Week] = max(Table[Week])), [Meas2])&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 10:12:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-the-continuous-values-by-week/m-p/2411909#M63556</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-03-23T10:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of the continuous values by week</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-the-continuous-values-by-week/m-p/2411936#M63558</link>
      <description>&lt;P&gt;I think you're right to use the SUMX over SUMMARIZE but the code isn't quite right. Use Performance Analyzer to get the DAX code which is generated for the table where you have Code, Week and Meas2. That will use SUMMARIZECOLUMNS but hopefully you can translate that into ADDCOLUMNS .. SUMMARIZE to produce the same table. You can then do a SUMX over that.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 10:19:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-the-continuous-values-by-week/m-p/2411936#M63558</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-03-23T10:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of the continuous values by week</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-the-continuous-values-by-week/m-p/2411977#M63559</link>
      <description>&lt;P&gt;unfortunatelly not:(&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 10:27:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-the-continuous-values-by-week/m-p/2411977#M63559</guid>
      <dc:creator>mic_rys_eLbiz</dc:creator>
      <dc:date>2022-03-23T10:27:58Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of the continuous values by week</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-the-continuous-values-by-week/m-p/2412036#M63563</link>
      <description>&lt;P&gt;the part of the code is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;VAR __DS0FilterTable =&lt;BR /&gt;TREATAS({"7016479",&lt;BR /&gt;"7016828"}, 'Clients'[Code])&lt;/P&gt;&lt;P&gt;VAR __DS0Core =&lt;BR /&gt;SUMMARIZECOLUMNS(&lt;BR /&gt;ROLLUPADDISSUBTOTAL(ROLLUPGROUP('Clients'[Code], 'Date'[Week]), "IsGrandTotalRowTotal"),&lt;BR /&gt;__DS0FilterTable,&lt;BR /&gt;"Meas2", 'ExternalData'[Meas2]&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;could you help me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 10:49:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-the-continuous-values-by-week/m-p/2412036#M63563</guid>
      <dc:creator>mic_rys_eLbiz</dc:creator>
      <dc:date>2022-03-23T10:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of the continuous values by week</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-the-continuous-values-by-week/m-p/2412071#M63564</link>
      <description>&lt;P&gt;Try&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Meas 3 =
SUMX( ADDCOLUMNS( SUMMARIZE( 'Clients', 'Clients'[Code], 'Date'[Week]),
   "@value", [Meas 2] ),
   [@value]
)&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 23 Mar 2022 11:01:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-the-continuous-values-by-week/m-p/2412071#M63564</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-03-23T11:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of the continuous values by week</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-the-continuous-values-by-week/m-p/2412123#M63566</link>
      <description>&lt;P&gt;I can't use summarize because "code" and "week" are not in the table clients, I tried sth like this but I can't use "weekk" from combinetable1&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;my hands down &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 11:23:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-the-continuous-values-by-week/m-p/2412123#M63566</guid>
      <dc:creator>mic_rys_eLbiz</dc:creator>
      <dc:date>2022-03-23T11:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of the continuous values by week</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-the-continuous-values-by-week/m-p/2412189#M63571</link>
      <description>&lt;P&gt;Maybe something using GENERATE, like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Meas 3 =
var summaryTable = GENERATE( VALUES( 'Clients'[Code]),
   ADDCOLUMNS( VALUES('Date'[Week]), "@value", CALCULATE( [Meas 2] ) )
)
return SUMX( summaryTable, [@value] )&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 23 Mar 2022 11:49:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-the-continuous-values-by-week/m-p/2412189#M63571</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-03-23T11:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of the continuous values by week</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-the-continuous-values-by-week/m-p/2412238#M63579</link>
      <description>&lt;P&gt;Doesn't work..&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Maybe I need to do some modification in the [Meas2] because it cuts values which don't exists but are artificial filled by [Meas2] ?&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is funny that if I tried to sum up by Code my measure works:&lt;/P&gt;&lt;P&gt;Meas3 =&lt;/P&gt;&lt;P&gt;var _crosstable = CALCULATETABLE(CROSSJOIN(Clients,'Date'))&lt;BR /&gt;var _client_week = SUMMARIZE(_crosstable,'Date'[Week],Clients[Code])&lt;BR /&gt;var _finalresult = SUMX(_client_week,&lt;BR /&gt;[Meas 2]&lt;BR /&gt;)&lt;BR /&gt;return&lt;BR /&gt;if(&lt;BR /&gt;and(HASONEFILTER(Clients[Code]),HASONEFILTER('Date'[Week]))&lt;BR /&gt;,[Meas 2]&lt;BR /&gt;, _finalresult&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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>Wed, 23 Mar 2022 12:06:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-the-continuous-values-by-week/m-p/2412238#M63579</guid>
      <dc:creator>mic_rys_eLbiz</dc:creator>
      <dc:date>2022-03-23T12:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of the continuous values by week</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-the-continuous-values-by-week/m-p/2412258#M63580</link>
      <description>&lt;P&gt;In my GENERATE code try changing VALUES( Clients[Code]) to ALL( Clients[Code])&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 12:13:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-the-continuous-values-by-week/m-p/2412258#M63580</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-03-23T12:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of the continuous values by week</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-the-continuous-values-by-week/m-p/2412315#M63586</link>
      <description>&lt;P&gt;still not working &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 12:34:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-the-continuous-values-by-week/m-p/2412315#M63586</guid>
      <dc:creator>mic_rys_eLbiz</dc:creator>
      <dc:date>2022-03-23T12:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of the continuous values by week</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-the-continuous-values-by-week/m-p/2413845#M63688</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="279058" data-lia-user-login="mic_rys_eLbiz" class="lia-mention lia-mention-user"&gt;mic_rys_eLbiz&lt;/a&gt; ,&lt;BR /&gt;Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 03:13:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-the-continuous-values-by-week/m-p/2413845#M63688</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-03-24T03:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of the continuous values by week</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-the-continuous-values-by-week/m-p/2415021#M63770</link>
      <description>&lt;P&gt;&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;ok, I try to prepare pbix file for this case&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 12:30:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-the-continuous-values-by-week/m-p/2415021#M63770</guid>
      <dc:creator>mic_rys_eLbiz</dc:creator>
      <dc:date>2022-03-24T12:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of the continuous values by week</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-the-continuous-values-by-week/m-p/2415379#M63790</link>
      <description>&lt;P&gt;Guys&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="240987" data-lia-user-login="johnt75" class="lia-mention lia-mention-user"&gt;johnt75&lt;/a&gt;&amp;nbsp;, I prepared sample in the pbix file,&amp;nbsp;I'm counting on you ! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;A href="https://files.fm/u/6a9z36cm4" target="_blank"&gt;https://files.fm/u/6a9z36cm4&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 14:42:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-the-continuous-values-by-week/m-p/2415379#M63790</guid>
      <dc:creator>mic_rys_eLbiz</dc:creator>
      <dc:date>2022-03-24T14:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of the continuous values by week</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-the-continuous-values-by-week/m-p/2415570#M63798</link>
      <description>&lt;P&gt;I was able to get the below code working by changing the relationship between Clients and VisitTargets from bi-directional to single&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sum of meas 2 = 
SUMX( VALUES(Clients[Code]), CALCULATE([Meas 2]))&lt;/LI-CODE&gt;&lt;P&gt;I don't know if changing that is an option for you but it might make things simpler. Trying to follow filters across multiple bi-directional relationships is a nightmare.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 15:52:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-the-continuous-values-by-week/m-p/2415570#M63798</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-03-24T15:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: Sum of the continuous values by week</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-the-continuous-values-by-week/m-p/2417412#M63874</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240987" data-lia-user-login="johnt75" class="lia-mention lia-mention-user"&gt;johnt75&lt;/a&gt;&amp;nbsp;you are the Guy! I modyfied a little for bi-directional:&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUMX&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;CALCULATETABLE&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Clients[Code]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;CROSSFILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Clients[Code]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;VisitTargets[Code]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;OneWay&lt;/SPAN&gt;&lt;SPAN&gt;)), &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[Meas 2]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;and I think it works fine! Thank a lot!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 25 Mar 2022 09:27:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Sum-of-the-continuous-values-by-week/m-p/2417412#M63874</guid>
      <dc:creator>mic_rys_eLbiz</dc:creator>
      <dc:date>2022-03-25T09:27:17Z</dc:date>
    </item>
  </channel>
</rss>

