<?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: Dynamically grouping table based on user input in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamically-grouping-table-based-on-user-input/m-p/3084395#M107685</link>
    <description>&lt;P&gt;Max Margin=CALCULATE(MAX(Table[Margin]),ALL(Table[Country]))&lt;/P&gt;
&lt;P&gt;Min Margin=CALCULATE(MIN(Table[Margin]),ALL(Table[Country]))&lt;/P&gt;</description>
    <pubDate>Fri, 17 Feb 2023 04:31:04 GMT</pubDate>
    <dc:creator>wdx223_Daniel</dc:creator>
    <dc:date>2023-02-17T04:31:04Z</dc:date>
    <item>
      <title>Dynamically grouping table based on user input</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamically-grouping-table-based-on-user-input/m-p/3084032#M107662</link>
      <description>&lt;P&gt;Say you have a table like the below where max margin and min margin represent the max and min of margin within the existing table:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Country&lt;/TD&gt;&lt;TD&gt;Margin&lt;/TD&gt;&lt;TD&gt;Max Margin&lt;/TD&gt;&lt;TD&gt;Min Margin&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Germany&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;TD&gt;80&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;UK&lt;/TD&gt;&lt;TD&gt;70&lt;/TD&gt;&lt;TD&gt;80&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;USA&lt;/TD&gt;&lt;TD&gt;80&lt;/TD&gt;&lt;TD&gt;80&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Japan&lt;/TD&gt;&lt;TD&gt;55&lt;/TD&gt;&lt;TD&gt;80&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;China&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;TD&gt;80&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to allow users to create some kind of grouping, like the "Region" column below, where max and min margin now calculate within the group?&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Country&lt;/TD&gt;&lt;TD&gt;Region&lt;/TD&gt;&lt;TD&gt;Margin&lt;/TD&gt;&lt;TD&gt;Max Margin&lt;/TD&gt;&lt;TD&gt;Min Margin&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Germany&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;TD&gt;70&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;UK&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;70&lt;/TD&gt;&lt;TD&gt;70&lt;/TD&gt;&lt;TD&gt;50&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;USA&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;80&lt;/TD&gt;&lt;TD&gt;80&lt;/TD&gt;&lt;TD&gt;80&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Japan&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;55&lt;/TD&gt;&lt;TD&gt;55&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;China&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;TD&gt;55&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Thu, 16 Feb 2023 21:07:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamically-grouping-table-based-on-user-input/m-p/3084032#M107662</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-16T21:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically grouping table based on user input</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamically-grouping-table-based-on-user-input/m-p/3084395#M107685</link>
      <description>&lt;P&gt;Max Margin=CALCULATE(MAX(Table[Margin]),ALL(Table[Country]))&lt;/P&gt;
&lt;P&gt;Min Margin=CALCULATE(MIN(Table[Margin]),ALL(Table[Country]))&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 04:31:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamically-grouping-table-based-on-user-input/m-p/3084395#M107685</guid>
      <dc:creator>wdx223_Daniel</dc:creator>
      <dc:date>2023-02-17T04:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically grouping table based on user input</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamically-grouping-table-based-on-user-input/m-p/3084404#M107687</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 new columns in the table.&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;</description>
      <pubDate>Fri, 17 Feb 2023 04:37:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamically-grouping-table-based-on-user-input/m-p/3084404#M107687</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2023-02-17T04:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically grouping table based on user input</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamically-grouping-table-based-on-user-input/m-p/3085035#M107762</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;This is one simplified example. In real case you would need to add more conditions inside the SWITCH statement.&lt;/P&gt;
&lt;P&gt;Please refer to attached sample file with the proposed solution&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 13:30:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamically-grouping-table-based-on-user-input/m-p/3085035#M107762</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-17T13:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically grouping table based on user input</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamically-grouping-table-based-on-user-input/m-p/3085342#M107796</link>
      <description>&lt;P&gt;I probably should've been more clear, the Region grouping does not exist in the source data. They want to be able to assign the groupings on their own and then have the calculations change.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 16:00:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamically-grouping-table-based-on-user-input/m-p/3085342#M107796</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-02-17T16:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically grouping table based on user input</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamically-grouping-table-based-on-user-input/m-p/3085378#M107800</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Unfortunately, Power Bi does no have artificial intelligence features at least for now.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 16:25:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamically-grouping-table-based-on-user-input/m-p/3085378#M107800</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-02-17T16:25:50Z</dc:date>
    </item>
  </channel>
</rss>

