<?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: The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-expression-refers-to-multiple-columns-Multiple-columns/m-p/1099359#M16105</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Thank you. I'm trying to create a chart that shows the history of valid tickets (&lt;SPAN class="token_created"&gt;the&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class="token_created"&gt;progress&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class="token_created"&gt;of&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class="token_created"&gt;this&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class="token_created"&gt;count&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class="token_created"&gt;over&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class="token_created"&gt;time).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;On the x-axis, I have the calendar; on y-axis I have the count of valid tickets on&amp;nbsp;&lt;SPAN class="token_created"&gt;that&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token_created"&gt;date.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I was able to calculate the value on the single date (below expression is running), but I can't handle the observation date as a variable.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BacklogToday = CALCULATE(DISTINCTCOUNT(HPD_HELP_DESK_HIS_T[INCIDENT_NUMBER]);ISBLANK(HPD_HELP_DESK_HIS_T[DATA_FINE_COMPETENZA]) || HPD_HELP_DESK_HIS_T[DATA_FINE_COMPETENZA] &amp;gt; TODAY();HPD_HELP_DESK_HIS_T[DATA_INIZIO_COMPETENZA]&amp;lt;=TODAY())&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="col-md-6"&gt;&lt;DIV class="htmlEditor"&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="col-md-6"&gt;&lt;DIV&gt;&lt;SPAN class="token_created"&gt;How&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token_created"&gt;can&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token_created"&gt;I&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token_created"&gt;make&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token_created"&gt;the&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token_created"&gt;date&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token_created"&gt;a&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token_created"&gt;variable&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token_created"&gt;(time)?&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token_created"&gt;And&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token_created"&gt;so&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token_created"&gt;look&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token_created"&gt;how&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token_created"&gt;the&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token_created"&gt;volume&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token_created"&gt;changes&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token_created"&gt;over&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token_created"&gt;time?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="token_created"&gt;&lt;SPAN class="token_created"&gt;Thanks again!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 20 May 2020 18:00:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-05-20T18:00:34Z</dc:date>
    <item>
      <title>The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-expression-refers-to-multiple-columns-Multiple-columns/m-p/1099253#M16102</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a fact table with these columns:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Ticket ID (INCIDENT_NUMBER)&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;effective start date (DATA_INIZIO_COMPETENZA)&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;effective end date (DATA_FINE_COMPETENZA)&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I'd like to build a chart that count (distinct) ticket ID valid at the calendar date (last 30 days).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using CALCULATE, DISTINCT COUNT received the error in the Subject&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;BacklogToday =CALCULATE(DISTINCTCOUNT(HPD_HELP_DESK_HIS_T[INCIDENT_NUMBER]);ISBLANK(HPD_HELP_DESK_HIS_T[DATA_FINE_COMPETENZA]) || HPD_HELP_DESK_HIS_T[DATA_FINE_COMPETENZA] &amp;gt; osservazione;HPD_HELP_DESK_HIS_T[DATA_INIZIO_COMPETENZA]&amp;lt;=osservazione)&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;"Osservazione" is a table generate with&amp;nbsp;&lt;SPAN&gt;CALENDARAUTO(12).&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;OSSERVAZIONE = CALENDARauto(12)&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Can u help me?&lt;/DIV&gt;&lt;DIV&gt;Thanks a lot&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 20 May 2020 16:47:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-expression-refers-to-multiple-columns-Multiple-columns/m-p/1099253#M16102</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-20T16:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-expression-refers-to-multiple-columns-Multiple-columns/m-p/1099328#M16104</link>
      <description>&lt;P&gt;Right, so you are comparing a column from one table to an entire table so that's not going to work. You would need to compare to a single filtered value in that column. Perhaps we should back up, what are you trying to accomplish?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please see this post regarding How to Get Your Question Answered Quickly: &lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The most important parts are:&lt;BR /&gt;1. Sample data as text, use the table tool in the editing bar&lt;BR /&gt;2. Expected output from sample data&lt;BR /&gt;3. Explanation in words of how to get from 1. to 2.&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 17:47:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-expression-refers-to-multiple-columns-Multiple-columns/m-p/1099328#M16104</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-05-20T17:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: The expression refers to multiple columns. Multiple columns cannot be converted to a scalar value.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-expression-refers-to-multiple-columns-Multiple-columns/m-p/1099359#M16105</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thank you. I'm trying to create a chart that shows the history of valid tickets (&lt;SPAN class="token_created"&gt;the&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class="token_created"&gt;progress&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class="token_created"&gt;of&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class="token_created"&gt;this&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class="token_created"&gt;count&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class="token_created"&gt;over&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class="token_created"&gt;time).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;On the x-axis, I have the calendar; on y-axis I have the count of valid tickets on&amp;nbsp;&lt;SPAN class="token_created"&gt;that&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token_created"&gt;date.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I was able to calculate the value on the single date (below expression is running), but I can't handle the observation date as a variable.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BacklogToday = CALCULATE(DISTINCTCOUNT(HPD_HELP_DESK_HIS_T[INCIDENT_NUMBER]);ISBLANK(HPD_HELP_DESK_HIS_T[DATA_FINE_COMPETENZA]) || HPD_HELP_DESK_HIS_T[DATA_FINE_COMPETENZA] &amp;gt; TODAY();HPD_HELP_DESK_HIS_T[DATA_INIZIO_COMPETENZA]&amp;lt;=TODAY())&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="col-md-6"&gt;&lt;DIV class="htmlEditor"&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="col-md-6"&gt;&lt;DIV&gt;&lt;SPAN class="token_created"&gt;How&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token_created"&gt;can&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token_created"&gt;I&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token_created"&gt;make&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token_created"&gt;the&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token_created"&gt;date&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token_created"&gt;a&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token_created"&gt;variable&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token_created"&gt;(time)?&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token_created"&gt;And&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token_created"&gt;so&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token_created"&gt;look&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token_created"&gt;how&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token_created"&gt;the&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token_created"&gt;volume&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token_created"&gt;changes&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token_created"&gt;over&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="token_created"&gt;time?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="token_created"&gt;&lt;SPAN class="token_created"&gt;Thanks again!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 18:00:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/The-expression-refers-to-multiple-columns-Multiple-columns/m-p/1099359#M16105</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-05-20T18:00:34Z</dc:date>
    </item>
  </channel>
</rss>

