<?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 Total on dynamic measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Total-on-dynamic-measure/m-p/2891133#M93838</link>
    <description>&lt;P&gt;Hi&lt;BR /&gt;&lt;BR /&gt;I'm working on a dataset for sales dept. In our business we have both internal and external sales both present in the datamodel, summed up in a single measure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a Dimension named transaction_type that contains a value for internal/external&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The business would like that the sales measure show only external sales, unless filtered on internal, or transaction type being used within a visualization.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using SelectedValue I can build the measure to show only external unless filtered on internal or shown in a visualization.&lt;BR /&gt;&lt;BR /&gt;Sadly this shows the wrong total in the cases where both internal and external is present.&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I understand why the total is showing as only External (because the total is not a selectedvalue and therefore reverts to "Eksternal")&lt;BR /&gt;&lt;BR /&gt;Is there a way to force the total to sum up what is actually shown on screen?&lt;/P&gt;</description>
    <pubDate>Tue, 08 Nov 2022 06:30:08 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-11-08T06:30:08Z</dc:date>
    <item>
      <title>Total on dynamic measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Total-on-dynamic-measure/m-p/2891133#M93838</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;&lt;BR /&gt;I'm working on a dataset for sales dept. In our business we have both internal and external sales both present in the datamodel, summed up in a single measure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a Dimension named transaction_type that contains a value for internal/external&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The business would like that the sales measure show only external sales, unless filtered on internal, or transaction type being used within a visualization.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using SelectedValue I can build the measure to show only external unless filtered on internal or shown in a visualization.&lt;BR /&gt;&lt;BR /&gt;Sadly this shows the wrong total in the cases where both internal and external is present.&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I understand why the total is showing as only External (because the total is not a selectedvalue and therefore reverts to "Eksternal")&lt;BR /&gt;&lt;BR /&gt;Is there a way to force the total to sum up what is actually shown on screen?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 06:30:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Total-on-dynamic-measure/m-p/2891133#M93838</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-08T06:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: Total on dynamic measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Total-on-dynamic-measure/m-p/2891306#M93851</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Table totals use dax calculation to get their values and thus aren't considering what is happening within the visual. Because of this I don't think you can get your calculation to sum external values when a visual is not filtered and the same time calculate total values for both internal and external.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;For more information on totals check this article by SQLBI:&amp;nbsp;&lt;A href="https://www.sqlbi.com/articles/obtaining-accurate-totals-in-dax/" target="_blank" rel="noopener"&gt;Obtaining accurate totals in DAX - SQLBI&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 09:49:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Total-on-dynamic-measure/m-p/2891306#M93851</guid>
      <dc:creator>ValtteriN</dc:creator>
      <dc:date>2022-11-14T09:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: Total on dynamic measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Total-on-dynamic-measure/m-p/2894183#M94028</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You can create&amp;nbsp;&lt;STRONG&gt;another new measure&lt;/STRONG&gt;&amp;nbsp;as below and put this new measure to&amp;nbsp;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;replace&lt;/STRONG&gt;&amp;nbsp;&lt;/FONT&gt;the original measure&amp;nbsp;onto the table visual...&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;New Measure =
SUMX (
    VALUES ( 'dim_transaction_type'[TransactionTypeCode] ),
    [Invoiced Amount]
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;In addition, you can refer the following links to try to solve your problem...&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DRii_6qkLNh8&amp;amp;data=05%7C01%7Cv-yiruan%40microsoft.com%7Cc07340e98cdc4c049cc708da85ad0a16%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637969275518231092%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=sllOPElQkaqNE9rZJ%2BSoa5CwiBe%2B5dKX82yZXHC1LYg%3D&amp;amp;reserved=0" target="_blank" rel="nofollow noopener noreferrer"&gt;Why Your Total Is Incorrect In Power BI - The Key DAX Concept To Understand&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DKa7Ds4EAjNQ&amp;amp;data=05%7C01%7Cv-yiruan%40microsoft.com%7Cc07340e98cdc4c049cc708da85ad0a16%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637969275518231092%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=nMcFp5Gp2TDaRdU7BMHy7Td528EaRtr1IrqN%2BOdQboA%3D&amp;amp;reserved=0" target="_blank" rel="nofollow noopener noreferrer"&gt;Dax for Power BI: Fixing Incorrect Measure Totals&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the above one can't help you get the desired result, please provide some&amp;nbsp;&lt;STRONG&gt;sample data&lt;/STRONG&gt;&amp;nbsp;in your table &lt;STRONG&gt;'fact_sales_invoice_line'&lt;/STRONG&gt; and&amp;nbsp; '&lt;STRONG&gt;dim_transaction_type&lt;/STRONG&gt;' (&lt;STRONG&gt;&lt;EM&gt;exclude&amp;nbsp;sensitive&amp;nbsp;data&lt;/EM&gt;&lt;/STRONG&gt;) with&amp;nbsp;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Text&lt;/STRONG&gt;&amp;nbsp;&lt;/FONT&gt;format and your&amp;nbsp;&lt;STRONG&gt;expected result&lt;/STRONG&gt;&amp;nbsp;with backend logic and special examples. By the way, is there any relationship created between the table&amp;nbsp;&lt;STRONG&gt;'fact_sales_invoice_line'&lt;/STRONG&gt; and&amp;nbsp; '&lt;STRONG&gt;dim_transaction_type&lt;/STRONG&gt;'?&lt;FONT color="#FF0000"&gt;&amp;nbsp;&lt;STRONG&gt;It is better&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp;if you can share a&amp;nbsp;&lt;FONT color="#008000"&gt;&lt;STRONG&gt;simplified&lt;/STRONG&gt;&amp;nbsp;&lt;/FONT&gt;pbix file. You can refer the following link to upload the file to the community. Thank you.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FDesktop%2FHow-to-upload-PBI-in-Community%2Fm-p%2F1672886&amp;amp;data=05%7C01%7Cv-yiruan%40microsoft.com%7C52042a9abdcb4f87992108da9226a782%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637982991998684943%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=UtrFZ3zCvCcIHUi%2FVD3ptir0IqV85%2BozKiH9HbdDJHc%3D&amp;amp;reserved=0" target="_blank" rel="nofollow noopener noreferrer"&gt;How to upload PBI in Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 03:27:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Total-on-dynamic-measure/m-p/2894183#M94028</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-09T03:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: Total on dynamic measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Total-on-dynamic-measure/m-p/2903142#M94614</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Whether your problem has been resolved? If yes, could you please mark the helpful post as &lt;STRONG&gt;&lt;SPAN&gt;Answered&lt;/SPAN&gt;&lt;/STRONG&gt;? It will help the others in the community find the solution easily if they face the same problem as yours. Thank you.&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 08:47:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Total-on-dynamic-measure/m-p/2903142#M94614</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-14T08:47:18Z</dc:date>
    </item>
  </channel>
</rss>

