<?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: Expressions that yield variant data-type cannot be used to define calculated columns in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Expressions-that-yield-variant-data-type-cannot-be-used-to/m-p/3863715#M51949</link>
    <description>&lt;P&gt;You are trying to return both text and numbers in that column,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;RemainingSlots = SWITCH( TRUE(),&lt;BR /&gt;[Max] = 0, "x",&lt;BR /&gt;[Max] - [Min] = 0, "full",&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;[Max] - [Min] &amp;lt; 0, "less",&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;[Max] - [Min] &amp;gt; 0, FORMAT([Max] - [Min],"#")&lt;BR /&gt;)&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Apr 2024 00:51:32 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2024-04-24T00:51:32Z</dc:date>
    <item>
      <title>Expressions that yield variant data-type cannot be used to define calculated columns</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Expressions-that-yield-variant-data-type-cannot-be-used-to/m-p/3863523#M51945</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'm new to Power BI. Can anyone help me on this error, please "Expressions that yield variant data-type cannot be used to define calculated columns"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;RemainingSlots = SWITCH( TRUE(),&lt;BR /&gt;[Max] = 0, "x",&lt;BR /&gt;[Max] - [Min] = 0, "full",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[Max] - [Min] &amp;lt; 0, "less", &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[Max] - [Min] &amp;gt; 0, [Max] - [Min]&lt;BR /&gt;)&lt;BR /&gt;&lt;BR /&gt;on the last part, I wanted to get the value of the diference of these columns if the difference is &amp;gt;0. Note: it is working without the last part. All column formats are set to Whole Number. not sure what I miss &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks in advance!&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2024 20:46:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Expressions-that-yield-variant-data-type-cannot-be-used-to/m-p/3863523#M51945</guid>
      <dc:creator>chris05</dc:creator>
      <dc:date>2024-04-23T20:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: Expressions that yield variant data-type cannot be used to define calculated columns</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Expressions-that-yield-variant-data-type-cannot-be-used-to/m-p/3863715#M51949</link>
      <description>&lt;P&gt;You are trying to return both text and numbers in that column,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;RemainingSlots = SWITCH( TRUE(),&lt;BR /&gt;[Max] = 0, "x",&lt;BR /&gt;[Max] - [Min] = 0, "full",&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;[Max] - [Min] &amp;lt; 0, "less",&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;[Max] - [Min] &amp;gt; 0, FORMAT([Max] - [Min],"#")&lt;BR /&gt;)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 00:51:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Expressions-that-yield-variant-data-type-cannot-be-used-to/m-p/3863715#M51949</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-04-24T00:51:32Z</dc:date>
    </item>
  </channel>
</rss>

