<?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: Problem Power BI : merge period in table... in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-Power-BI-merge-period-in-table/m-p/2989035#M100497</link>
    <description>&lt;P&gt;Hello&amp;nbsp;v-tangjie-msft,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank's a lot for your answer.&lt;/P&gt;&lt;P&gt;very NICE !!!!&lt;/P&gt;&lt;P&gt;have a great holiday season &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sebastien&lt;/P&gt;</description>
    <pubDate>Mon, 26 Dec 2022 16:35:53 GMT</pubDate>
    <dc:creator>sebsenciel</dc:creator>
    <dc:date>2022-12-26T16:35:53Z</dc:date>
    <item>
      <title>Problem Power BI : merge period in table...</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-Power-BI-merge-period-in-table/m-p/2942671#M97248</link>
      <description>&lt;P&gt;Hello to all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't do the following under powerbi &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;Can you help me please ?&lt;BR /&gt;I will try to detail my problem as clear as possible &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;My data model is simple: I have only one table, namely the PROJECT table (see attached diagram)&lt;/P&gt;&lt;P&gt;this table has two columns :&lt;BR /&gt;- date column&lt;BR /&gt;- project tasks column (values T1 and T2)&lt;/P&gt;&lt;P&gt;Each task is associated with a date.&lt;/P&gt;&lt;P&gt;Ok.&lt;/P&gt;&lt;P&gt;This project was carried out over a period of time between a min and max date&lt;BR /&gt;The min date of the project : in green&lt;BR /&gt;the max date of the project in red&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Target : for each task, I would like to associate the period of the corresponding project, indicating for each date of the period if there was an associated task (yes ==&amp;gt; 1, no ==&amp;gt; 0).&lt;BR /&gt;See target on the right !&lt;/P&gt;&lt;P&gt;I tried to merge with a calendar table, but I couldn't do it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;BR /&gt;Sébastien&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 18:31:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-Power-BI-merge-period-in-table/m-p/2942671#M97248</guid>
      <dc:creator>sebsenciel</dc:creator>
      <dc:date>2022-12-01T18:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem Power BI : merge period in table...</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-Power-BI-merge-period-in-table/m-p/2943238#M97290</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="480457" data-lia-user-login="sebsenciel" class="lia-mention lia-mention-user"&gt;sebsenciel&lt;/a&gt; , Try a measure like below with date table &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;calculate(Sumx(filter(Date, Date[Date] &amp;gt;= Minx(filter(allselected(Table), Table[Tache] = max(Table[Tache])), Table[Date]) &amp;amp;&amp;amp; Date[Date] &amp;lt;= Maxx(filter(allselected(Table), Table[Tache] = max(Table[Tache])), Table[Date])), if(Date[Date] = Max(Table[Tache]) ,1,0)))&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2022 02:23:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-Power-BI-merge-period-in-table/m-p/2943238#M97290</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-12-02T02:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem Power BI : merge period in table...</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-Power-BI-merge-period-in-table/m-p/2948117#M97613</link>
      <description>&lt;P&gt;Hi amitchandak,&lt;/P&gt;&lt;P&gt;thank you for your feedback&lt;BR /&gt;I will look at your answer and get back to you if I have any questions,&lt;BR /&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sébastien&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 10:30:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-Power-BI-merge-period-in-table/m-p/2948117#M97613</guid>
      <dc:creator>sebsenciel</dc:creator>
      <dc:date>2022-12-05T10:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problem Power BI : merge period in table...</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-Power-BI-merge-period-in-table/m-p/2970255#M99223</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="480457" data-lia-user-login="sebsenciel" class="lia-mention lia-mention-user"&gt;sebsenciel&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your description, here are my steps you can follow as a solution.&lt;/P&gt;
&lt;P&gt;(1) My test data is the same as yours.&lt;/P&gt;
&lt;P&gt;(2) We can create a table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt; Table = GENERATE(VALUES(Project[Tache]),VALUES(Calendrier[Calendrier Project])) &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(3) We can create a calculated column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column = var a=FILTER(Project,[Tache]=EARLIER('Table'[Tache])) var b=SUMMARIZE(a,[Date]) return IF([Calendrier Project] in b,1,0) &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(4) Then the result is as follows.&lt;/P&gt;
&lt;DIV id="tinyMceEditor_21d00b2ed56063vtangjiemsft_0" class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;
&lt;DIV class="" style="width: 100%;"&gt;&lt;img /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Neeko Tang&lt;/P&gt;
&lt;P&gt;If this post  &lt;STRONG&gt;helps, &lt;/STRONG&gt;then please consider&lt;STRONG&gt;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution  &lt;/EM&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;to help the other members find it more quickly.&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 15 Dec 2022 09:12:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-Power-BI-merge-period-in-table/m-p/2970255#M99223</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-15T09:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem Power BI : merge period in table...</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-Power-BI-merge-period-in-table/m-p/2989035#M100497</link>
      <description>&lt;P&gt;Hello&amp;nbsp;v-tangjie-msft,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank's a lot for your answer.&lt;/P&gt;&lt;P&gt;very NICE !!!!&lt;/P&gt;&lt;P&gt;have a great holiday season &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sebastien&lt;/P&gt;</description>
      <pubDate>Mon, 26 Dec 2022 16:35:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Problem-Power-BI-merge-period-in-table/m-p/2989035#M100497</guid>
      <dc:creator>sebsenciel</dc:creator>
      <dc:date>2022-12-26T16:35:53Z</dc:date>
    </item>
  </channel>
</rss>

