<?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: DAX function that fills a column with one of my current values and leaves the rest of rows blank in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-function-that-fills-a-column-with-one-of-my-current-values/m-p/3213195#M117247</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I assume your table contains one more column that indicates the difference between the same product, for instance, date column or index column.&lt;/P&gt;
&lt;P&gt;I tried to create a sample pbix file like below.&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&lt;/P&gt;
&lt;P&gt;It is for creating a new table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data table&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Expected result table&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Expected result table = 
SUMMARIZE (
    ADDCOLUMNS (
        ADDCOLUMNS (
            SUMMARIZE ( Data, Data[Index], Data[Product], Data[Price for the month] ),
            "@indexmin", MINX ( FILTER ( Data, Data[Product] = EARLIER ( Data[Product] ) ), Data[Index] )
        ),
        "@Price for the month", IF ( Data[Index] = [@indexmin], Data[Price for the month] )
    ),
    Data[Product],
    [@Price for the month]
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 01 May 2023 03:25:25 GMT</pubDate>
    <dc:creator>Jihwan_Kim</dc:creator>
    <dc:date>2023-05-01T03:25:25Z</dc:date>
    <item>
      <title>DAX function that fills a column with one of my current values and leaves the rest of rows blank</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-function-that-fills-a-column-with-one-of-my-current-values/m-p/3213008#M117237</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't even know how to explain my issue. I need a DAX function that will sort the Price for the month by product and leave all the other rows blank.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Current data&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Expected Result&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Product&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Price for the month&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Product&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Price for the month&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Iphone 13&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;300&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Iphone 13&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;300&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Iphone 13&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;300&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Iphone 13&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Iphone 14&lt;/TD&gt;&lt;TD&gt;1000&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Iphone 14&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;1000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Iphone 14&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;1000&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Iphone 14&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is anyone able to help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;KR,&lt;/P&gt;&lt;P&gt;B&lt;/P&gt;</description>
      <pubDate>Sun, 30 Apr 2023 23:10:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-function-that-fills-a-column-with-one-of-my-current-values/m-p/3213008#M117237</guid>
      <dc:creator>ase</dc:creator>
      <dc:date>2023-04-30T23:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: DAX function that fills a column with one of my current values and leaves the rest of rows blank</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-function-that-fills-a-column-with-one-of-my-current-values/m-p/3213195#M117247</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I assume your table contains one more column that indicates the difference between the same product, for instance, date column or index column.&lt;/P&gt;
&lt;P&gt;I tried to create a sample pbix file like below.&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&lt;/P&gt;
&lt;P&gt;It is for creating a new table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data table&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Expected result table&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Expected result table = 
SUMMARIZE (
    ADDCOLUMNS (
        ADDCOLUMNS (
            SUMMARIZE ( Data, Data[Index], Data[Product], Data[Price for the month] ),
            "@indexmin", MINX ( FILTER ( Data, Data[Product] = EARLIER ( Data[Product] ) ), Data[Index] )
        ),
        "@Price for the month", IF ( Data[Index] = [@indexmin], Data[Price for the month] )
    ),
    Data[Product],
    [@Price for the month]
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 May 2023 03:25:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-function-that-fills-a-column-with-one-of-my-current-values/m-p/3213195#M117247</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2023-05-01T03:25:25Z</dc:date>
    </item>
  </channel>
</rss>

