<?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: Calculate sales target per month combination of 2 different stores in 1 in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-sales-target-per-month-combination-of-2-different/m-p/2507291#M69449</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;I have checked your code, and I think you seems to calculate the TotalYTD based on some calculation logic.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is "&lt;SPAN&gt;FilialenTabel&lt;/SPAN&gt;" the table your provided above? Is&amp;nbsp;&lt;SPAN&gt;[Fil.code] = [Store] as above? I am confused about why you will use value in 2020/1/2/3/4 in your code.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Could you share a sample file with us and show us a screenshot with the result you want? This will make me easier to find the solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&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, 11 May 2022 09:45:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-05-11T09:45:13Z</dc:date>
    <item>
      <title>Calculate sales target per month combination of 2 different stores in 1</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-sales-target-per-month-combination-of-2-different/m-p/2496438#M68895</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope you can help out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to generate sales targets for our newly opened store last year August.&lt;/P&gt;&lt;P&gt;The sales target for this store needs to be a combination of the sales from another store for the months 1-7 of 2021 and sales from the new store month 8-12 of 2021.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have data like in the below table. What I would like to have in a list is Sales target for store 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;date&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;store&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;sales&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;jan-21&lt;/TD&gt;&lt;TD&gt;store1&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;655000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;feb-21&lt;/TD&gt;&lt;TD&gt;store1&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;145000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;mrt-21&lt;/TD&gt;&lt;TD&gt;store1&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;255222&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;apr-21&lt;/TD&gt;&lt;TD&gt;store1&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;365653&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;mei-21&lt;/TD&gt;&lt;TD&gt;store1&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;756241&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;jun-21&lt;/TD&gt;&lt;TD&gt;store1&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;655000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;jul-21&lt;/TD&gt;&lt;TD&gt;store1&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;145000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;aug-21&lt;/TD&gt;&lt;TD&gt;store2&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;255222&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;sep-21&lt;/TD&gt;&lt;TD&gt;store2&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;365653&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;okt-21&lt;/TD&gt;&lt;TD&gt;store2&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;756241&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;nov-21&lt;/TD&gt;&lt;TD&gt;store2&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;255222&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;dec-21&lt;/TD&gt;&lt;TD&gt;store2&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;365653&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been trying to use below DAX code, but with the contains function, all stores get filtered out except store 2.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Order omzet YTD = TOTALYTD([Order omzet totaal],Kalender[Datum])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;IF(&lt;/P&gt;&lt;P&gt;CONTAINS(FilialenTabel,FilialenTabel[Fil.code],"store2"),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CALCULATE([Order omzet YTD], Kalender[Maand] IN { 1,2,3,4 },Kalender[Jaar] IN { 2020 }, FilialenTabel[Fil.code]="store1") +(&lt;/P&gt;&lt;P&gt;CALCULATE(&lt;/P&gt;&lt;P&gt;[Order omzet YTD],&lt;/P&gt;&lt;P&gt;Kalender[Maand] IN { 5,6,7 },Kalender[Jaar] IN { 2021 }, FilialenTabel[Fil.code] ="store1")*1.10)&lt;/P&gt;&lt;P&gt;+(&lt;/P&gt;&lt;P&gt;CALCULATE(&lt;/P&gt;&lt;P&gt;[Order omzet YTD],&lt;/P&gt;&lt;P&gt;Kalender[Maand] IN { 8,9,10,11,12 },Kalender[Jaar] IN { 2021 }, FilialenTabel[Fil.code] ="store2")*1.10)&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;CALCULATE([Order omzet YTD], Kalender[Maand] IN { 1,2,3,4 },Kalender[Jaar] IN { 2020 })+(&lt;/P&gt;&lt;P&gt;CALCULATE(&lt;/P&gt;&lt;P&gt;[Order omzet YTD],&lt;/P&gt;&lt;P&gt;Kalender[Maand] IN { 5,6,7,8,9,10,11,12 },Kalender[Jaar] IN { 2021 })*1.10)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope someone can help. Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 15:27:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-sales-target-per-month-combination-of-2-different/m-p/2496438#M68895</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-05T15:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate sales target per month combination of 2 different stores in 1</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-sales-target-per-month-combination-of-2-different/m-p/2496499#M68900</link>
      <description>&lt;P&gt;You could try creating a new table using&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Target store 2 = UNION(
CALCULATETABLE( 'Table', 'Table'[store] = "store 1", DATESBETWEEN('Date'[Date], DATE(2021,1,1), DATE(2021,7,31))),
CALCULATETABLE( 'Table', 'Table'[store] = "store 2", DATESBETWEEN('Date'[Date], DATE(2021,8,1), DATE(2021,12,31)))
)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 05 May 2022 15:53:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-sales-target-per-month-combination-of-2-different/m-p/2496499#M68900</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-05-05T15:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate sales target per month combination of 2 different stores in 1</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-sales-target-per-month-combination-of-2-different/m-p/2507291#M69449</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;I have checked your code, and I think you seems to calculate the TotalYTD based on some calculation logic.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is "&lt;SPAN&gt;FilialenTabel&lt;/SPAN&gt;" the table your provided above? Is&amp;nbsp;&lt;SPAN&gt;[Fil.code] = [Store] as above? I am confused about why you will use value in 2020/1/2/3/4 in your code.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Could you share a sample file with us and show us a screenshot with the result you want? This will make me easier to find the solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&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, 11 May 2022 09:45:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-sales-target-per-month-combination-of-2-different/m-p/2507291#M69449</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-11T09:45:13Z</dc:date>
    </item>
  </channel>
</rss>

