<?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: Calculate Net Value Based on Criteria in Different Column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Net-Value-Based-on-Criteria-in-Different-Column/m-p/3814016#M149166</link>
    <description>&lt;P&gt;I figured out that the blank value needs to be null for isblank to work&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Apr 2024 15:31:02 GMT</pubDate>
    <dc:creator>GMadd</dc:creator>
    <dc:date>2024-04-05T15:31:02Z</dc:date>
    <item>
      <title>Calculate Net Value Based on Criteria in Different Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Net-Value-Based-on-Criteria-in-Different-Column/m-p/3811921#M149074</link>
      <description>&lt;P&gt;I need either a calculated column or a measure to give me the net value based on if Delivery in my table as a TU partner assigned or not. End result is to have a table visual that displays the Net Value of deliveries that have TU Partner assigned along with the count of the deliveries&amp;nbsp; and also the Net value of deliveries with TU partner assigned and the count of those deliveries.&amp;nbsp; My data table looks like this below&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Delivery&lt;/TD&gt;&lt;TD&gt;TU partner&lt;/TD&gt;&lt;TD&gt;Net value&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;88044253&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;$63,329&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;88044210&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;$9,452&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;88044245&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;$28,372&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;88047823&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;$4,638&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;88048741&lt;/TD&gt;&lt;TD&gt;UPSG&lt;/TD&gt;&lt;TD&gt;$287&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;88048765&lt;/TD&gt;&lt;TD&gt;UPSG&lt;/TD&gt;&lt;TD&gt;$428&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;88048979&lt;/TD&gt;&lt;TD&gt;FDEG&lt;/TD&gt;&lt;TD&gt;$154&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My end result for my table visial should look something like below.&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Value of Deliveries No TU Partner&lt;/TD&gt;&lt;TD&gt;Count of Deliveries No TU Partner&lt;/TD&gt;&lt;TD&gt;Value of Deliveries TU Partner&lt;/TD&gt;&lt;TD&gt;Count of Deliveries TU Partner&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;101,153&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;$5,507&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to use a calculated column below but when I created another column to give me the value for the deliveries that had a TU Partner it gave me a circular reference error.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Value No Carrier Assigned =&lt;/SPAN&gt; &lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SUM&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Daily Tracking'&lt;/SPAN&gt;&lt;SPAN&gt;[Net value]&lt;/SPAN&gt;&lt;SPAN&gt;),(&lt;/SPAN&gt;&lt;SPAN&gt;'Daily Tracking'&lt;/SPAN&gt;&lt;SPAN&gt;[TU partner]&lt;/SPAN&gt;&lt;SPAN&gt; =&lt;/SPAN&gt;&lt;SPAN&gt;""&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thanks for your help&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 04 Apr 2024 20:12:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Net-Value-Based-on-Criteria-in-Different-Column/m-p/3811921#M149074</guid>
      <dc:creator>GMadd</dc:creator>
      <dc:date>2024-04-04T20:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Net Value Based on Criteria in Different Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Net-Value-Based-on-Criteria-in-Different-Column/m-p/3811973#M149081</link>
      <description>&lt;P&gt;You could add a calculated &lt;STRONG&gt;column&lt;/STRONG&gt; as follows:&lt;/P&gt;&lt;P&gt;TU Partner Flag = IF(ISBLANK(&lt;SPAN&gt;'Daily Tracking'&lt;/SPAN&gt;&lt;SPAN&gt;[TU partner]), "N", "Y")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Then build out your metrics as calculated &lt;STRONG&gt;measures&lt;/STRONG&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Value of deliveries no TU Partner = CALCULATE(SUM('Daily Tracking'[Net value]),('Daily Tracking'[TU Partner Flag]&amp;nbsp;="N"))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Count of deliveries no TU Partner = CALCULATE(COUNT('Daily Tracking'[Net value]),('Daily Tracking'[TU Partner Flag]&amp;nbsp;="N"))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Value of deliveries TU Partner = CALCULATE(SUM('Daily Tracking'[Net value]),('Daily Tracking'[TU Partner Flag]&amp;nbsp;="Y"))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Count of deliveries TU Partner = CALCULATE(COUNT('Daily Tracking'[Net value]),('Daily Tracking'[TU Partner Flag]&amp;nbsp;="Y"))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 21:01:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Net-Value-Based-on-Criteria-in-Different-Column/m-p/3811973#M149081</guid>
      <dc:creator>hansontm</dc:creator>
      <dc:date>2024-04-04T21:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Net Value Based on Criteria in Different Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Net-Value-Based-on-Criteria-in-Different-Column/m-p/3812419#M149102</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="663206" data-lia-user-login="GMadd" class="lia-mention lia-mention-user"&gt;GMadd&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can created below calculated table:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table 2 = 
VAR no_TU =
    CALCULATE ( SUM ( 'Table'[Net value] ), 'Table'[TU partner] = BLANK () )
VAR TU =
    CALCULATE ( SUM ( 'Table'[Net value] ), 'Table'[TU partner] &amp;lt;&amp;gt; BLANK () )
VAR count_no_TU =
    CALCULATE ( COUNTROWS ( 'Table' ), 'Table'[TU partner] = BLANK () )
VAR count__TU =
    CALCULATE ( COUNTROWS ( 'Table' ), 'Table'[TU partner] &amp;lt;&amp;gt; BLANK () )
RETURN
    SUMMARIZE (
        'Table',
        "Value of Deliveries No TU", no_TU,
        "Count of Deliveries No TU", TU,
        "Value of Deliveries TU", count_no_TU,
        "Count of Deliveries TU", count__TU
    )
&lt;/LI-CODE&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;Adamk Kong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 03:06:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Net-Value-Based-on-Criteria-in-Different-Column/m-p/3812419#M149102</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-04-05T03:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Net Value Based on Criteria in Different Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Net-Value-Based-on-Criteria-in-Different-Column/m-p/3813900#M149163</link>
      <description>&lt;P&gt;hansontm,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i tried the calculated column but it returns a value of Y for every cell in TU partner if it as data in it or not.&lt;/P&gt;&lt;P&gt;Any idea why?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 14:33:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Net-Value-Based-on-Criteria-in-Different-Column/m-p/3813900#M149163</guid>
      <dc:creator>GMadd</dc:creator>
      <dc:date>2024-04-05T14:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Net Value Based on Criteria in Different Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Net-Value-Based-on-Criteria-in-Different-Column/m-p/3814016#M149166</link>
      <description>&lt;P&gt;I figured out that the blank value needs to be null for isblank to work&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 15:31:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Net-Value-Based-on-Criteria-in-Different-Column/m-p/3814016#M149166</guid>
      <dc:creator>GMadd</dc:creator>
      <dc:date>2024-04-05T15:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Net Value Based on Criteria in Different Column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Net-Value-Based-on-Criteria-in-Different-Column/m-p/3817900#M149308</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="663206" data-lia-user-login="GMadd" class="lia-mention lia-mention-user"&gt;GMadd&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ISBLANK function for the text type and numerical type of the field there is a difference in the results of the judgment, refer to the following:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;result_ = IF(ISBLANK('Table'[Column2]),1,0)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Adamk Kong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 06:21:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-Net-Value-Based-on-Criteria-in-Different-Column/m-p/3817900#M149308</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-04-08T06:21:01Z</dc:date>
    </item>
  </channel>
</rss>

