<?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: Grouping column values and setting a flag based on another column's value? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-column-values-and-setting-a-flag-based-on-another/m-p/2329810#M58488</link>
    <description>&lt;P&gt;&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;How would I change this syntax to use it in creating a new table rather than just a measure?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DS Assigned = if(CALCULATE(CONTAINS('Incident History','Incident History'[Assigned Group],"DS_Unity"),ALLEXCEPT('Incident History','Incident History'[Incident #])),1,0)&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 10 Feb 2022 04:49:28 GMT</pubDate>
    <dc:creator>bballjoe12</dc:creator>
    <dc:date>2022-02-10T04:49:28Z</dc:date>
    <item>
      <title>Grouping column values and setting a flag based on another column's value?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-column-values-and-setting-a-flag-based-on-another/m-p/2314619#M57627</link>
      <description>&lt;P&gt;I have a large set of data that contains ticket numbers and the history of the Groups the ticket numbers were assigned to. The data may consist of 4 rows for, example, for ticket # 126748, because it was assigned to 4 different teams.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to figure out a measure that will set the flag to '1' if the ticket numbers assigned group was ever 'Desktop Support.' If the ticket number's assigned group did include 'Desktop Support' then I want to set the flag on every row of that ticket # to '1'.&amp;nbsp; Here is a screenshot of what I am trying to achieve:&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've searched and tried many different DAX combinations and have been very unsuccessful.&amp;nbsp; All of my data is on the same table.&amp;nbsp; Does anyone know a DAX measure that would help me achieve this?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2022 06:38:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-column-values-and-setting-a-flag-based-on-another/m-p/2314619#M57627</guid>
      <dc:creator>bballjoe12</dc:creator>
      <dc:date>2022-02-02T06:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping column values and setting a flag based on another column's value?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-column-values-and-setting-a-flag-based-on-another/m-p/2314625#M57628</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Here is one way to do this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Measure 15 = &lt;/SPAN&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;CONTAINS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Temperature (2)'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'Temperature (2)'[Temperature]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"Warm"&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;ALLEXCEPT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Temperature (2)'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'Temperature (2)'[GRP]&lt;/SPAN&gt;&lt;SPAN&gt;)),&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;This measure checks if a group contain "Warm" and will return 1 to all rows where this is the case.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;img /&gt;&lt;P&gt;&lt;BR /&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;My LinkedIn: &lt;A href="https://www.linkedin.com/in/n%C3%A4ttiahov-00001/" target="_blank"&gt;https://www.linkedin.com/in/n%C3%A4ttiahov-00001/&lt;/A&gt;&lt;/P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 02 Feb 2022 06:48:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-column-values-and-setting-a-flag-based-on-another/m-p/2314625#M57628</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2022-02-02T06:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping column values and setting a flag based on another column's value?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-column-values-and-setting-a-flag-based-on-another/m-p/2315089#M57648</link>
      <description>&lt;P&gt;Excel worksheet formula is already enough&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2022 10:45:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-column-values-and-setting-a-flag-based-on-another/m-p/2315089#M57648</guid>
      <dc:creator>CNENFRNL</dc:creator>
      <dc:date>2022-02-02T10:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping column values and setting a flag based on another column's value?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-column-values-and-setting-a-flag-based-on-another/m-p/2315611#M57677</link>
      <description>&lt;P&gt;You are a genius! This works exactly as I need.&amp;nbsp; Thank you so much!&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2022 15:15:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-column-values-and-setting-a-flag-based-on-another/m-p/2315611#M57677</guid>
      <dc:creator>bballjoe12</dc:creator>
      <dc:date>2022-02-02T15:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping column values and setting a flag based on another column's value?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-column-values-and-setting-a-flag-based-on-another/m-p/2315757#M57687</link>
      <description>&lt;P&gt;&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;BR /&gt;&lt;BR /&gt;Can I use a wildcard within the syntax to get groups that start with DS? Here is the syntax I am using to get one group:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DS Assigned = if(CALCULATE(CONTAINS('Incident History','Incident History'[Assigned Group],"DS_Unity"),ALLEXCEPT('Incident History','Incident History'[Incident #])),1,0)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried this but had no luck:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DS Assigned = if(CALCULATE(CONTAINS('Incident History','Incident History'[Assigned Group],"DS_*"),ALLEXCEPT('Incident History','Incident History'[Incident #])),1,0)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How would I use a wildcard within the syntax to search any group that starts with 'DS'?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2022 16:33:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-column-values-and-setting-a-flag-based-on-another/m-p/2315757#M57687</guid>
      <dc:creator>bballjoe12</dc:creator>
      <dc:date>2022-02-02T16:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping column values and setting a flag based on another column's value?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-column-values-and-setting-a-flag-based-on-another/m-p/2315780#M57690</link>
      <description>&lt;P&gt;Have a look at CONTAINSSTRING:&lt;BR /&gt;e.g.&lt;BR /&gt;wildcard =&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CONTAINSSTRING&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;Temperature[Temperature]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;"Warm"&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;non-wild =&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CONTAINS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Temperature&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Temperature[Temperature]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"Warm"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 02 Feb 2022 16:43:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-column-values-and-setting-a-flag-based-on-another/m-p/2315780#M57690</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2022-02-02T16:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Grouping column values and setting a flag based on another column's value?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-column-values-and-setting-a-flag-based-on-another/m-p/2329810#M58488</link>
      <description>&lt;P&gt;&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;How would I change this syntax to use it in creating a new table rather than just a measure?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DS Assigned = if(CALCULATE(CONTAINS('Incident History','Incident History'[Assigned Group],"DS_Unity"),ALLEXCEPT('Incident History','Incident History'[Incident #])),1,0)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 10 Feb 2022 04:49:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Grouping-column-values-and-setting-a-flag-based-on-another/m-p/2329810#M58488</guid>
      <dc:creator>bballjoe12</dc:creator>
      <dc:date>2022-02-10T04:49:28Z</dc:date>
    </item>
  </channel>
</rss>

