<?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: DAX(Using MAXX) in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Using-MAXX/m-p/2299134#M56721</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="343431" data-lia-user-login="ValtteriN" class="lia-mention lia-mention-user"&gt;ValtteriN&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please tell if it is&lt;SPAN&gt;&amp;nbsp;possible to use the same for multiple columns, which is more than 4?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Megha&lt;/P&gt;</description>
    <pubDate>Mon, 24 Jan 2022 17:23:11 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-01-24T17:23:11Z</dc:date>
    <item>
      <title>DAX(Using MAXX)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Using-MAXX/m-p/2287102#M56123</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;This is the data I have created in PowerBI. Screenshot is given below:&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 have the data in the same format in excel. The screenshot is given below:&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;P&gt;Based on the above columns, I created an other column in excel named Weekly cycle. And the formula I implemented was&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=IF(MAX(AE3:AR3)&amp;gt;7,7,(MAX(AE3:AR3))+1).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How can I implement the same in data field in PowerBI?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any help is appreciated!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Megha&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jan 2022 15:59:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Using-MAXX/m-p/2287102#M56123</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-01-28T15:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: DAX(Using MAXX)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Using-MAXX/m-p/2287130#M56124</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;It is possible to do this kind of comparion by using nested MAX() functions, but I wouldn't recommend it. Instead you can unpivot the data in PQ.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Multiselect columns with shift click and press the arrow:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Then unpivot columns. Also you can add an index column to keep track of the groups created this way.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;In my Example I have 4 columns and index column.&lt;BR /&gt;Start 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;BR /&gt;After unpivot I have this kind of data:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Dax:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Max with if = &lt;/SPAN&gt;&lt;SPAN&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'MAX'[Value]&lt;/SPAN&gt;&lt;SPAN&gt;)&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;7&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;7&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'MAX'[Value]&lt;/SPAN&gt;&lt;SPAN&gt;)+&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;End result:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;img /&gt;&lt;P&gt;I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 17 Jan 2022 16:27:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Using-MAXX/m-p/2287130#M56124</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2022-01-17T16:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: DAX(Using MAXX)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Using-MAXX/m-p/2287148#M56125</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="343431" data-lia-user-login="ValtteriN" class="lia-mention lia-mention-user"&gt;ValtteriN&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your reply!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Its not pivoted to unpivot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And all the columns are calculated columns which is created by me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to implement that formula on the calculated columns in PowerBI.&lt;/P&gt;&lt;P&gt;Can I please know how to do that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;BR /&gt;Megha&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jan 2022 16:38:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Using-MAXX/m-p/2287148#M56125</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-01-17T16:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: DAX(Using MAXX)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Using-MAXX/m-p/2287179#M56127</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;If you want to do this with a calculated column you need to use nested MAX functions e.g.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Column = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&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 17 Jan 2022 17:00:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Using-MAXX/m-p/2287179#M56127</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2022-01-17T17:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: DAX(Using MAXX)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Using-MAXX/m-p/2288532#M56191</link>
      <description>&lt;P&gt;Is it possible to use the same for multiple columns, which is more than 4?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Megha&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jan 2022 09:46:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Using-MAXX/m-p/2288532#M56191</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-01-18T09:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: DAX(Using MAXX)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Using-MAXX/m-p/2299134#M56721</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="343431" data-lia-user-login="ValtteriN" class="lia-mention lia-mention-user"&gt;ValtteriN&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please tell if it is&lt;SPAN&gt;&amp;nbsp;possible to use the same for multiple columns, which is more than 4?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Megha&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 17:23:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Using-MAXX/m-p/2299134#M56721</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-01-24T17:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: DAX(Using MAXX)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Using-MAXX/m-p/2299167#M56723</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Yeah it is possible, you just need to add MAX's iteratively. E.g.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 17:48:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Using-MAXX/m-p/2299167#M56723</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2022-01-24T17:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: DAX(Using MAXX)</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Using-MAXX/m-p/2299209#M56729</link>
      <description>&lt;P&gt;Thank you!&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="343431" data-lia-user-login="ValtteriN" class="lia-mention lia-mention-user"&gt;ValtteriN&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 18:24:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-Using-MAXX/m-p/2299209#M56729</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-01-24T18:24:26Z</dc:date>
    </item>
  </channel>
</rss>

