<?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 formula for new columns with groups in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-for-new-columns-with-groups/m-p/912505#M8753</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="199863" data-lia-user-login="ola1996" class="lia-mention lia-mention-user"&gt;ola1996&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Refer to the link in my previous post as it solves the exact problem. Basically you have to create a custom column and give your conditions in query editor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it helps, mark it as a solution.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kudos are nice too.&lt;/P&gt;</description>
    <pubDate>Mon, 27 Jan 2020 14:52:48 GMT</pubDate>
    <dc:creator>VasTg</dc:creator>
    <dc:date>2020-01-27T14:52:48Z</dc:date>
    <item>
      <title>DAX formula for new columns with groups</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-for-new-columns-with-groups/m-p/911320#M8710</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need help a lot. I have one column in my database, which consist of numbers and text:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I want to create new 2 columns which grouped this values by tens and hundreds, e.g. for 122 is in groupe 100 and 120.&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;What I done by now:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. I&amp;nbsp;&lt;SPAN&gt;divided the column to keep the number without text&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. I try to create calculated column, like that&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;HundredsRange =&lt;BR /&gt;IF (&lt;BR /&gt;[Code — kopia.2] &amp;gt;= 100&lt;BR /&gt;&amp;amp;&amp;amp; [Code — kopia.2]&amp;lt;=199,&lt;BR /&gt;"100";&lt;BR /&gt;IF (&lt;BR /&gt;[Code — kopia.2] &amp;gt;= 200&lt;BR /&gt;&amp;amp;&amp;amp; [Code — kopia.2] &amp;lt;= 299,&lt;BR /&gt;"200";&lt;BR /&gt;IF (&lt;BR /&gt;[Code — kopia.2] &amp;gt;= 300&lt;BR /&gt;&amp;amp;&amp;amp; [Code — kopia.2] &amp;lt;= 399,&lt;BR /&gt;"300";&lt;BR /&gt;IF ( [Code — kopia.2] &amp;gt;= 400 &amp;amp;&amp;amp; [Code — kopia.2] &amp;lt;= 499,&lt;BR /&gt;"400"; "NotExist" )&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;BUT IT DOESN't WORK.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help me? I need a piece of advice &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2020 21:50:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-for-new-columns-with-groups/m-p/911320#M8710</guid>
      <dc:creator>ola1996</dc:creator>
      <dc:date>2020-01-24T21:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula for new columns with groups</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-for-new-columns-with-groups/m-p/911334#M8711</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="199863" data-lia-user-login="ola1996" class="lia-mention lia-mention-user"&gt;ola1996&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What was the error message? Are the column in correct datatype?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your expected out is not clear with the statment "&lt;SPAN&gt;e.g. for 122 is in groupe 100 and 120. "&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you want to group them based on the range?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Refer to this post..(Query Editor- M query)&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Custom-Column-New-column-to-categorize-value-as-one-or-another/m-p/910038" target="_blank" rel="noopener"&gt;https://community.powerbi.com/t5/Desktop/Custom-Column-New-column-to-categorize-value-as-one-or-another/m-p/910038&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this helps, mark it as a solution&lt;/P&gt;&lt;P&gt;Kudos are nice too&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2020 22:18:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-for-new-columns-with-groups/m-p/911334#M8711</guid>
      <dc:creator>VasTg</dc:creator>
      <dc:date>2020-01-24T22:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula for new columns with groups</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-for-new-columns-with-groups/m-p/911452#M8717</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="199863" data-lia-user-login="ola1996" class="lia-mention lia-mention-user"&gt;ola1996&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;first, you are using different delimiters ";" and "," in your statement.&amp;nbsp; it depends on your localization but it should only commas or semicolon&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;I&gt;&lt;FONT color="#ababab"&gt;do not hesitate to give a kudo to useful posts and mark solutions as solution&lt;/FONT&gt;&lt;/I&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jan 2020 08:52:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-for-new-columns-with-groups/m-p/911452#M8717</guid>
      <dc:creator>az38</dc:creator>
      <dc:date>2020-01-25T08:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula for new columns with groups</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-for-new-columns-with-groups/m-p/911735#M8728</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="199863" data-lia-user-login="ola1996" class="lia-mention lia-mention-user"&gt;ola1996&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would recommend Power Query for data preparation.&lt;/P&gt;&lt;P&gt;Take a look at "Add Column From Examples"&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/power-bi/desktop-add-column-from-example#add-column-from-examples-pane" target="_blank"&gt;https://docs.microsoft.com/en-us/power-bi/desktop-add-column-from-example#add-column-from-examples-pane&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Marcus&lt;BR /&gt;&lt;BR /&gt;Dortmund - Germany&lt;BR /&gt;If I answered your question, please mark my post as solution, this will also help others.&lt;BR /&gt;Please give Kudos for support.&lt;/P&gt;</description>
      <pubDate>Sun, 26 Jan 2020 17:38:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-for-new-columns-with-groups/m-p/911735#M8728</guid>
      <dc:creator>mwegener</dc:creator>
      <dc:date>2020-01-26T17:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula for new columns with groups</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-for-new-columns-with-groups/m-p/911974#M8732</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="182681" data-lia-user-login="VasTg" class="lia-mention lia-mention-user"&gt;VasTg&lt;/a&gt;&amp;nbsp;Yes, I wolud like to group them base on a range, and create new columns like below:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2020 07:23:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-for-new-columns-with-groups/m-p/911974#M8732</guid>
      <dc:creator>ola1996</dc:creator>
      <dc:date>2020-01-27T07:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula for new columns with groups</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-for-new-columns-with-groups/m-p/912505#M8753</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="199863" data-lia-user-login="ola1996" class="lia-mention lia-mention-user"&gt;ola1996&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Refer to the link in my previous post as it solves the exact problem. Basically you have to create a custom column and give your conditions in query editor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it helps, mark it as a solution.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kudos are nice too.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2020 14:52:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-for-new-columns-with-groups/m-p/912505#M8753</guid>
      <dc:creator>VasTg</dc:creator>
      <dc:date>2020-01-27T14:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: DAX formula for new columns with groups</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-for-new-columns-with-groups/m-p/913633#M8783</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="182681" data-lia-user-login="VasTg" class="lia-mention lia-mention-user"&gt;VasTg&lt;/a&gt;&amp;nbsp;Thanks a lot &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; it works correctly&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2020 13:33:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-formula-for-new-columns-with-groups/m-p/913633#M8783</guid>
      <dc:creator>ola1996</dc:creator>
      <dc:date>2020-01-28T13:33:07Z</dc:date>
    </item>
  </channel>
</rss>

