<?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: Help with DAX code that groups by ACCT_ID and looks for Payment Type in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-DAX-code-that-groups-by-ACCT-ID-and-looks-for-Payment/m-p/3212638#M117209</link>
    <description>&lt;P&gt;Hi,&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 column.&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;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Result required CC =
VAR _conditionone =
    { "BPAY" }
        IN SUMMARIZE (
            FILTER ( Data, Data[Acc_ID] = EARLIER ( Data[Acc_ID] ) ),
            Data[Payment Type]
        )
VAR _conditiontwo =
    { "AustPost" }
        IN SUMMARIZE (
            FILTER ( Data, Data[Acc_ID] = EARLIER ( Data[Acc_ID] ) ),
            Data[Payment Type]
        )
VAR _conditionthree =
    ( _conditionone || _conditiontwo )
        &amp;amp;&amp;amp; COUNTROWS (
            FILTER (
                Data,
                Data[Acc_ID] = EARLIER ( Data[Acc_ID] )
                    &amp;amp;&amp;amp; Data[Payment Type] &amp;lt;&amp;gt; "BPAY"
                    &amp;amp;&amp;amp; Data[Payment Type] &amp;lt;&amp;gt; "AustPost"
            )
        ) = 0
RETURN
    DIVIDE ( _conditionthree, _conditionthree )
&lt;/LI-CODE&gt;</description>
    <pubDate>Sun, 30 Apr 2023 05:23:31 GMT</pubDate>
    <dc:creator>Jihwan_Kim</dc:creator>
    <dc:date>2023-04-30T05:23:31Z</dc:date>
    <item>
      <title>Help with DAX code that groups by ACCT_ID and looks for Payment Type</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-DAX-code-that-groups-by-ACCT-ID-and-looks-for-Payment/m-p/3212588#M117207</link>
      <description>&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need help with a DAX code that looks up a table groups the ACCT_ID and only indicates where payments on the account are either AUSTPOST or BPAY.&amp;nbsp; Insert below helps explain the output required.&amp;nbsp;&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>Sun, 30 Apr 2023 01:23:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-DAX-code-that-groups-by-ACCT-ID-and-looks-for-Payment/m-p/3212588#M117207</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-30T01:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Help with DAX code that groups by ACCT_ID and looks for Payment Type</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-DAX-code-that-groups-by-ACCT-ID-and-looks-for-Payment/m-p/3212638#M117209</link>
      <description>&lt;P&gt;Hi,&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 column.&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;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Result required CC =
VAR _conditionone =
    { "BPAY" }
        IN SUMMARIZE (
            FILTER ( Data, Data[Acc_ID] = EARLIER ( Data[Acc_ID] ) ),
            Data[Payment Type]
        )
VAR _conditiontwo =
    { "AustPost" }
        IN SUMMARIZE (
            FILTER ( Data, Data[Acc_ID] = EARLIER ( Data[Acc_ID] ) ),
            Data[Payment Type]
        )
VAR _conditionthree =
    ( _conditionone || _conditiontwo )
        &amp;amp;&amp;amp; COUNTROWS (
            FILTER (
                Data,
                Data[Acc_ID] = EARLIER ( Data[Acc_ID] )
                    &amp;amp;&amp;amp; Data[Payment Type] &amp;lt;&amp;gt; "BPAY"
                    &amp;amp;&amp;amp; Data[Payment Type] &amp;lt;&amp;gt; "AustPost"
            )
        ) = 0
RETURN
    DIVIDE ( _conditionthree, _conditionthree )
&lt;/LI-CODE&gt;</description>
      <pubDate>Sun, 30 Apr 2023 05:23:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-DAX-code-that-groups-by-ACCT-ID-and-looks-for-Payment/m-p/3212638#M117209</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2023-04-30T05:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help with DAX code that groups by ACCT_ID and looks for Payment Type</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-DAX-code-that-groups-by-ACCT-ID-and-looks-for-Payment/m-p/3212643#M117212</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="352530" data-lia-user-login="jwint" class="lia-mention lia-mention-user"&gt;jwint&lt;/a&gt;&amp;nbsp;Thank you I am receiving and issue with the code below. Are you able to help? It must have something do to with the relationship between the two tables. The TND_SOURCE_CODE is stored in a seperate table to ACCT_ID.&amp;nbsp;&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>Sun, 30 Apr 2023 05:43:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-DAX-code-that-groups-by-ACCT-ID-and-looks-for-Payment/m-p/3212643#M117212</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-30T05:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Help with DAX code that groups by ACCT_ID and looks for Payment Type</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-DAX-code-that-groups-by-ACCT-ID-and-looks-for-Payment/m-p/3212709#M117214</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thank you for your message.&lt;/P&gt;
&lt;P&gt;Could you please share your sample pbix file's link?&lt;/P&gt;
&lt;P&gt;Are you looking for the calculated measure or calculated column?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Apr 2023 10:46:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-DAX-code-that-groups-by-ACCT-ID-and-looks-for-Payment/m-p/3212709#M117214</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2023-04-30T10:46:40Z</dc:date>
    </item>
  </channel>
</rss>

