<?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 Understanding DAX Query in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Understanding-DAX-Query/m-p/1085576#M15500</link>
    <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Hope you can help. I am trying to understand a DAX query that has been developed so that I can maniuplate. Below is a copy of the query:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;ValueCOL =&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;CALCULATE(&lt;BR /&gt;CALCULATE(MAX(Table 1[Value]),&lt;/P&gt;&lt;P&gt;FILTER(Table1,&lt;BR /&gt;IF(ISFILTERED('Table P'[P Level 2]),&lt;/P&gt;&lt;P&gt;Table 1[FChannel] IN VALUES('TableC'[FChannel])&lt;BR /&gt;&amp;amp;&amp;amp; Table1[P Level 1] IN VALUES('TableP'[P Level 1])&lt;BR /&gt;&amp;amp;&amp;amp; Table1[P Level 2] IN VALUES('TableP'[P Level 2]),&lt;/P&gt;&lt;P&gt;IF(ISFILTERED('Table P'[P Level 1]),&lt;BR /&gt;Table 1[F Channel] IN VALUES('Table C'[F Channel])&lt;BR /&gt;&amp;amp;&amp;amp; Table 1 [P Level 1] IN VALUES('Table P'[P Level 1]),&lt;BR /&gt;IF(ISFILTERED('Table C'[FChannel]),Table 1[ FChannel] IN VALUES('Table C'[F Channel]), MAX(Table 1[Value])))))))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help appreciated.&lt;/P&gt;</description>
    <pubDate>Tue, 12 May 2020 08:06:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-05-12T08:06:13Z</dc:date>
    <item>
      <title>Understanding DAX Query</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Understanding-DAX-Query/m-p/1085576#M15500</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Hope you can help. I am trying to understand a DAX query that has been developed so that I can maniuplate. Below is a copy of the query:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;ValueCOL =&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;CALCULATE(&lt;BR /&gt;CALCULATE(MAX(Table 1[Value]),&lt;/P&gt;&lt;P&gt;FILTER(Table1,&lt;BR /&gt;IF(ISFILTERED('Table P'[P Level 2]),&lt;/P&gt;&lt;P&gt;Table 1[FChannel] IN VALUES('TableC'[FChannel])&lt;BR /&gt;&amp;amp;&amp;amp; Table1[P Level 1] IN VALUES('TableP'[P Level 1])&lt;BR /&gt;&amp;amp;&amp;amp; Table1[P Level 2] IN VALUES('TableP'[P Level 2]),&lt;/P&gt;&lt;P&gt;IF(ISFILTERED('Table P'[P Level 1]),&lt;BR /&gt;Table 1[F Channel] IN VALUES('Table C'[F Channel])&lt;BR /&gt;&amp;amp;&amp;amp; Table 1 [P Level 1] IN VALUES('Table P'[P Level 1]),&lt;BR /&gt;IF(ISFILTERED('Table C'[FChannel]),Table 1[ FChannel] IN VALUES('Table C'[F Channel]), MAX(Table 1[Value])))))))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2020 08:06:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Understanding-DAX-Query/m-p/1085576#M15500</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-12T08:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding DAX Query</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Understanding-DAX-Query/m-p/1085660#M15502</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="php"&gt;ValueCOL =
CALCULATE (
    CALCULATE (
        //    finding the max value in Value column
        MAX ( 'Table1'[Value] ),
        //  filtering the Table1      
        FILTER (
            'Table1',
            //   If the column P Level 2 is filtered then FChannel  in Table1 = FChannel in TableC and next condition       
            IF (
                ISFILTERED ( 'Table P'[P Level 2] ),
                'Table1'[FChannel]
                    IN VALUES ( 'TableC'[FChannel] )
                    &amp;amp;&amp;amp; 'Table1'[P Level 1]
                        IN VALUES ( 'TableP'[P Level 1] )
                    &amp;amp;&amp;amp; 'Table1'[P Level 2]
                        IN VALUES ( 'TableP'[P Level 2] ),
                // else applying another filter condition                        
                IF (
                    ISFILTERED ( 'Table P'[P Level 1] ),
                    'Table1'[F Channel]
                        IN VALUES ( 'Table C'[F Channel] )
                        &amp;amp;&amp;amp; 'Table1'[P Level 1]
                            IN VALUES ( 'Table P'[P Level 1] ),
                    //else another
                    IF (
                        ISFILTERED ( 'Table C'[FChannel] ),
                        'Table1'[ FChannel]
                            IN VALUES ( 'Table C'[F Channel] ),
                        MAX ( 'Table1'[Value] )
                    )
                )
            )
        )
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/dax/if-function-dax" target="_blank"&gt;https://docs.microsoft.com/en-us/dax/if-function-dax&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/dax/filter-functions-dax" target="_blank"&gt;https://docs.microsoft.com/en-us/dax/filter-functions-dax&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/dax/isfiltered-function-dax" target="_blank"&gt;https://docs.microsoft.com/en-us/dax/isfiltered-function-dax&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/dax/values-function-dax" target="_blank"&gt;https://docs.microsoft.com/en-us/dax/values-function-dax&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/dax/in-operator-containsrow-function" target="_blank"&gt;https://docs.microsoft.com/en-us/dax/in-operator-containsrow-function&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Did I answer your question? Mark my post as a solution!&lt;BR /&gt;Appreciate with a kudos &lt;/STRONG&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2020 08:59:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Understanding-DAX-Query/m-p/1085660#M15502</guid>
      <dc:creator>nandukrishnavs</dc:creator>
      <dc:date>2020-05-12T08:59:45Z</dc:date>
    </item>
  </channel>
</rss>

