<?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: Power BI: Multiply two columns regardless of filters applied and without summarising in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Multiply-two-columns-regardless-of-filters-applied-and/m-p/4281464#M169906</link>
    <description>&lt;P&gt;Thank you for getting back Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do have two tables and they are both joined on the month column, however, in table 'Expected', there is a column called Month week so each month is split into different weeks. Therefore, the data from table 'Expected Claims' gets split (repeated) into many.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I tried the formula above by replacing 'movement groups' with 'month' column but again it is giving me the same number I have shown in my result example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just to add 'Movement Date groups' comes from a third table that is connected to the table 'Expected' but not 'Expected Claims'.&lt;/P&gt;</description>
    <pubDate>Wed, 13 Nov 2024 10:05:04 GMT</pubDate>
    <dc:creator>jeesan1234</dc:creator>
    <dc:date>2024-11-13T10:05:04Z</dc:date>
    <item>
      <title>Power BI: Multiply two columns regardless of filters applied and without summarising</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Multiply-two-columns-regardless-of-filters-applied-and/m-p/4279840#M169844</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;I have two columns 'ExpectedClaimsPerDay' and 'Number of Working Days' as shown in the image example below:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Movement Date.Movement Date (groups)&lt;/TD&gt;&lt;TD&gt;Sum of Net Earned Premium&lt;/TD&gt;&lt;TD&gt;Sum of Total NLR&lt;/TD&gt;&lt;TD&gt;Total Claims&lt;/TD&gt;&lt;TD&gt;TotalWorkingDaysInMonth&lt;/TD&gt;&lt;TD&gt;Number of Working Days&lt;/TD&gt;&lt;TD&gt;ExpectedClaimsPerDay&lt;/TD&gt;&lt;TD&gt;Expected Claims&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;September 27th - 1st&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 120,528.16&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.61&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 73,051.77&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 15.00&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3.00&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4,870.12&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 379,869.18&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Power BI, I want to multiple the two columns and I tried using the formula:&lt;/P&gt;&lt;P&gt;Expected Claims = ('Expected Claims'[ExpectedClaimsPerDay])*(SUM(Expected[Number of Working Days]))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, this as you can see in the image is not giving me the correct results as it summing all the 'Number of Working Days'. And if I don't use sum, it is giving me errors as it is expecting a single value. I have tried using distinct but that breaks the visuals as there are multiple 'Movement Date (groups)' selected in the filter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want, regardless of the filter applied, whatever is in 'Number of working days' without summing or anything, multiply whatever is in 'ExpectedClaimsPerDay'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just to add the above formula works when I use DISTINCT instead of SUM, but it breaks if multiple Movement Group Dates are selected in the filter. It only works if I pick one.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 13 Nov 2024 09:42:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Multiply-two-columns-regardless-of-filters-applied-and/m-p/4279840#M169844</guid>
      <dc:creator>jeesan1234</dc:creator>
      <dc:date>2024-11-13T09:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI: Multiply two columns regardless of filters applied and without summarising</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Multiply-two-columns-regardless-of-filters-applied-and/m-p/4279921#M169849</link>
      <description>&lt;P&gt;Try this -&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=""&gt;Expected Claims = SUMX(
    'Expected Claims',
    'Expected Claims'[ExpectedClaimsPerDay] * 'Expected Claims'[Number of Working Days]
)&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Nov 2024 13:53:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Multiply-two-columns-regardless-of-filters-applied-and/m-p/4279921#M169849</guid>
      <dc:creator>Kaviraj11</dc:creator>
      <dc:date>2024-11-12T13:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI: Multiply two columns regardless of filters applied and without summarising</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Multiply-two-columns-regardless-of-filters-applied-and/m-p/4280127#M169860</link>
      <description>&lt;P&gt;I tried that but it is giving me an error on 'Number of Working days' saying: 'Cannot find name'. I believe it is expecting some sort of aggregation (which is something I don't want).&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2024 15:42:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Multiply-two-columns-regardless-of-filters-applied-and/m-p/4280127#M169860</guid>
      <dc:creator>jeesan1234</dc:creator>
      <dc:date>2024-11-12T15:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI: Multiply two columns regardless of filters applied and without summarising</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Multiply-two-columns-regardless-of-filters-applied-and/m-p/4281227#M169898</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="821880" data-lia-user-login="jeesan1234" class="lia-mention lia-mention-user"&gt;jeesan1234&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your statement, I think there are at least two tables '&lt;SPAN&gt;Expected Claims&lt;/SPAN&gt;' and&amp;nbsp;'&lt;SPAN&gt;Expected‘&lt;/SPAN&gt; in your data model.&lt;/P&gt;
&lt;P&gt;I think there should be a relationship between '&lt;SPAN&gt;Expected Claims&lt;/SPAN&gt;' (many) and&amp;nbsp;'&lt;SPAN&gt;Expected‘&lt;/SPAN&gt;&amp;nbsp;(one) tables.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So when you use SUM() to get number of workday from&amp;nbsp;'&lt;SPAN&gt;Expected‘, it will return a summarize result.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;In my sample, I create relationship between [Movement Date.Movement Date (groups)] columns.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Here I suggest you to try code as below to create a measure. If the related column is not&amp;nbsp;[Movement Date.Movement Date (groups)] you can change the column in _WorkDay code part.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Expected Claims = 
VAR _WorkDay =
    CALCULATE (
        SUM ( Expected[Number of Working Days] ),
        FILTER (
            ALLSELECTED ( Expected ),
            Expected[Movement Date.Movement Date (groups)]
                = MAX ( 'Expected Claims'[Movement Date.Movement Date (groups)] )
        )
    )
RETURN
    SUMX (
        VALUES ( 'Expected Claims'[Movement Date.Movement Date (groups)] ),
        'Expected Claims'[ExpectedClaimsPerDay] * _WorkDay
    )&lt;/LI-CODE&gt;
&lt;P&gt;Result is as below.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;You can download my sample file to learn more details.&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2024 07:06:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Multiply-two-columns-regardless-of-filters-applied-and/m-p/4281227#M169898</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-13T07:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI: Multiply two columns regardless of filters applied and without summarising</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Multiply-two-columns-regardless-of-filters-applied-and/m-p/4281464#M169906</link>
      <description>&lt;P&gt;Thank you for getting back Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do have two tables and they are both joined on the month column, however, in table 'Expected', there is a column called Month week so each month is split into different weeks. Therefore, the data from table 'Expected Claims' gets split (repeated) into many.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I tried the formula above by replacing 'movement groups' with 'month' column but again it is giving me the same number I have shown in my result example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just to add 'Movement Date groups' comes from a third table that is connected to the table 'Expected' but not 'Expected Claims'.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2024 10:05:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Multiply-two-columns-regardless-of-filters-applied-and/m-p/4281464#M169906</guid>
      <dc:creator>jeesan1234</dc:creator>
      <dc:date>2024-11-13T10:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: Power BI: Multiply two columns regardless of filters applied and without summarising</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Multiply-two-columns-regardless-of-filters-applied-and/m-p/4282729#M169973</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="821880" data-lia-user-login="jeesan1234" class="lia-mention lia-mention-user"&gt;jeesan1234&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please share a sample file with us and show us a screenshot with the result you want. This will make it easier for us to find the solution.&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>Thu, 14 Nov 2024 01:31:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Power-BI-Multiply-two-columns-regardless-of-filters-applied-and/m-p/4282729#M169973</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-14T01:31:59Z</dc:date>
    </item>
  </channel>
</rss>

