<?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 SWITCH with multiple conditions in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SWITCH-with-multiple-conditions/m-p/3634252#M140588</link>
    <description>&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;Could you help in troubleshooting this command?&lt;BR /&gt;The error is:&lt;BR /&gt;A single value for column 'Issue Type' in table 'Table one' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;measure_type_color =&lt;BR /&gt;SWITCH(&lt;BR /&gt;'Table one'[Issue Type],&lt;BR /&gt;"Change Request", "#3C4E4B",&lt;BR /&gt;"Defect", "#466964",&lt;BR /&gt;"Issue", "#333333",&lt;BR /&gt;"Requirement", "#0D6ABF",&lt;BR /&gt;"Story", "#E27C7C",&lt;BR /&gt;"#503F3F"&lt;BR /&gt;)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
    <pubDate>Thu, 11 Jan 2024 20:50:46 GMT</pubDate>
    <dc:creator>aherabit</dc:creator>
    <dc:date>2024-01-11T20:50:46Z</dc:date>
    <item>
      <title>SWITCH with multiple conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SWITCH-with-multiple-conditions/m-p/3634252#M140588</link>
      <description>&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;Could you help in troubleshooting this command?&lt;BR /&gt;The error is:&lt;BR /&gt;A single value for column 'Issue Type' in table 'Table one' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;measure_type_color =&lt;BR /&gt;SWITCH(&lt;BR /&gt;'Table one'[Issue Type],&lt;BR /&gt;"Change Request", "#3C4E4B",&lt;BR /&gt;"Defect", "#466964",&lt;BR /&gt;"Issue", "#333333",&lt;BR /&gt;"Requirement", "#0D6ABF",&lt;BR /&gt;"Story", "#E27C7C",&lt;BR /&gt;"#503F3F"&lt;BR /&gt;)&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Thu, 11 Jan 2024 20:50:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SWITCH-with-multiple-conditions/m-p/3634252#M140588</guid>
      <dc:creator>aherabit</dc:creator>
      <dc:date>2024-01-11T20:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: SWITCH with multiple conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SWITCH-with-multiple-conditions/m-p/3634279#M140589</link>
      <description>&lt;P&gt;Hi, &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="312939" data-lia-user-login="aherabit" class="lia-mention lia-mention-user"&gt;aherabit&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wrap your issue type in min() or max()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;measure_type_color =&lt;/P&gt;&lt;P&gt;SWITCH(&lt;/P&gt;&lt;P&gt;Min('Table one'[Issue Type]),&lt;/P&gt;&lt;P&gt;"Change Request", "#3C4E4B",&lt;/P&gt;&lt;P&gt;"Defect", "#466964",&lt;/P&gt;&lt;P&gt;"Issue", "#333333",&lt;/P&gt;&lt;P&gt;"Requirement", "#0D6ABF",&lt;/P&gt;&lt;P&gt;"Story", "#E27C7C",&lt;/P&gt;&lt;P&gt;"#503F3F"&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2024 21:00:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SWITCH-with-multiple-conditions/m-p/3634279#M140589</guid>
      <dc:creator>Dangar332</dc:creator>
      <dc:date>2024-01-11T21:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: SWITCH with multiple conditions</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SWITCH-with-multiple-conditions/m-p/3636622#M140697</link>
      <description>&lt;P&gt;thank you!&lt;/P&gt;&lt;P&gt;It worked with Min().&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2024 19:33:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SWITCH-with-multiple-conditions/m-p/3636622#M140697</guid>
      <dc:creator>aherabit</dc:creator>
      <dc:date>2024-01-12T19:33:34Z</dc:date>
    </item>
  </channel>
</rss>

