<?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: Issue with HASONEVALUE. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-HASONEVALUE/m-p/2130905#M48895</link>
    <description>&lt;P&gt;when you selected two locations, in the filter context of card visual there are two values then it got a zero.&lt;/P&gt;
&lt;P&gt;but in the bar visual, each bar represents one location, so it always has one value.&lt;/P&gt;</description>
    <pubDate>Wed, 13 Oct 2021 01:27:57 GMT</pubDate>
    <dc:creator>wdx223_Daniel</dc:creator>
    <dc:date>2021-10-13T01:27:57Z</dc:date>
    <item>
      <title>Issue with HASONEVALUE.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-HASONEVALUE/m-p/2130607#M48891</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am new to Power BI. I am having really tough time understaing some DAX functions like HASONEVALUE.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am attempting to use this function like below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I have choosed 2 location and still I can see the Bar graph but the card shows zero. Why is it not working for the bar graph? My understanding is that, if you choose 2 options in slicer, essentially it should not work. Please suggest. My DAX is:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Hasonevalue 1 = IF(HASONEVALUE(data[Location]), SUM(data[Sales Amount]),0)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sid&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 12 Oct 2021 20:24:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-HASONEVALUE/m-p/2130607#M48891</guid>
      <dc:creator>SDVN</dc:creator>
      <dc:date>2021-10-12T20:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with HASONEVALUE.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-HASONEVALUE/m-p/2130905#M48895</link>
      <description>&lt;P&gt;when you selected two locations, in the filter context of card visual there are two values then it got a zero.&lt;/P&gt;
&lt;P&gt;but in the bar visual, each bar represents one location, so it always has one value.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Oct 2021 01:27:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Issue-with-HASONEVALUE/m-p/2130905#M48895</guid>
      <dc:creator>wdx223_Daniel</dc:creator>
      <dc:date>2021-10-13T01:27:57Z</dc:date>
    </item>
  </channel>
</rss>

