<?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: How to summarize the table based on the dynamic slicer of N of week before and N of week after in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-summarize-the-table-based-on-the-dynamic-slicer-of-N-of/m-p/4012111#M157976</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;Hey Wenbin, I found the real problem is a little bit complicated than what i described above. In the real world,i want to show both item and week in the final table. Is that ok for me to use 'UNION' dax to combine those two tables, instead of the Week columns of those two tables. (see below) But after I tried, the table is there.&amp;nbsp;&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;Also I forgot to mention we might have both forecast and ship in the same week at the same item. Given that, I want to make the comparison between ship and forecast at item level to pick the bigger one. How should I implement that kind of thoughts before I append two separate table together? (see below, we are now in the week 26, so week is 2024026)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Ship Table&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;STRONG&gt;Fcst Table&lt;/STRONG&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;Again, really appreciate your efforts!&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jun 2024 23:45:28 GMT</pubDate>
    <dc:creator>naoyixue1</dc:creator>
    <dc:date>2024-06-26T23:45:28Z</dc:date>
    <item>
      <title>How to summarize the table based on the dynamic slicer of N of week before and N of week after</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-summarize-the-table-based-on-the-dynamic-slicer-of-N-of/m-p/4009789#M157729</link>
      <description>&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working on ABC inventory anaylsis based on the actualized ship and future forecast. &lt;STRONG&gt;To give the team availability to check data based on different time range from the current week, i want to append ship and forecast table accordingly based on the N of "weeks before" and "week after" selection.&lt;/STRONG&gt; See below example&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Assumption: we are now in the week 2024026 highlighted in red as below&lt;/P&gt;&lt;P&gt;Shipment table: Based on the slicer i have, I want to pull 5 weeks before data based on the current week ( highlighted in green)&lt;/P&gt;&lt;P&gt;Forecast table:&amp;nbsp; Based on the slicer i have, I want to pull 6 weeks after data based on the current week( highlighted in green)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I can use 'union function' dax to append those two tables together to do my ABC anaylsis.&amp;nbsp; My question is&lt;STRONG&gt; how I can create the virtual tables based on the slicer i have&lt;/STRONG&gt; for both shipment table and forecast table and append them together.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Thanks folks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 20:34:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-summarize-the-table-based-on-the-dynamic-slicer-of-N-of/m-p/4009789#M157729</guid>
      <dc:creator>naoyixue1</dc:creator>
      <dc:date>2024-06-25T20:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to summarize the table based on the dynamic slicer of N of week before and N of week after</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-summarize-the-table-based-on-the-dynamic-slicer-of-N-of/m-p/4010268#M157795</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="259789" data-lia-user-login="naoyixue1" class="lia-mention lia-mention-user"&gt;naoyixue1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;The Table data is shown below:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Please follow these steps:&lt;/P&gt;
&lt;P&gt;1.Use the following DAX expression to create a column in table 'Shipment Table'&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column = ABS([Week Before])&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2.Adding fields to the slicer&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;3.Use the following DAX expression to create a table&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table = DISTINCT(UNION(VALUES('Forecast Table'[Week ]),VALUES('Shipment Table'[Week])))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;4.Use the following DAX expression to create measures&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;_Value = 
VAR _slicerForWeekAfter = SELECTEDVALUE('Forecast Table'[Week After])
VAR _slicerForWeekBefore = SELECTEDVALUE('Shipment Table'[Week Before])
VAR _shipmentTable = SELECTCOLUMNS(FILTER(ALL('Shipment Table'),'Shipment Table'[Week Before] &amp;lt; 0 &amp;amp;&amp;amp; 'Shipment Table'[Week Before] &amp;gt;= _slicerForWeekBefore),
"Week",[Week],"Value",[Value],"Week Filter",[Week Before])
VAR _ForecastTable = SELECTCOLUMNS(FILTER(ALL('Forecast Table'),'Forecast Table'[Week After] &amp;gt;= 0  &amp;amp;&amp;amp; 'Forecast Table'[Week After] &amp;lt;= _slicerForWeekAfter),
"Week",[Week ],"Value",[Value],"Week Filter",[Week After])
VAR _table = UNION(_shipmentTable,_ForecastTable)
VAR _week = SELECTEDVALUE('Table'[Week ])

