<?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: Incorporating additional methods in PARTITION/ORDER in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorporating-additional-methods-in-PARTITION-ORDER/m-p/3996480#M155305</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="24978" data-lia-user-login="smpa01" class="lia-mention lia-mention-user"&gt;smpa01&lt;/a&gt;&amp;nbsp;see if this works:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;VAR Temp = 
    ADDCOLUMNS ( 
        ALL ( 'Table'[Amount], 'Table'[Index] ),
        "@Rounded Amount", ROUNDDOWN ( 'Table'[Amount], 2 )
    )
VAR CurrentAmountRounded = 
    ROUNDDOWN ( 'Table'[Amount], 2 ) 
VAR CurrentIndex = 
    'Table'[Index]
VAR FilterTable = 
    FILTER ( 
        Temp,
        [@Rounded Amount] = CurrentAmountRounded
           &amp;amp;&amp;amp; 'Table'[Index] &amp;lt;= CurrentIndex
    )
RETURN 
   COUNTROWS ( FilterTable )&lt;/LI-CODE&gt;&lt;P&gt;I tried to enter some data not sure if this is what you want because this column doesn't make sense to me,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Jun 2024 15:33:28 GMT</pubDate>
    <dc:creator>AntrikshSharma</dc:creator>
    <dc:date>2024-06-17T15:33:28Z</dc:date>
    <item>
      <title>Incorporating additional methods in PARTITION/ORDER</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorporating-additional-methods-in-PARTITION-ORDER/m-p/3996321#M155278</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="39298" data-lia-user-login="AlexisOlson" class="lia-mention lia-mention-user"&gt;AlexisOlson&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="236628" data-lia-user-login="AntrikshSharma" class="lia-mention lia-mention-user"&gt;AntrikshSharma&lt;/a&gt;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="503" data-lia-user-login="jeffrey_wang" class="lia-mention lia-mention-user"&gt;jeffrey_wang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;TLDR:&lt;/STRONG&gt; How can I incorporate additional calculation in PARTITION/ORDER without creating any calculated column?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;is SQL I can do this, where I account for additional calculation for partitioning in the window function itself.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;How can I replicate this in dax without needing me to create any additional columns at all. i am reluctant ro create additional coulmns cause they have no utility other than serving correct value for PARTITION&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Thank you in advance&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 14:20:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorporating-additional-methods-in-PARTITION-ORDER/m-p/3996321#M155278</guid>
      <dc:creator>smpa01</dc:creator>
      <dc:date>2024-06-17T14:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Incorporating additional methods in PARTITION/ORDER</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorporating-additional-methods-in-PARTITION-ORDER/m-p/3996399#M155297</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="24978" data-lia-user-login="smpa01" class="lia-mention lia-mention-user"&gt;smpa01&lt;/a&gt;&amp;nbsp;PARTITIONBY doesn't support virtual columns yet, so you can round the Amount column in PQ itself you don't need to store 4 decimal places for this value unless it is a different field in the actual data.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 15:04:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorporating-additional-methods-in-PARTITION-ORDER/m-p/3996399#M155297</guid>
      <dc:creator>AntrikshSharma</dc:creator>
      <dc:date>2024-06-17T15:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: Incorporating additional methods in PARTITION/ORDER</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorporating-additional-methods-in-PARTITION-ORDER/m-p/3996412#M155298</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="236628" data-lia-user-login="AntrikshSharma" class="lia-mention lia-mention-user"&gt;AntrikshSharma&lt;/a&gt;&amp;nbsp; I can't do that, additional methods on original column would have undesired effect elsewhere, therefore the original value needs to be preserved regardless.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="503" data-lia-user-login="jeffrey_wang" class="lia-mention lia-mention-user"&gt;jeffrey_wang&lt;/a&gt; any chance of incorporating this in future? The following works but it so much more easier to work with same SQL convention in DAX&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;</description>
      <pubDate>Mon, 17 Jun 2024 15:13:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorporating-additional-methods-in-PARTITION-ORDER/m-p/3996412#M155298</guid>
      <dc:creator>smpa01</dc:creator>
      <dc:date>2024-06-17T15:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: Incorporating additional methods in PARTITION/ORDER</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorporating-additional-methods-in-PARTITION-ORDER/m-p/3996480#M155305</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="24978" data-lia-user-login="smpa01" class="lia-mention lia-mention-user"&gt;smpa01&lt;/a&gt;&amp;nbsp;see if this works:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;VAR Temp = 
    ADDCOLUMNS ( 
        ALL ( 'Table'[Amount], 'Table'[Index] ),
        "@Rounded Amount", ROUNDDOWN ( 'Table'[Amount], 2 )
    )
VAR CurrentAmountRounded = 
    ROUNDDOWN ( 'Table'[Amount], 2 ) 
VAR CurrentIndex = 
    'Table'[Index]
VAR FilterTable = 
    FILTER ( 
        Temp,
        [@Rounded Amount] = CurrentAmountRounded
           &amp;amp;&amp;amp; 'Table'[Index] &amp;lt;= CurrentIndex
    )
RETURN 
   COUNTROWS ( FilterTable )&lt;/LI-CODE&gt;&lt;P&gt;I tried to enter some data not sure if this is what you want because this column doesn't make sense to me,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 15:33:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorporating-additional-methods-in-PARTITION-ORDER/m-p/3996480#M155305</guid>
      <dc:creator>AntrikshSharma</dc:creator>
      <dc:date>2024-06-17T15:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: Incorporating additional methods in PARTITION/ORDER</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorporating-additional-methods-in-PARTITION-ORDER/m-p/3996928#M155387</link>
      <description>&lt;P&gt;This is how I'd like to write it, but &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;Function PARTITIONBY cannot be used with columns added by DAX table functions&lt;/FONT&gt;&lt;/STRONG&gt;.&lt;/P&gt;
&lt;LI-CODE lang="php"&gt;ROWNUMBER (
    SELECTCOLUMNS ( t3, t3[Index], "@Round", ROUND ( t3[Amount], 2 ) ),
    ORDERBY ( t3[Index], ASC ),
    PARTITIONBY ( [@Round] )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The alternative is to partition manually.&lt;/P&gt;
&lt;LI-CODE lang="php"&gt;VAR RoundedAmount = ROUND ( t3[Amount], 2 )
VAR Partition =
    FILTER ( 
        SELECTCOLUMNS ( t3, t3[Index], t3[Amount] ),
        ROUND ( t3[Amount], 2 ) = RoundedAmount
    )
RETURN
    ROWNUMBER ( Partition, ORDERBY ( t3[Index] ) )&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 17 Jun 2024 22:15:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorporating-additional-methods-in-PARTITION-ORDER/m-p/3996928#M155387</guid>
      <dc:creator>AlexisOlson</dc:creator>
      <dc:date>2024-06-17T22:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: Incorporating additional methods in PARTITION/ORDER</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorporating-additional-methods-in-PARTITION-ORDER/m-p/3997014#M155400</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="39298" data-lia-user-login="AlexisOlson" class="lia-mention lia-mention-user"&gt;AlexisOlson&lt;/a&gt; many thanks for this. I did not know about ROWNUMBER at all.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 00:10:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Incorporating-additional-methods-in-PARTITION-ORDER/m-p/3997014#M155400</guid>
      <dc:creator>smpa01</dc:creator>
      <dc:date>2024-06-18T00:10:18Z</dc:date>
    </item>
  </channel>
</rss>

