<?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: Column in datatable with dynamic function paramater in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-in-datatable-with-dynamic-function-paramater/m-p/3392064#M127889</link>
    <description>&lt;P&gt;Thanks for your explanation. That helps me better understanding.&lt;/P&gt;</description>
    <pubDate>Tue, 22 Aug 2023 09:10:00 GMT</pubDate>
    <dc:creator>Atiroocky</dc:creator>
    <dc:date>2023-08-22T09:10:00Z</dc:date>
    <item>
      <title>Column in datatable with dynamic function paramater</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-in-datatable-with-dynamic-function-paramater/m-p/3391811#M127868</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I managed to calculate a cumulative rolling day in a column of my table.&lt;/P&gt;&lt;P&gt;I use the function "DATESINPERIOD"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to replace the "static" number parameter by a dynamic parameter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know that datatable are kind of "static" and can’t be updated with a "what-if" paramater.&lt;BR /&gt;By the past I managed to generate a dynamic datable thanks to "SWITCH" function, but it was totally different needs and I can’t apply this "trick" to my actual need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated !&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 07:29:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-in-datatable-with-dynamic-function-paramater/m-p/3391811#M127868</guid>
      <dc:creator>Atiroocky</dc:creator>
      <dc:date>2023-08-22T07:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: Column in datatable with dynamic function paramater</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-in-datatable-with-dynamic-function-paramater/m-p/3391983#M127878</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="523122" data-lia-user-login="Atiroocky" class="lia-mention lia-mention-user"&gt;Atiroocky&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Calculated columns cannot be dynamic as they do not interact with the fiter conext of the report. This has to be a measure&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Count =
CALCULATE (
    SUM ( 'Table_DHU'[CityLocation] ),
    ALL ( 'Table_DHU' ),
    DATESINPERIOD (
        'Table_DHU'[Date],
        MAX ( 'Table_DHU'[Date] ),
        - [Parameter],
        DAY
    )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 22 Aug 2023 08:39:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-in-datatable-with-dynamic-function-paramater/m-p/3391983#M127878</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-08-22T08:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: Column in datatable with dynamic function paramater</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-in-datatable-with-dynamic-function-paramater/m-p/3392056#M127887</link>
      <description>&lt;P&gt;Thanks, that works perfectly !&lt;/P&gt;&lt;P&gt;As a "beginner" I’m not very comfortable playing with "Measures". A bit earlier before posting in this forum, I tried to put the column code in a measure, but I used Table_DHU[Date] as start date instead of "MAX(Table_DHU[Date])". I was returning me an error.&lt;BR /&gt;For me "MAX" was the last entry of all table data. But I was thinking as "table" data and no "measure" data. It is still a bit confused in my mind but time will help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again !&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 09:02:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-in-datatable-with-dynamic-function-paramater/m-p/3392056#M127887</guid>
      <dc:creator>Atiroocky</dc:creator>
      <dc:date>2023-08-22T09:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: Column in datatable with dynamic function paramater</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-in-datatable-with-dynamic-function-paramater/m-p/3392061#M127888</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="523122" data-lia-user-login="Atiroocky" class="lia-mention lia-mention-user"&gt;Atiroocky&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;MAX ( 'Table'[Column] ) when used in a calculated column returns the max value in this column becuase there is no filter context. However when used in a measure it will return the max value avialable in the current filter context. In other words, the value is different from one row to another.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 09:07:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-in-datatable-with-dynamic-function-paramater/m-p/3392061#M127888</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-08-22T09:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: Column in datatable with dynamic function paramater</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-in-datatable-with-dynamic-function-paramater/m-p/3392064#M127889</link>
      <description>&lt;P&gt;Thanks for your explanation. That helps me better understanding.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 09:10:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-in-datatable-with-dynamic-function-paramater/m-p/3392064#M127889</guid>
      <dc:creator>Atiroocky</dc:creator>
      <dc:date>2023-08-22T09:10:00Z</dc:date>
    </item>
  </channel>
</rss>