RETURN MAXX(FILTER(_table,[Week] = _week),[Value])&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;_WeekFilter = 
VAR _slicerForWeekAfter = SELECTEDVALUE('Forecast Table'[Week After])
VAR _slicerForWeekBefore = SELECTEDVALUE('Shipment Table'[Week Before])
VAR _shipmentTable = SELECTCOLUMNS(FILTER(ALL('Shipment Table'),'Shipment Table'[Week Before] &amp;lt; 0 &amp;amp;&amp;amp; 'Shipment Table'[Week Before] &amp;gt;= _slicerForWeekBefore),
"Week",[Week],"Value",[Value],"Week Filter",[Week Before])
VAR _ForecastTable = SELECTCOLUMNS(FILTER(ALL('Forecast Table'),'Forecast Table'[Week After] &amp;gt;= 0  &amp;amp;&amp;amp; 'Forecast Table'[Week After] &amp;lt;= _slicerForWeekAfter),
"Week",[Week ],"Value",[Value],"Week Filter",[Week After])
VAR _table = UNION(_shipmentTable,_ForecastTable)
VAR _week = SELECTEDVALUE('Table'[Week ])

RETURN MAXX(FILTER(_table,[Week] = _week),[Week Filter])&lt;/LI-CODE&gt;
&lt;P&gt;5.Final output&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Wenbin Zhou&lt;BR /&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2024 03:40:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-summarize-the-table-based-on-the-dynamic-slicer-of-N-of/m-p/4010268#M157795</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-26T03:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to summarize the table based on the dynamic slicer of N of week before and N of week after</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-summarize-the-table-based-on-the-dynamic-slicer-of-N-of/m-p/4011738#M157951</link>
      <description>&lt;P&gt;Thanks Wenbin. Let me try and keep you posted. But again, really appreciate that.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2024 16:53:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-summarize-the-table-based-on-the-dynamic-slicer-of-N-of/m-p/4011738#M157951</guid>
      <dc:creator>naoyixue1</dc:creator>
      <dc:date>2024-06-26T16:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to summarize the table based on the dynamic slicer of N of week before and N of week after</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-summarize-the-table-based-on-the-dynamic-slicer-of-N-of/m-p/4012111#M157976</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;Hey Wenbin, I found the real problem is a little bit complicated than what i described above. In the real world,i want to show both item and week in the final table. Is that ok for me to use 'UNION' dax to combine those two tables, instead of the Week columns of those two tables. (see below) But after I tried, the table is there.&amp;nbsp;&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;Also I forgot to mention we might have both forecast and ship in the same week at the same item. Given that, I want to make the comparison between ship and forecast at item level to pick the bigger one. How should I implement that kind of thoughts before I append two separate table together? (see below, we are now in the week 26, so week is 2024026)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Ship Table&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;STRONG&gt;Fcst Table&lt;/STRONG&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;Again, really appreciate your efforts!&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2024 23:45:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-summarize-the-table-based-on-the-dynamic-slicer-of-N-of/m-p/4012111#M157976</guid>
      <dc:creator>naoyixue1</dc:creator>
      <dc:date>2024-06-26T23:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to summarize the table based on the dynamic slicer of N of week before and N of week after</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-summarize-the-table-based-on-the-dynamic-slicer-of-N-of/m-p/4013195#M158058</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="259789" data-lia-user-login="naoyixue1" class="lia-mention lia-mention-user"&gt;naoyixue1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;The order of the columns in the two tables is inconsistent, and using the 'UNION' function will result in data errors.&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;The Table data is shown below:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Please follow these steps:&lt;/P&gt;
