<?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: Help with PVM totals (not adding column correctly) plus a twist in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-PVM-totals-not-adding-column-correctly-plus-a-twist/m-p/3485925#M133396</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="633107" data-lia-user-login="Neogeo2" class="lia-mention lia-mention-user"&gt;Neogeo2&lt;/a&gt;&amp;nbsp;If you're experiencing issues with the column totals, it could be due to various factors. Kindly check to ensure your column totals are correct.&lt;/P&gt;&lt;P&gt;1 - Ensure that the data type of the 'Var $/tn Actual LM' column is set as a numeric type (e.g., decimal or currency)&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2 -Verify that there are no filters applied to the visual or report page that might be affecting the column totals.&lt;/P&gt;&lt;P&gt;3 - Check that the column total is not being affected by slicers, filters, or drill-through actions in your report.&lt;/P&gt;&lt;P&gt;4 -&amp;nbsp; Double-check the aggregation type of the 'Fact Freight Details'[Qty] and 'Fact Freight Details'[Var $/tn Actual LM] columns. They should be set to "Sum" or the appropriate aggregation method.&lt;/P&gt;&lt;P&gt;5 -&amp;nbsp;Ensure there are no blank or null values in the 'Fact Freight Details'[Qty] and 'Fact Freight Details'[Var $/tn Actual LM] columns, as these can affect the calculations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you've confirmed that these factors are not causing the issue, and the row-level calculations are correct while the column totals are not, please provide me more details about the specific issue you're facing or any error messages you might be encountering.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Does this answer your question? Please mark my post as a solution!&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Or did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 19 Oct 2023 15:57:07 GMT</pubDate>
    <dc:creator>DallasBaba</dc:creator>
    <dc:date>2023-10-19T15:57:07Z</dc:date>
    <item>
      <title>Help with PVM totals (not adding column correctly) plus a twist</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-PVM-totals-not-adding-column-correctly-plus-a-twist/m-p/3484321#M133294</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P class=""&gt;I currently have the Rates column in the brackets, its the Price variance of the PVM formula set. The rows is calculated correctly but not the column itself, which i believe is a common power BI feature.&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;How do i get it to add up the column instead of applying the formula to the row (Qty &amp;amp; Rate Variance)?&lt;/P&gt;&lt;P class=""&gt;&lt;STRONG&gt;&lt;EM&gt;Here is the twist. What if i want to have the categories (currently plant and materials) dynamic eg what if i want to insert Customers in later or add address in or take Materials away...etc.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;I'm such a noob, any help or tips would be awesome help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Currently formula is:

