<?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 How to make table select new columns automatically in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/How-to-make-table-select-new-columns-automatically/m-p/2326086#M34290</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a report that each month will add a new column (pivoted data) with new figures, what i need is for the table the user sees to select automatically that new End of Month figures automatically.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;</description>
    <pubDate>Tue, 08 Feb 2022 16:58:58 GMT</pubDate>
    <dc:creator>danielcarreira1</dc:creator>
    <dc:date>2022-02-08T16:58:58Z</dc:date>
    <item>
      <title>How to make table select new columns automatically</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-make-table-select-new-columns-automatically/m-p/2326086#M34290</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a report that each month will add a new column (pivoted data) with new figures, what i need is for the table the user sees to select automatically that new End of Month figures automatically.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 16:58:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-make-table-select-new-columns-automatically/m-p/2326086#M34290</guid>
      <dc:creator>danielcarreira1</dc:creator>
      <dc:date>2022-02-08T16:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to make table select new columns automatically</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/How-to-make-table-select-new-columns-automatically/m-p/2332158#M34328</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="288471" data-lia-user-login="danielcarreira1" class="lia-mention lia-mention-user"&gt;danielcarreira1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your statement, I know your table should look like a&amp;nbsp;&lt;SPAN&gt;pivoted data. It has a Keycolumn like category and many month columns with data for each month. You will add a new column with current month data by refresh and you want to show the latest data in your visual. Power BI couldn't catch column header directly. Power BI always calculates by column. So I suggest you to use "Unpivot Other Columns" function by select your Keycolumn to transform month value into one column.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Here is my sample.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;New Table:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Create a measure, then create a Matrix visual, add this measure into visual level filter and set it to show items when value = 1.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
VAR _LatestMonth = MAXX(ALL(Sheet3),Sheet3[Month])
RETURN
if(MAX(Sheet3[Month])=_LatestMonth,1,0)&lt;/LI-CODE&gt;
&lt;P&gt;Result is as below.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;If you add a column in your data source, you can refresh data in Power BI Desktop, and matrix will show data in latest month.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 02:53:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/How-to-make-table-select-new-columns-automatically/m-p/2332158#M34328</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-02-11T02:53:00Z</dc:date>
    </item>
  </channel>
</rss>