&lt;P&gt;1.Use the following DAX expression to create a column in table 'Forecast Table'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column = 
VAR _valueFromShipmentTable = LOOKUPVALUE('Shipment Table'[Value],'Shipment Table'[Item],[Item],'Shipment Table'[Week],[Week])
RETURN MAX([Value],_valueFromShipmentTable)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2.Use the following DAX expression to create a table&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table = 
VAR _ShipmentTable = SELECTCOLUMNS('Shipment Table',"Item",[Item],"Week",[Week])
VAR _ForecastTable = SELECTCOLUMNS('Forecast Table',"Item",[Item],"Week",[Week])
RETURN DISTINCT(UNION(_ShipmentTable,_ForecastTable))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3.Use the following DAX expression to create measures&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;_Value = 
VAR _slicerForWeekAfter = SELECTEDVALUE('Forecast Table'[Week After])
VAR _slicerForWeekBefore = SELECTEDVALUE('Shipment Table'[Week Before])
VAR _shipmentTable = SELECTCOLUMNS(FILTER(ALL('Shipment Table'),'Shipment Table'[Week Before] &amp;lt;= 0 &amp;amp;&amp;amp; 'Shipment Table'[Week Before] &amp;gt;= _slicerForWeekBefore),
"Week",[Week],"Value",[Value],"Week Filter",[Week Before],"Item",[Item])
VAR _ForecastTable = SELECTCOLUMNS(FILTER(ALL('Forecast Table'),'Forecast Table'[Week After] &amp;gt;= 0  &amp;amp;&amp;amp; 'Forecast Table'[Week After] &amp;lt;= _slicerForWeekAfter),
"Week",[Week],"Value",[Column],"Week Filter",[Week After],"Item",[Item])
VAR _table = UNION(_shipmentTable,_ForecastTable)
VAR _week = SELECTEDVALUE('Table'[Week])
VAR _Item = SELECTEDVALUE('Table'[Item])
RETURN MAXX(FILTER(_table,[Week] = _week &amp;amp;&amp;amp; [Item] = _Item),[Value])&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;_WeekFilter = 
VAR _slicerForWeekAfter = SELECTEDVALUE('Forecast Table'[Week After])
VAR _slicerForWeekBefore = SELECTEDVALUE('Shipment Table'[Week Before])
VAR _shipmentTable = SELECTCOLUMNS(FILTER(ALL('Shipment Table'),'Shipment Table'[Week Before] &amp;lt;= 0 &amp;amp;&amp;amp; 'Shipment Table'[Week Before] &amp;gt;= _slicerForWeekBefore),
"Week",[Week],"Value",[Value],"Week Filter",[Week Before],"Item",[Item])
VAR _ForecastTable = SELECTCOLUMNS(FILTER(ALL('Forecast Table'),'Forecast Table'[Week After] &amp;gt;= 0  &amp;amp;&amp;amp; 'Forecast Table'[Week After] &amp;lt;= _slicerForWeekAfter),
"Week",[Week],"Value",[Column],"Week Filter",[Week After],"Item",[Item])
VAR _table = UNION(_shipmentTable,_ForecastTable)
VAR _week = SELECTEDVALUE('Table'[Week])
VAR _Item = SELECTEDVALUE('Table'[Item])
RETURN MAXX(FILTER(_table,[Week] = _week &amp;amp;&amp;amp; [Item] = _Item),[Week Filter])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;4.Final output&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Wenbin Zhou&lt;BR /&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2024 10:07:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-summarize-the-table-based-on-the-dynamic-slicer-of-N-of/m-p/4013195#M158058</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-27T10:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to summarize the table based on the dynamic slicer of N of week before and N of week after</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-summarize-the-table-based-on-the-dynamic-slicer-of-N-of/m-p/4013984#M158105</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;Really appreciate your help. But I still ran into two issues or questions.&lt;/P&gt;&lt;P&gt;1: Try to understand the purpose of the max funtion at the bottom for both value and week filter calculation, which is the last step of each measure. Can you explain more about that?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;2:&amp;nbsp; It reports an error of week filter measure&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;But the value of all week difference i'm using is the integer. (see below), So I don't know what happened.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Shipment Table - Week After&lt;/STRONG&gt; (to make it easy when mereging two table(shipment and forecast), i put the same column name as 'Week after', althought it technically should be 'Week before' in this table 'Week before' , comparing with current week.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Forecast Table - Week After&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reference table&amp;nbsp; Forward Looking table Forwardlooking week Column Selection.&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;STRONG&gt;Reference table&amp;nbsp; Backward Looking table Backwardlooking week Column Selection.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Again, thank you so much, WenBin!&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2024 17:43:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-summarize-the-table-based-on-the-dynamic-slicer-of-N-of/m-p/4013984#M158105</guid>
      <dc:creator>naoyixue1</dc:creator>
      <dc:date>2024-06-27T17:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to summarize the table based on the dynamic slicer of N of week before and N of week after</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-summarize-the-table-based-on-the-dynamic-slicer-of-N-of/m-p/4015312#M158216</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="259789" data-lia-user-login="naoyixue1" class="lia-mention lia-mention-user"&gt;naoyixue1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;First of all, let's make it clear that your requirement is to dynamically generate table data based on the selection in the slicer.Only measures are dynamically calculated based on slicer selections. Calculated columns and calculated tables are not.&lt;/P&gt;
