<?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: Column total and HASONEVALUE in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-total-and-HASONEVALUE/m-p/2831755#M90239</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apparently the HASONEVALUE was not needed, the row subtotals are correct with it removed, but the column subtotal is still wrong i.e I get the same result.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Oct 2022 17:04:06 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-10-10T17:04:06Z</dc:date>
    <item>
      <title>Column total and HASONEVALUE</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-total-and-HASONEVALUE/m-p/2831234#M90206</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this measure that is calculating the row total (per counterparty) based on another measure [P/L].&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;However, the column total is wrong so how can I include the date dimension to the measure in order for the column total to add up correctly? (-5.748 - 5.031 - 3.168 - 38 -37 -38) = -14.660). Can also the date be included in the HASONEVALUE -function in some way?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 13:48:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-total-and-HASONEVALUE/m-p/2831234#M90206</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-10T13:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Column total and HASONEVALUE</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-total-and-HASONEVALUE/m-p/2831685#M90231</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt; , remove if and hasonevalue code and just try sumx(Value(.....)&amp;nbsp; code &lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 16:18:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-total-and-HASONEVALUE/m-p/2831685#M90231</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2022-10-10T16:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: Column total and HASONEVALUE</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-total-and-HASONEVALUE/m-p/2831755#M90239</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apparently the HASONEVALUE was not needed, the row subtotals are correct with it removed, but the column subtotal is still wrong i.e I get the same result.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 17:04:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-total-and-HASONEVALUE/m-p/2831755#M90239</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-10T17:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: Column total and HASONEVALUE</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-total-and-HASONEVALUE/m-p/2832929#M90315</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As far as I know, column subtotal is based on the column in Matrix column field (MonthName). So here I suggest you to add the whole table in SUMX().&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = SUMX(TransactionDaily,[P/L])&lt;/LI-CODE&gt;
&lt;P&gt;My Sample:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;P/L = MAX(TransactionDaily[Value])&lt;/LI-CODE&gt;
&lt;P&gt;If I use the measure as yours above, I will get same error in column subtotal. If I use mine, it works. Result is as below.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Rico Zhou&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2022 06:20:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-total-and-HASONEVALUE/m-p/2832929#M90315</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-11T06:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: Column total and HASONEVALUE</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-total-and-HASONEVALUE/m-p/2834083#M90362</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;, thanks for your input.&lt;BR /&gt;&lt;BR /&gt;The measure [P/L] is calculated using values from two different tables.&lt;BR /&gt;&lt;BR /&gt;As in this simplified example, volumes from one table and prices from another table.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Measure for the total&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;P/L and P/L Total shows both wrong totals.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2022 12:58:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-total-and-HASONEVALUE/m-p/2834083#M90362</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-11T12:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: Column total and HASONEVALUE</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-total-and-HASONEVALUE/m-p/2834663#M90401</link>
      <description>&lt;P&gt;Apparently just adding the whole table in SUMX works in my simplified example,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;but when doing it in the real case I just receive a blank matrix with no values.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2022 17:20:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Column-total-and-HASONEVALUE/m-p/2834663#M90401</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-10-11T17:20:54Z</dc:date>
    </item>
  </channel>
</rss>

