<?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: Switch functions error in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Switch-functions-error/m-p/3366038#M43745</link>
    <description>&lt;P&gt;Thank you for your help!&amp;nbsp; I tried the above dax and am experiancing a new error message(below)&amp;nbsp; do you know where I should be using the value function?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="22LACMT_0-1691173647953.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/951434i7B7FCD892AD69787/image-size/medium?v=v2&amp;amp;px=400" role="button" title="22LACMT_0-1691173647953.png" alt="22LACMT_0-1691173647953.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Error: Dax comparison operaations do not support comparing values of type text with values of type integer. Consider using the VALUE or FORMAT function to convert one of the values.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Aug 2023 18:42:54 GMT</pubDate>
    <dc:creator>22LACMT</dc:creator>
    <dc:date>2023-08-04T18:42:54Z</dc:date>
    <item>
      <title>Switch functions error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Switch-functions-error/m-p/3364027#M43723</link>
      <description>&lt;P&gt;Does anyone know why I am getting this error? and how to fix it?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;OverallstarRatingNR = &lt;/SPAN&gt;&lt;SPAN&gt;SWITCH&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;ProviderInfo[Overall Rating]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;"0"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"Not Rated"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;ProviderInfo[Overall Rating]&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;"1"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;ProviderInfo[Overall Rating]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;"2"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"2"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;ProviderInfo[Overall Rating]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;"3"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"3"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;ProviderInfo[Overall Rating]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;"4"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"4"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;ProviderInfo[Overall Rating]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;"5"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"5"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="22LACMT_0-1691079973564.png" style="width: 1606px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/950844i0DD1F712FF051EF2/image-dimensions/1606x75?v=v2" width="1606" height="75" role="button" title="22LACMT_0-1691079973564.png" alt="22LACMT_0-1691079973564.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 16:28:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Switch-functions-error/m-p/3364027#M43723</guid>
      <dc:creator>22LACMT</dc:creator>
      <dc:date>2023-08-03T16:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: Switch functions error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Switch-functions-error/m-p/3365441#M43739</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/459751"&gt;@22LACMT&lt;/a&gt;&amp;nbsp;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You need to use below DAX for switch case within your column,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;OverallstarRatingNR = SWITCH(ProviderInfo[Overall Rating],0, "Not Rated",1,"1",2,"2",3,"3",4,"4",5,"5")&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;Please refer to the below screenshot,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SamInogic_0-1691152075831.png" style="width: 949px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/951296i519D427D2BEF2D55/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SamInogic_0-1691152075831.png" alt="SamInogic_0-1691152075831.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Inogic Professional Services Division&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Power Platform and Microsoft Dynamics 365 CRM Development – All under one roof!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Drop an email at &lt;/SPAN&gt;&lt;A href="mailto:crm@inogic.com" target="_blank"&gt;crm@inogic.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Services:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://www.inogic.com/services/" target="_blank"&gt;http://www.inogic.com/services/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Power Platform/Dynamics 365 CRM Tips and Tricks:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://www.inogic.com/blog/" target="_blank"&gt;http://www.inogic.com/blog/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 12:28:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Switch-functions-error/m-p/3365441#M43739</guid>
      <dc:creator>SamInogic</dc:creator>
      <dc:date>2023-08-04T12:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Switch functions error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Switch-functions-error/m-p/3366038#M43745</link>
      <description>&lt;P&gt;Thank you for your help!&amp;nbsp; I tried the above dax and am experiancing a new error message(below)&amp;nbsp; do you know where I should be using the value function?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="22LACMT_0-1691173647953.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/951434i7B7FCD892AD69787/image-size/medium?v=v2&amp;amp;px=400" role="button" title="22LACMT_0-1691173647953.png" alt="22LACMT_0-1691173647953.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Error: Dax comparison operaations do not support comparing values of type text with values of type integer. Consider using the VALUE or FORMAT function to convert one of the values.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 18:42:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Switch-functions-error/m-p/3366038#M43745</guid>
      <dc:creator>22LACMT</dc:creator>
      <dc:date>2023-08-04T18:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: Switch functions error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Switch-functions-error/m-p/3367696#M43755</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/459751"&gt;@22LACMT&lt;/a&gt;&amp;nbsp; ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It seems that your “Overall Rating” column is of type text so you can try with below DAX expression,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;OverallstarRatingNR = SWITCH(ProviderInfo[Overall Rating],"0", "Not Rated","1","1","2","2","3","3","4","4","5","5")&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please refer to the below screenshot for the same,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SamInogic_0-1691389392976.png" style="width: 1439px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/951954i3211144578DAFAA0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SamInogic_0-1691389392976.png" alt="SamInogic_0-1691389392976.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Inogic Professional Services Division&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Power Platform and Microsoft Dynamics 365 CRM Development – All under one roof!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Drop an email at &lt;/SPAN&gt;&lt;A href="mailto:crm@inogic.com" target="_blank"&gt;crm@inogic.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Services:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://www.inogic.com/services/" target="_blank"&gt;http://www.inogic.com/services/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Power Platform/Dynamics 365 CRM Tips and Tricks:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://www.inogic.com/blog/" target="_blank"&gt;http://www.inogic.com/blog/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 06:23:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Switch-functions-error/m-p/3367696#M43755</guid>
      <dc:creator>SamInogic</dc:creator>
      <dc:date>2023-08-07T06:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: Switch functions error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Switch-functions-error/m-p/3368439#M43769</link>
      <description>&lt;P&gt;Hi, I feel like there is something (maybe on a formatting level) missing.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;OverallstarRatingNR = &lt;/SPAN&gt;&lt;SPAN&gt;SWITCH&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN&gt;ProviderInfo[Overall Rating]&lt;/SPAN&gt;&lt;SPAN&gt; =&lt;/SPAN&gt;&lt;SPAN&gt;"0"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"Not Rated"&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;"1"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"2"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"2"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"3"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"3"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"4"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"4"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"5"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"5"&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;I'm still experiancing the Switch fuction error : "Function switch does not support comparing values of type true/false with values of type text. consider using the Value or FORMAT function to convert on of the values.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 07 Aug 2023 13:25:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Switch-functions-error/m-p/3368439#M43769</guid>
      <dc:creator>22LACMT</dc:creator>
      <dc:date>2023-08-07T13:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: Switch functions error</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Switch-functions-error/m-p/3369480#M43776</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/459751"&gt;@22LACMT&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;You are actually adding&amp;nbsp;&lt;SPAN&gt;ProviderInfo[Overall Rating]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;=&lt;/SPAN&gt;&lt;SPAN&gt;"0" in your formula as mentioned above. It should be as below,&lt;BR /&gt;&lt;BR /&gt;SWITCH(&lt;STRONG&gt;ProviderInfo[Overall Rating],"0",&lt;/STRONG&gt; "Not Rated","1","1","2","2","3","3","4","4","5","5")&lt;BR /&gt;&lt;BR /&gt;Let me know if you still faces the issue.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Inogic Professional Services Division&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Power Platform and Microsoft Dynamics 365 CRM Development – All under one roof!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Drop an email at &lt;/SPAN&gt;&lt;A href="mailto:crm@inogic.com" target="_blank"&gt;crm@inogic.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Services:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://www.inogic.com/services/" target="_blank"&gt;http://www.inogic.com/services/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Power Platform/Dynamics 365 CRM Tips and Tricks:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://www.inogic.com/blog/" target="_blank"&gt;http://www.inogic.com/blog/&lt;/A&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 04:10:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Switch-functions-error/m-p/3369480#M43776</guid>
      <dc:creator>SamInogic</dc:creator>
      <dc:date>2023-08-08T04:10:43Z</dc:date>
    </item>
  </channel>
</rss>

