<?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: Create a new table with colmuns filtered by dates in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-new-table-with-colmuns-filtered-by-dates/m-p/2878644#M93085</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check if this can help&lt;/P&gt;
&lt;P&gt;&lt;A href="https://amitchandak.medium.com/power-bi-power-query-vs-dax-months-between-range-df019cec823b" target="_blank"&gt;https://amitchandak.medium.com/power-bi-power-query-vs-dax-months-between-range-df019cec823b&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Nov 2022 02:25:15 GMT</pubDate>
    <dc:creator>amitchandak</dc:creator>
    <dc:date>2022-11-02T02:25:15Z</dc:date>
    <item>
      <title>Create a new table with colmuns filtered by dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-new-table-with-colmuns-filtered-by-dates/m-p/2878136#M93064</link>
      <description>&lt;P&gt;Hellow everyone. I am working on a new table that is built from a database that includes this columns:&lt;/P&gt;&lt;P&gt;Clients, Accounts, Dates (from month 1 to month12) and Values&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I need to organice in a separate table per Clients and Accounts the values from moth 1, next the values from moth 2 andso on.&lt;/P&gt;&lt;P&gt;I tried with the next code but I find ount that the GENERATE function do not allow dates in the filters and I also cannot add the Accounts column next to the Clients column.&lt;/P&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Month1&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"Month_2"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;Month2&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&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;Thanks in advance!!!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 01 Nov 2022 19:44:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-new-table-with-colmuns-filtered-by-dates/m-p/2878136#M93064</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-01T19:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: Create a new table with colmuns filtered by dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-new-table-with-colmuns-filtered-by-dates/m-p/2878644#M93085</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check if this can help&lt;/P&gt;
&lt;P&gt;&lt;A href="https://amitchandak.medium.com/power-bi-power-query-vs-dax-months-between-range-df019cec823b" target="_blank"&gt;https://amitchandak.medium.com/power-bi-power-query-vs-dax-months-between-range-df019cec823b&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 02:25:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-new-table-with-colmuns-filtered-by-dates/m-p/2878644#M93085</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-11-02T02:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: Create a new table with colmuns filtered by dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-new-table-with-colmuns-filtered-by-dates/m-p/2883251#M93397</link>
      <description>&lt;P&gt;Sure! In the next picture I try to show the initial and desired table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 15:05:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-new-table-with-colmuns-filtered-by-dates/m-p/2883251#M93397</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-03T15:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Create a new table with colmuns filtered by dates</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-new-table-with-colmuns-filtered-by-dates/m-p/2888784#M93714</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;This is my test table:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please transform data in Power Query: Select Date and Value column - Pivot column.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Select OK:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will get a table like this, I think this is the expected table you want:&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;/P&gt;
&lt;P&gt;Yadong Fang&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 09:20:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-new-table-with-colmuns-filtered-by-dates/m-p/2888784#M93714</guid>
      <dc:creator>v-yadongf-msft</dc:creator>
      <dc:date>2022-11-07T09:20:54Z</dc:date>
    </item>
  </channel>
</rss>

