<?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 Need to group values in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-group-values/m-p/4113576#M163264</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need your help. I have a column with many values from 0 to 200 and I need to group them as following:&lt;/P&gt;&lt;P&gt;If the value is between 0 and 20 in a new column called " Grouped values" I want to dispay as text "0-20", in other one if it is between 20-40 I want to display '20-40" etc. I tried to make a conditionnal column in power query&amp;nbsp; but there is no option "between" so I can't make more than 2 groups and I need 5.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Aug 2024 13:33:00 GMT</pubDate>
    <dc:creator>Anne14</dc:creator>
    <dc:date>2024-08-22T13:33:00Z</dc:date>
    <item>
      <title>Need to group values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-group-values/m-p/4113576#M163264</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need your help. I have a column with many values from 0 to 200 and I need to group them as following:&lt;/P&gt;&lt;P&gt;If the value is between 0 and 20 in a new column called " Grouped values" I want to dispay as text "0-20", in other one if it is between 20-40 I want to display '20-40" etc. I tried to make a conditionnal column in power query&amp;nbsp; but there is no option "between" so I can't make more than 2 groups and I need 5.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 13:33:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-group-values/m-p/4113576#M163264</guid>
      <dc:creator>Anne14</dc:creator>
      <dc:date>2024-08-22T13:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: Need to group values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-group-values/m-p/4113673#M163268</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="366142" data-lia-user-login="Anne14" class="lia-mention lia-mention-user"&gt;Anne14&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can produce the required output by writing a calculated column like the one below:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Bucket = switch(true(),[Value]&amp;lt;=20,"1-20",
[Value]&amp;lt;=40,"21-40",
[Value]&amp;lt;=60,"41-60",
[Value]&amp;lt;=80,"61-80",
[Value]&amp;lt;=100,"81-100",
[Value]&amp;lt;=120,"101-120",
[Value]&amp;lt;=140,"121-140",
[Value]&amp;lt;=160,"141-160",
[Value]&amp;lt;=180,"161-180",
[Value]&amp;lt;=200,"181-200")
&lt;/LI-CODE&gt;
&lt;P&gt;The resultant output is the bucketing of numbers as shown below:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;I have attached an example pbix file.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 14:12:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-group-values/m-p/4113673#M163268</guid>
      <dc:creator>DataNinja777</dc:creator>
      <dc:date>2024-08-22T14:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: Need to group values</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-group-values/m-p/4116068#M163397</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="608865" data-lia-user-login="DataNinja777" class="lia-mention lia-mention-user"&gt;DataNinja777&lt;/a&gt;&amp;nbsp;thank you very much for your help! perfect! have a nice day!&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2024 15:47:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Need-to-group-values/m-p/4116068#M163397</guid>
      <dc:creator>Anne14</dc:creator>
      <dc:date>2024-08-23T15:47:59Z</dc:date>
    </item>
  </channel>
</rss>