&lt;P&gt;This part is to use variables to store virtual tables in measure.(You can think of it as a calculation table that will dynamically change the value based on the slicer)&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;This step is to create filter conditions for the measure.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Since there is no relationship between the table we created and the source table, 'Item' and 'Week' have no filtering effect on the measure .So we use the 'Selectvalue' function to get the values ​​of 'Item' and 'Week' in each row, and use 'Filter' to filter.Finally use the 'MAXX' table function to get the filtered value&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Second question.&lt;/P&gt;
&lt;P&gt;Check if the data type is 'Text'&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If the problem persists, can you share the .pbix file without sensitive data?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Wenbin Zhou&lt;BR /&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 09:47:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-summarize-the-table-based-on-the-dynamic-slicer-of-N-of/m-p/4015312#M158216</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-28T09:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to summarize the table based on the dynamic slicer of N of week before and N of week after</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-summarize-the-table-based-on-the-dynamic-slicer-of-N-of/m-p/4016081#M158298</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;I think i understand the steps you described above, but i still have the same issue as before. See pbix.file as attached.&amp;nbsp;&lt;A title="Draft of ABC analysis" href="https://1drv.ms/u/s!AobyozIQwx-9k5wd_S6qCOV1msvnAA?e=5XyPSD" target="_self"&gt;https://1drv.ms/u/s!AobyozIQwx-9k5wd_S6qCOV1msvnAA?e=5XyPSD&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot in advance!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 17:01:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-summarize-the-table-based-on-the-dynamic-slicer-of-N-of/m-p/4016081#M158298</guid>
      <dc:creator>naoyixue1</dc:creator>
      <dc:date>2024-06-28T17:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to summarize the table based on the dynamic slicer of N of week before and N of week after</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-summarize-the-table-based-on-the-dynamic-slicer-of-N-of/m-p/4017848#M158441</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="259789" data-lia-user-login="naoyixue1" class="lia-mention lia-mention-user"&gt;naoyixue1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;The problem should come from here.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;I modified the dax expression slightly, please refer to the .PBIX file for details.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Wenbin Zhou&lt;BR /&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2024 06:11:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-summarize-the-table-based-on-the-dynamic-slicer-of-N-of/m-p/4017848#M158441</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-01T06:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to summarize the table based on the dynamic slicer of N of week before and N of week after</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-summarize-the-table-based-on-the-dynamic-slicer-of-N-of/m-p/4018998#M158525</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;It works correctly. Thanks Wen Bin!&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2024 17:18:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-summarize-the-table-based-on-the-dynamic-slicer-of-N-of/m-p/4018998#M158525</guid>
      <dc:creator>naoyixue1</dc:creator>
      <dc:date>2024-07-01T17:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to summarize the table based on the dynamic slicer of N of week before and N of week after</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-summarize-the-table-based-on-the-dynamic-slicer-of-N-of/m-p/4019020#M158528</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;Sorry, I have a follow up question about this table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems I have to add the week from maintable there in the metrics, then I can see the value. If I move the week there, then nothing will show up. (see below)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;With Week from Main table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;img /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Without Week from Main table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Since I want to identify ABC ranking based on the cumulative units only at item level, is there any way for me to see only Item and related units based on the selected weeks before and weeks after. So I then can add the measure to calculate cumulative units to finally assign A,B,and C ranking based on that dynamic table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again, thank you so much, WenBin!&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2024 17:36:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-summarize-the-table-based-on-the-dynamic-slicer-of-N-of/m-p/4019020#M158528</guid>
      <dc:creator>naoyixue1</dc:creator>
      <dc:date>2024-07-01T17:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to summarize the table based on the dynamic slicer of N of week before and N of week after</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-summarize-the-table-based-on-the-dynamic-slicer-of-N-of/m-p/4019303#M158555</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="259789" data-lia-user-login="naoyixue1" class="lia-mention lia-mention-user"&gt;naoyixue1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Regarding your question, since column 'Item' and column 'Week' have a filtering effect in the DAX expression, they both must be present to filter the data effectively.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2024 00:51:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-summarize-the-table-based-on-the-dynamic-slicer-of-N-of/m-p/4019303#M158555</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-02T00:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to summarize the table based on the dynamic slicer of N of week before and N of week after</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-summarize-the-table-based-on-the-dynamic-slicer-of-N-of/m-p/4021063#M158642</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;Is there any way for me to create a virtual table to only pull the item and value based on the selected week? Or do you have any suggestion.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2024 17:22:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-summarize-the-table-based-on-the-dynamic-slicer-of-N-of/m-p/4021063#M158642</guid>
      <dc:creator>naoyixue1</dc:creator>
      <dc:date>2024-07-02T17:22:19Z</dc:date>
    </item>
  </channel>
</rss>