PVM Rate $ Impact Var LM ROW =
if(
and(
sumx('Fact Freight Details','Fact Freight Details'[QTY])&amp;lt;&amp;gt;0,
'Fact Freight Details'[QTY LM]&amp;lt;&amp;gt;0
),
sumx(
'Fact Freight Details',
'Fact Freight Details'[QTY]
)*
'Fact Freight Details'[Var $/tn Actual LM],
0
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 23:14:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-PVM-totals-not-adding-column-correctly-plus-a-twist/m-p/3484321#M133294</guid>
      <dc:creator>Neogeo2</dc:creator>
      <dc:date>2023-10-18T23:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: Help with PVM totals (not adding column correctly) plus a twist</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-PVM-totals-not-adding-column-correctly-plus-a-twist/m-p/3484702#M133312</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="633107" data-lia-user-login="Neogeo2" class="lia-mention lia-mention-user"&gt;Neogeo2&lt;/a&gt;&amp;nbsp;First,&amp;nbsp;&lt;SPAN&gt;Let's address the issue with calculating the total price variance. You can use SUMX to c&lt;/SPAN&gt;&lt;SPAN&gt;alculate the total Price Variance (PVM Rate $ Impact Var LM) for your data:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Total PVM Rate $ Impact Var LM = 
SUMX('Fact Freight Details', 'Fact Freight Details'[Qty] * 'Fact Freight Details'[Rate Variance])&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;Now, for the dynamic categories (Plant and Material), you can create a more flexible model&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1 -&amp;nbsp;Now, for your twist regarding dynamic categories (Plant and Material), you can create a more flexible model&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2 -&amp;nbsp;Create a "Data" table that contains the actual data, including a column that specifies the category for each row (e.g., 'Category' column).&lt;BR /&gt;3 -Establish a relationship between the "Category" table and the "Data" table using the 'Category' column.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;4 -&amp;nbsp;Modify your DAX measures to consider the selected category dynamically. For example:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Total PVM Rate $ Impact Var LM = 
VAR SelectedCategory = SELECTEDVALUE('Category'[Category])
RETURN
SUMX(
    FILTER('Data', 'Data'[Category] = SelectedCategory),
    'Data'[Qty] * 'Data'[Rate Variance]
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Let me know if this work&lt;BR /&gt;@ me in replies, or I'll lose your thread!!!&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 05:54:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-PVM-totals-not-adding-column-correctly-plus-a-twist/m-p/3484702#M133312</guid>
      <dc:creator>DallasBaba</dc:creator>
      <dc:date>2023-10-19T05:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: Help with PVM totals (not adding column correctly) plus a twist</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-PVM-totals-not-adding-column-correctly-plus-a-twist/m-p/3484725#M133314</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="446607" data-lia-user-login="DallasBaba" class="lia-mention lia-mention-user"&gt;DallasBaba&lt;/a&gt;&amp;nbsp;Thansk for the suggestion on using sumx.&lt;/P&gt;&lt;P&gt;Unfortunatley its already using sumx. The rows are coming up correctly as in the screenshot. however the totals are not.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me digest a bit on the 2nd solution you mentioned, i'm still very new to this whole thing.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 06:06:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-PVM-totals-not-adding-column-correctly-plus-a-twist/m-p/3484725#M133314</guid>
      <dc:creator>Neogeo2</dc:creator>
      <dc:date>2023-10-19T06:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: Help with PVM totals (not adding column correctly) plus a twist</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-PVM-totals-not-adding-column-correctly-plus-a-twist/m-p/3485925#M133396</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="633107" data-lia-user-login="Neogeo2" class="lia-mention lia-mention-user"&gt;Neogeo2&lt;/a&gt;&amp;nbsp;If you're experiencing issues with the column totals, it could be due to various factors. Kindly check to ensure your column totals are correct.&lt;/P&gt;&lt;P&gt;1 - Ensure that the data type of the 'Var $/tn Actual LM' column is set as a numeric type (e.g., decimal or currency)&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2 -Verify that there are no filters applied to the visual or report page that might be affecting the column totals.&lt;/P&gt;&lt;P&gt;3 - Check that the column total is not being affected by slicers, filters, or drill-through actions in your report.&lt;/P&gt;&lt;P&gt;4 -&amp;nbsp; Double-check the aggregation type of the 'Fact Freight Details'[Qty] and 'Fact Freight Details'[Var $/tn Actual LM] columns. They should be set to "Sum" or the appropriate aggregation method.&lt;/P&gt;&lt;P&gt;5 -&amp;nbsp;Ensure there are no blank or null values in the 'Fact Freight Details'[Qty] and 'Fact Freight Details'[Var $/tn Actual LM] columns, as these can affect the calculations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you've confirmed that these factors are not causing the issue, and the row-level calculations are correct while the column totals are not, please provide me more details about the specific issue you're facing or any error messages you might be encountering.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Does this answer your question? Please mark my post as a solution!&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Or did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 15:57:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-with-PVM-totals-not-adding-column-correctly-plus-a-twist/m-p/3485925#M133396</guid>
      <dc:creator>DallasBaba</dc:creator>
      <dc:date>2023-10-19T15:57:07Z</dc:date>
    </item>
  </channel>
</rss>

