<?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: Refer to multiple column values in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Refer-to-multiple-column-values/m-p/3690662#M143411</link>
    <description>&lt;P&gt;Perfect, works like a charm &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Feb 2024 11:15:53 GMT</pubDate>
    <dc:creator>Phellipe</dc:creator>
    <dc:date>2024-02-09T11:15:53Z</dc:date>
    <item>
      <title>Refer to multiple column values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Refer-to-multiple-column-values/m-p/3680057#M142895</link>
      <description>&lt;P&gt;Hi, looking for some advice&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;i got this table and i need to add adittional column which will balance negative numbers - currently on line for SQL SRV 2018 Ent Core 2017 there is "-186" and new output should be 0 and row for SQL SRV 2022 Ent Core should be by 186 less (760-186)&lt;/P&gt;&lt;P&gt;- similary for Standard - 2019 would be 0 and 2022 version would be less by 324 (460-324)&lt;/P&gt;&lt;P&gt;basicaly apply downgrading licensing option&amp;nbsp;&lt;/P&gt;&lt;P&gt;any ideas please?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2024 10:58:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Refer-to-multiple-column-values/m-p/3680057#M142895</guid>
      <dc:creator>Phellipe</dc:creator>
      <dc:date>2024-02-05T10:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Refer to multiple column values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Refer-to-multiple-column-values/m-p/3680963#M142947</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="685524" data-lia-user-login="Phellipe" class="lia-mention lia-mention-user"&gt;Phellipe&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There must be some order(A column that makes sure that records are ordered correctly before performing calculation) to achieve this.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2024 17:57:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Refer-to-multiple-column-values/m-p/3680963#M142947</guid>
      <dc:creator>talespin</dc:creator>
      <dc:date>2024-02-05T17:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: Refer to multiple column values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Refer-to-multiple-column-values/m-p/3685257#M143146</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="685524" data-lia-user-login="Phellipe" class="lia-mention lia-mention-user"&gt;Phellipe&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For your question, here is the method I provided:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's some dummy data&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"Table"&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First, add the index column in “Transform data”&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&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;Click Close &amp;amp; Apply.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a measure.&amp;nbsp;Add extra columns to balance negative numbers - currently SQL SRV 2018 Ent Core 2017's rows have "-186", the new output should be 0, SQL SRV 2022 Ent Core's rows should be 186 less (760-186).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;New_Delta = 
    var _delta = IF(
        SELECTEDVALUE('Table'[Delta]) &amp;lt;&amp;gt; SELECTEDVALUE('Table'[Entitlements]), 
        VALUES('Table'[Delta]), 
        CALCULATE(
            ABS(MIN('Table'[Delta])), 
            FILTER(
                ALL('Table'), 
                'Table'[Index] = MAX('Table'[Index]) -1
            )
        )
    )
RETURN 
    IF(
        SELECTEDVALUE('Table'[Delta]) &amp;gt; 0 
        &amp;amp;&amp;amp; 
        SELECTEDVALUE('Table'[Delta]) &amp;lt;&amp;gt; SELECTEDVALUE('Table'[Entitlements]), 
        VALUES('Table'[Delta]), 
        SELECTEDVALUE('Table'[Delta]) - _delta
    )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the result.&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;Regards,&lt;/P&gt;
&lt;P&gt;Nono Chen&lt;/P&gt;
&lt;P&gt;If this &lt;STRONG&gt;&lt;EM&gt;post&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;helps, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2024 09:13:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Refer-to-multiple-column-values/m-p/3685257#M143146</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-07T09:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: Refer to multiple column values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Refer-to-multiple-column-values/m-p/3690662#M143411</link>
      <description>&lt;P&gt;Perfect, works like a charm &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2024 11:15:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Refer-to-multiple-column-values/m-p/3690662#M143411</guid>
      <dc:creator>Phellipe</dc:creator>
      <dc:date>2024-02-09T11:15:53Z</dc:date>
    </item>
  </channel>
</rss>

