<?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: Error - The expression refres to multiple columns - assistance ? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Error-The-expression-refres-to-multiple-columns-assistance/m-p/2181468#M50785</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="239876" data-lia-user-login="suvechha" class="lia-mention lia-mention-user"&gt;suvechha&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is&amp;nbsp;&lt;SPAN&gt;Facility in your code? is that column, var, or measure?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Appreciate your Kudos!!&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Nov 2021 23:29:02 GMT</pubDate>
    <dc:creator>VahidDM</dc:creator>
    <dc:date>2021-11-09T23:29:02Z</dc:date>
    <item>
      <title>Error - The expression refres to multiple columns - assistance ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Error-The-expression-refres-to-multiple-columns-assistance/m-p/2181434#M50782</link>
      <description>&lt;P&gt;Hi there ,&lt;/P&gt;&lt;P&gt;Please kindly assist me with the below query -&amp;nbsp;&lt;/P&gt;&lt;P&gt;The expression was working , I need to put the if clause - when trying the if clause got the error&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Nominated COVID Wards - Occupied Bed = if ( Facility="NBH","NA", CALCULATE( SUM(COVID_OCP[count_ward_positive]),FILTER(DATE_CONSOLIDATION_TMP,DATE_CONSOLIDATION_TMP[datetype]=13),FILTER(DATE_CONSOLIDATION_TMP,DATE_CONSOLIDATION_TMP[Last_n_days]=0),FILTER(COVID_OCP,COVID_OCP[count_ward_designated]=1)) )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Error image&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 09 Nov 2021 23:01:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Error-The-expression-refres-to-multiple-columns-assistance/m-p/2181434#M50782</guid>
      <dc:creator>suvechha</dc:creator>
      <dc:date>2021-11-09T23:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: Error - The expression refres to multiple columns - assistance ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Error-The-expression-refres-to-multiple-columns-assistance/m-p/2181468#M50785</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="239876" data-lia-user-login="suvechha" class="lia-mention lia-mention-user"&gt;suvechha&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is&amp;nbsp;&lt;SPAN&gt;Facility in your code? is that column, var, or measure?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Appreciate your Kudos!!&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Nov 2021 23:29:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Error-The-expression-refres-to-multiple-columns-assistance/m-p/2181468#M50785</guid>
      <dc:creator>VahidDM</dc:creator>
      <dc:date>2021-11-09T23:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: Error - The expression refres to multiple columns - assistance ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Error-The-expression-refres-to-multiple-columns-assistance/m-p/2181501#M50787</link>
      <description>&lt;P&gt;its dimension column&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 00:16:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Error-The-expression-refres-to-multiple-columns-assistance/m-p/2181501#M50787</guid>
      <dc:creator>suvechha</dc:creator>
      <dc:date>2021-11-10T00:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: Error - The expression refres to multiple columns - assistance ?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Error-The-expression-refres-to-multiple-columns-assistance/m-p/2182613#M50826</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="239876" data-lia-user-login="suvechha" class="lia-mention lia-mention-user"&gt;suvechha&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;LI-CODE lang="php"&gt;Nominated COVID Wards - Occupied Bed =
IF(
    MAX( Facility ) = "NBH",
    "NA",
    CALCULATE(
        SUM( COVID_OCP[count_ward_positive] ),
        FILTER(
            DATE_CONSOLIDATION_TMP,
            DATE_CONSOLIDATION_TMP[datetype] = 13
                &amp;amp;&amp;amp; DATE_CONSOLIDATION_TMP[Last_n_days] = 0
        ),
        FILTER( COVID_OCP, COVID_OCP[count_ward_designated] = 1 )
    )
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;helps&lt;/SPAN&gt;&lt;/STRONG&gt;, please consider&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;accepting&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;it as the solution&lt;/SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;to help the other members find it more quickly.&lt;BR /&gt;&lt;STRONG&gt;&lt;SPAN&gt;Appreciate your Kudos!!&lt;BR /&gt;&lt;STRONG&gt;LinkedIn:&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;A href="https://www.linkedin.com/in/vahid-dm/" target="_blank"&gt;www.linkedin.com/in/vahid-dm/&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 10:35:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Error-The-expression-refres-to-multiple-columns-assistance/m-p/2182613#M50826</guid>
      <dc:creator>VahidDM</dc:creator>
      <dc:date>2021-11-10T10:35:33Z</dc:date>
    </item>
  </channel>
</rss>

