<?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: Switching two measures in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switching-two-measures/m-p/948199#M10479</link>
    <description>if( selectedvalue(date_invoice[month], 100) &amp;lt; 4, ...)</description>
    <pubDate>Wed, 26 Feb 2020 06:05:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-02-26T06:05:57Z</dc:date>
    <item>
      <title>Switching two measures</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switching-two-measures/m-p/948144#M10475</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having a problem in this measure. It says in the report: A table of multiple values was supplied where a single value was expected. So my target is to switch the measures when the invoice months is (Jan,Feb,Mar). The error pop-up when there is no selected month. Is it possible to display it monthly?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dealer Base (Tenured):&lt;/STRONG&gt;=&amp;nbsp;IF(VALUES(DATE_INVOICE[MONTH]) &amp;lt; 4, [Dealer Base Tenured], CALCULATE([Dealer Base1], FACT_OFF_TAKE[DL_CLASSIFICATION] = "TENURED"))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SUB METRICS&lt;/EM&gt;:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dealer Base1:&lt;/STRONG&gt;=CALCULATE(DISTINCTCOUNT(DIM_DEALERS[DEALERS_KEY]), FILTER(DIM_DEALERS,NOT(ISBLANK([Transaction Count DealerBase]))))&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dealer Base OLD:&lt;/STRONG&gt;=CALCULATE(DISTINCTCOUNT(DIM_DEALERS[DEALERS_KEY]), FILTER(DIM_DEALERS,NOT(ISBLANK([Transaction Count P4M]))))&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dealer Base Tenured:&lt;/STRONG&gt;=CALCULATE([Dealer Base OLD], ALL(FACT_OFF_TAKE[DL_CLASSIFICATION])) - CALCULATE([Dealer Base1], FACT_OFF_TAKE[DL_CLASSIFICATION] = "CURRENT YEAR RECRUITS")&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 05:09:15 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switching-two-measures/m-p/948144#M10475</guid>
      <dc:creator>kmagat</dc:creator>
      <dc:date>2020-02-26T05:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: Switching two measures</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switching-two-measures/m-p/948199#M10479</link>
      <description>if( selectedvalue(date_invoice[month], 100) &amp;lt; 4, ...)</description>
      <pubDate>Wed, 26 Feb 2020 06:05:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switching-two-measures/m-p/948199#M10479</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-26T06:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: Switching two measures</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switching-two-measures/m-p/948447#M10488</link>
      <description>&lt;P&gt;I have already solve this problem.&amp;nbsp;&lt;BR /&gt;Instead of using values, I used &lt;STRONG&gt;LASTNONBLANK.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;IF(LASTNONBLANK(DATE_INVOICE[MONTH], DATE_INVOICE[MONTH] &amp;lt; 4), [Dealer Base Tenured], CALCULATE([Dealer Base1], FACT_OFF_TAKE[DL_CLASSIFICATION] = "TENURED"))&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 08:42:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Switching-two-measures/m-p/948447#M10488</guid>
      <dc:creator>kmagat</dc:creator>
      <dc:date>2020-02-26T08:42:59Z</dc:date>
    </item>
  </channel>
</rss>

