<?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: Tax report sometimes doubles taxes in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tax-report-sometimes-doubles-taxes/m-p/4069717#M161574</link>
    <description>&lt;P&gt;Oh thanks.&amp;nbsp; I was so exited that the rows were working that I missed the total.&amp;nbsp; Thanks for picking that up.&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jul 2024 18:08:28 GMT</pubDate>
    <dc:creator>BudMan512</dc:creator>
    <dc:date>2024-07-30T18:08:28Z</dc:date>
    <item>
      <title>Tax report sometimes doubles taxes</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tax-report-sometimes-doubles-taxes/m-p/4069468#M161559</link>
      <description>&lt;P&gt;I have created a report that computes taxes on taxable sales. Taxes on some transactions are double what they shouId be. I have found this occurs when a transaction contains two of the same Products.&amp;nbsp; Here is an example looking at the&amp;nbsp; table view&amp;nbsp;&lt;/P&gt;&lt;P&gt;Two Rents are billed on Ref_No E101765 for $75 each.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Here is that same transaction on my report view.&lt;/P&gt;&lt;P&gt;The total of Taxable Sales is $150 and the Tax Rate is 7%. so the Sales Tax should be $10.50.&lt;/P&gt;&lt;P&gt;The two transactions above this example have the same problem while the remaining transactions do not.&lt;/P&gt;&lt;P&gt;Below is a link to the report.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bud &amp;amp; Zeke&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;A title="Tax Report" href="https://1drv.ms/u/c/4f83aa2c44fa9c7f/EQ2aewebvDJCq7bK0ct9l0IBU7u6W5XYXubE1qUm_uPfbg?e=9x23az" target="_self"&gt;https://1drv.ms/u/c/4f83aa2c44fa9c7f/EQ2aewebvDJCq7bK0ct9l0IBU7u6W5XYXubE1qUm_uPfbg?e=9x23az&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 15:26:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tax-report-sometimes-doubles-taxes/m-p/4069468#M161559</guid>
      <dc:creator>BudMan512</dc:creator>
      <dc:date>2024-07-30T15:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: Tax report sometimes doubles taxes</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tax-report-sometimes-doubles-taxes/m-p/4069602#M161565</link>
      <description>&lt;P&gt;This ?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;TaxableSales = 
SUMX(
   DISTINCT(
       FILTER(
                History,
                RELATED(Tax[Tax-No Tax]) = "T"
            )
   ), (History[TOTAL_PRICE])
 )&lt;/LI-CODE&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;You would have to write a similar measure for Quantity as well to move out the duplicates&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 16:42:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tax-report-sometimes-doubles-taxes/m-p/4069602#M161565</guid>
      <dc:creator>SachinNandanwar</dc:creator>
      <dc:date>2024-07-30T16:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: Tax report sometimes doubles taxes</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tax-report-sometimes-doubles-taxes/m-p/4069635#M161566</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="777262" data-lia-user-login="SachinNandanwar" class="lia-mention lia-mention-user"&gt;SachinNandanwar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for looking at this problem.&amp;nbsp; However we are not having a problem with the Taxable Sales but rather with the calculation of the Sales Tax.&amp;nbsp; Even though there are two of the same product, they were correctly billed.&amp;nbsp; The trouble is the Sales Tax are twice as much as they should be.&amp;nbsp; This only occrurs when there are two billings of the same product on one Ref_NO.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 17:00:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tax-report-sometimes-doubles-taxes/m-p/4069635#M161566</guid>
      <dc:creator>BudMan512</dc:creator>
      <dc:date>2024-07-30T17:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: Tax report sometimes doubles taxes</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tax-report-sometimes-doubles-taxes/m-p/4069639#M161567</link>
      <description>&lt;P&gt;If you look the screenshot I posted the Sales Tax comes to 10.50% instead of 21% compared to yours.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 17:04:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tax-report-sometimes-doubles-taxes/m-p/4069639#M161567</guid>
      <dc:creator>SachinNandanwar</dc:creator>
      <dc:date>2024-07-30T17:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: Tax report sometimes doubles taxes</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tax-report-sometimes-doubles-taxes/m-p/4069647#M161569</link>
      <description>&lt;P&gt;Yes the sales tax is correct but the Taxable Sales are $75 and they should be $150.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 17:14:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tax-report-sometimes-doubles-taxes/m-p/4069647#M161569</guid>
      <dc:creator>BudMan512</dc:creator>
      <dc:date>2024-07-30T17:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: Tax report sometimes doubles taxes</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tax-report-sometimes-doubles-taxes/m-p/4069662#M161570</link>
      <description>&lt;P&gt;You can change the measure that calculates the Sales Tax to this&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sales Tax = 

Var _TaxableSales= SUMX(
   DISTINCT(
       FILTER(
                History,
                RELATED(Tax[Tax-No Tax]) = "T"
            )
   ), (History[TOTAL_PRICE])
 )
Return SUMX(
    FILTER(
       History,
        RELATED(Tax[Tax County]) = History[Tax County] &amp;amp;&amp;amp;
        RELATED(Tax[Tax Type]) = History[Tax Type]
    ),
    RELATED(Tax[Tax Rate]) * _TaxableSales /100
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;and keeping your original measure for Taxable Sales as is&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 17:44:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tax-report-sometimes-doubles-taxes/m-p/4069662#M161570</guid>
      <dc:creator>SachinNandanwar</dc:creator>
      <dc:date>2024-07-30T17:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: Tax report sometimes doubles taxes</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tax-report-sometimes-doubles-taxes/m-p/4069685#M161571</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="777262" data-lia-user-login="SachinNandanwar" class="lia-mention lia-mention-user"&gt;SachinNandanwar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks so much for your help.&amp;nbsp; Much appreciated&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 17:42:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tax-report-sometimes-doubles-taxes/m-p/4069685#M161571</guid>
      <dc:creator>BudMan512</dc:creator>
      <dc:date>2024-07-30T17:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Tax report sometimes doubles taxes</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tax-report-sometimes-doubles-taxes/m-p/4069696#M161572</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="299232" data-lia-user-login="BudMan512" class="lia-mention lia-mention-user"&gt;BudMan512&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Just realised that the total for "Sales Tax" is incorrect.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;My gut feeling is that DAX is evaluating the total sales tax row and individual sales tax row in different contexts.Working on a solution to fix it.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 17:53:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tax-report-sometimes-doubles-taxes/m-p/4069696#M161572</guid>
      <dc:creator>SachinNandanwar</dc:creator>
      <dc:date>2024-07-30T17:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: Tax report sometimes doubles taxes</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tax-report-sometimes-doubles-taxes/m-p/4069717#M161574</link>
      <description>&lt;P&gt;Oh thanks.&amp;nbsp; I was so exited that the rows were working that I missed the total.&amp;nbsp; Thanks for picking that up.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 18:08:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tax-report-sometimes-doubles-taxes/m-p/4069717#M161574</guid>
      <dc:creator>BudMan512</dc:creator>
      <dc:date>2024-07-30T18:08:28Z</dc:date>
    </item>
    <item>
      <title>Re: Tax report sometimes doubles taxes</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tax-report-sometimes-doubles-taxes/m-p/4069770#M161576</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="299232" data-lia-user-login="BudMan512" class="lia-mention lia-mention-user"&gt;BudMan512&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Please try this&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Sales Tax = 
SUMX(
    SUMMARIZE(History,
        History[Tax County],
        History[Tax Type],
        History[Quantity],
        Tax[Tax Rate],       
        "TotalPrice", SUMX(
            (               
                    FILTER(
                        History,
                        RELATED(Tax[Tax-No Tax]) = "T" &amp;amp;&amp;amp;
                        RELATED(Tax[Tax County]) = History[Tax County] &amp;amp;&amp;amp;
                        RELATED(Tax[Tax Type]) = History[Tax Type]
                    ) 
              ),
            [TOTAL_PRICE] 
        )
    ),
    [Tax Rate] * [TotalPrice] / 100 
)&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 18:46:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tax-report-sometimes-doubles-taxes/m-p/4069770#M161576</guid>
      <dc:creator>SachinNandanwar</dc:creator>
      <dc:date>2024-07-30T18:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: Tax report sometimes doubles taxes</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tax-report-sometimes-doubles-taxes/m-p/4069835#M161578</link>
      <description>&lt;P&gt;Perfect, thank you&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 19:31:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tax-report-sometimes-doubles-taxes/m-p/4069835#M161578</guid>
      <dc:creator>BudMan512</dc:creator>
      <dc:date>2024-07-30T19:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: Tax report sometimes doubles taxes</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tax-report-sometimes-doubles-taxes/m-p/4069838#M161579</link>
      <description>&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 19:32:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Tax-report-sometimes-doubles-taxes/m-p/4069838#M161579</guid>
      <dc:creator>BudMan512</dc:creator>
      <dc:date>2024-07-30T19:32:38Z</dc:date>
    </item>
  </channel>
</rss>

