<?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: Combining Measures and Spreading Proportional Values based on % of whole in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Combining-Measures-and-Spreading-Proportional-Values-based-on-of/m-p/3990844#M154782</link>
    <description>&lt;P&gt;Thanks Anonymous&lt;/LI-USER&gt;. The one problem is that there is no [Amount] in the 'Offices' table. I tried switching out Offices[Amount] with GLDT[Amount] and I get no results.&lt;/P&gt;&lt;P&gt;Any ideas how to remedy this?&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jun 2024 10:20:20 GMT</pubDate>
    <dc:creator>efstel</dc:creator>
    <dc:date>2024-06-13T10:20:20Z</dc:date>
    <item>
      <title>Combining Measures and Spreading Proportional Values based on % of whole</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Combining-Measures-and-Spreading-Proportional-Values-based-on-of/m-p/3989279#M154642</link>
      <description>&lt;P&gt;I have a group of costs that are allocated throughout 6 areas, however some of those costs are not allocated to any area at all. I want to distribute the unallocated costs proportionally between the 5 or 6 areas based on each areas overall total divided by the sum total of all 6 areas.&lt;/P&gt;&lt;P&gt;I created a measure to determine the % allocation.&lt;/P&gt;&lt;P&gt;%JCIDBilledAmt to OfficeName =&lt;/P&gt;&lt;P&gt;VAR _TotalJCIDBilledAmt =&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; CALCULATE(&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [BilledAmt],&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; All(Offices[OfficeName]) )&lt;/P&gt;&lt;P&gt;RETURN&lt;/P&gt;&lt;P&gt;DIVIDE(&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; [BilledAmt],&lt;/P&gt;&lt;P&gt;_TotalJCIDBilledAmt)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Now… What I want to do is take the $740,992 and multiply it by the 24.67%,… so on, so that amount is spread proportionally over each of the OfficeName.&lt;/P&gt;&lt;P&gt;I ran this formula but it’s not giving me the amount for each area and only giving me a sum total.&lt;/P&gt;&lt;P&gt;GLDTAmount for &amp;lt;Filter&amp;gt; Part3 Null x %JCIDBilledAmt to OfficeName =&lt;/P&gt;&lt;P&gt;[GLDTAmount for &amp;lt;Filter&amp;gt; Part3 Null] * [%JCIDBilledAmt to OfficeName]&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I get that $740,992 spread proportionally?&lt;/P&gt;&lt;P&gt;What I also need to do is add the SumAmount to the spread proportioned amount together.&lt;/P&gt;&lt;P&gt;Any help or insight would be appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2024 17:12:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Combining-Measures-and-Spreading-Proportional-Values-based-on-of/m-p/3989279#M154642</guid>
      <dc:creator>efstel</dc:creator>
      <dc:date>2024-06-12T17:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: Combining Measures and Spreading Proportional Values based on % of whole</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Combining-Measures-and-Spreading-Proportional-Values-based-on-of/m-p/3990052#M154733</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="578204" data-lia-user-login="efstel" class="lia-mention lia-mention-user"&gt;efstel&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on your description, I tried to create a table like yours:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;I created a measure using the following DAX expression:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;GLDTAmount for &amp;lt;Filter&amp;gt; Part3 Null x %JCIDBilledAmt to OfficeName=
VAR _No_allocation =
    CALCULATE (
        SELECTEDVALUE ( Offices[Amount] ),
        'Offices'[OfficeName] = BLANK ()
    )
VAR _office_name =
    SELECTEDVALUE ( Offices[OfficeName] )
VAR _Proportional = [%JCIDBilledAmt to OfficeName]
RETURN
    IF ( _office_name = BLANK (), _No_allocation, _No_allocation * _Proportional )
&lt;/LI-CODE&gt;
&lt;P&gt;Here are the results:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;I've provided the PBIX file used this time below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FCommunity-Blog%2FHow-to-Get-Your-Question-Answered-Quickly%2Fba-p%2F38490&amp;amp;data=05%7C02%7Cv-jianpengli%40microsoft.com%7Cd9552f18a0c94a7564f308dc188bf35e%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638412236574903368%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=3jxUE%2BTNC8dS4DIhPphEB3NA%2BK94pwURGHu%2BXC4eezw%3D&amp;amp;reserved=0" target="_blank"&gt;How to Get Your Question Answered Quickly&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Jianpeng Li&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 03:05:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Combining-Measures-and-Spreading-Proportional-Values-based-on-of/m-p/3990052#M154733</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-13T03:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: Combining Measures and Spreading Proportional Values based on % of whole</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Combining-Measures-and-Spreading-Proportional-Values-based-on-of/m-p/3990844#M154782</link>
      <description>&lt;P&gt;Thanks Anonymous&lt;/a&gt;. The one problem is that there is no [Amount] in the 'Offices' table. I tried switching out Offices[Amount] with GLDT[Amount] and I get no results.&lt;/P&gt;&lt;P&gt;Any ideas how to remedy this?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 10:20:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Combining-Measures-and-Spreading-Proportional-Values-based-on-of/m-p/3990844#M154782</guid>
      <dc:creator>efstel</dc:creator>
      <dc:date>2024-06-13T10:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Combining Measures and Spreading Proportional Values based on % of whole</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Combining-Measures-and-Spreading-Proportional-Values-based-on-of/m-p/3995196#M155173</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="578204" data-lia-user-login="efstel" class="lia-mention lia-mention-user"&gt;efstel&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much for your reply. Based on your description, I've created a new table as follows:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;The relationship is as follows:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;The DAX expression is as follows:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;GLDTAmount for &amp;lt;Filter&amp;gt; Part3 Null x %JCIDBilledAmt to OfficeName = 
VAR _No_allocation = CALCULATE(SELECTEDVALUE('Table'[Amount]),'Offices'[OfficeName]=BLANK())
VAR _office_name = SELECTEDVALUE(Offices[OfficeName])
VAR _Proportional = [%JCIDBilledAmt to OfficeName]
RETURN IF(_office_name=BLANK(),_No_allocation,_No_allocation*_Proportional)&lt;/LI-CODE&gt;
&lt;P&gt;Here are the results:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;I've uploaded the PBIX file I used this time below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.powerbi.com%2Ft5%2FCommunity-Blog%2FHow-to-Get-Your-Question-Answered-Quickly%2Fba-p%2F38490&amp;amp;data=05%7C02%7Cv-jianpengli%40microsoft.com%7Cd9552f18a0c94a7564f308dc188bf35e%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C638412236574903368%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;amp;sdata=3jxUE%2BTNC8dS4DIhPphEB3NA%2BK94pwURGHu%2BXC4eezw%3D&amp;amp;reserved=0" target="_blank"&gt;How to Get Your Question Answered Quickly&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Jianpeng Li&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 02:51:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Combining-Measures-and-Spreading-Proportional-Values-based-on-of/m-p/3995196#M155173</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-17T02:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: Combining Measures and Spreading Proportional Values based on % of whole</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Combining-Measures-and-Spreading-Proportional-Values-based-on-of/m-p/4000664#M155881</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;still not working for me.&amp;nbsp; I have three tables. One has office information, one billing information, one overhead information. I can't get it to spread the unallocated overhead based on the %ofBilledAmounttoOffice.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2024 19:59:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Combining-Measures-and-Spreading-Proportional-Values-based-on-of/m-p/4000664#M155881</guid>
      <dc:creator>efstel</dc:creator>
      <dc:date>2024-06-19T19:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: Combining Measures and Spreading Proportional Values based on % of whole</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Combining-Measures-and-Spreading-Proportional-Values-based-on-of/m-p/4003876#M156233</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="578204" data-lia-user-login="efstel" class="lia-mention lia-mention-user"&gt;efstel&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I looked at your screenshot and you have a bit of a lot of data, can you provide a PBIX file that doesn't contain private data so that I can better write a DAX expression that works for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Jianpeng Li&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 10:31:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Combining-Measures-and-Spreading-Proportional-Values-based-on-of/m-p/4003876#M156233</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-21T10:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Combining Measures and Spreading Proportional Values based on % of whole</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Combining-Measures-and-Spreading-Proportional-Values-based-on-of/m-p/4004628#M156298</link>
      <description>&lt;P&gt;I currently don't have the ablity to upload files. (Not a superuser.) Nevertheless, here's a link:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dropbox.com/scl/fi/trewbdpor34y47jhsw2fz/Unallocated-Test.pbix?rlkey=8rdr7nvjktwhv2vuy95qiyete&amp;amp;st=ly1u94xr&amp;amp;dl=0" target="_blank"&gt;https://www.dropbox.com/scl/fi/trewbdpor34y47jhsw2fz/Unallocated-Test.pbix?rlkey=8rdr7nvjktwhv2vuy95qiyete&amp;amp;st=ly1u94xr&amp;amp;dl=0&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 18:50:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Combining-Measures-and-Spreading-Proportional-Values-based-on-of/m-p/4004628#M156298</guid>
      <dc:creator>efstel</dc:creator>
      <dc:date>2024-06-21T18:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: Combining Measures and Spreading Proportional Values based on % of whole</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Combining-Measures-and-Spreading-Proportional-Values-based-on-of/m-p/4006317#M156824</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="578204" data-lia-user-login="efstel" class="lia-mention lia-mention-user"&gt;efstel&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much for the data. I got the output you were expecting using the following DAX expression:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure 3 = 
VAR _unallocated_ =  CALCULATE(SUM(OverheadTable[OverheadAmount]),FILTER(ALLSELECTED(OfficeTable), 'OfficeTable'[Office]=BLANK()))
VAR _officename_ = SELECTEDVALUE(OfficeTable[Office])
VAR _prop_ = [%BilledAmounttoOffice]
RETURN IF(_officename_=BLANK(),_unallocated_,_unallocated_*_prop_)&lt;/LI-CODE&gt;
&lt;P&gt;Here are the results:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;I've uploaded the PBIX file I used this time below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Jianpeng Li&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2024 06:47:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Combining-Measures-and-Spreading-Proportional-Values-based-on-of/m-p/4006317#M156824</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-24T06:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: Combining Measures and Spreading Proportional Values based on % of whole</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Combining-Measures-and-Spreading-Proportional-Values-based-on-of/m-p/4009763#M157717</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;works great! Only one small problem. When I filter or slice it by an office, it drops the unallocated amount out. Any way to keep that in? I'm assuming I need an ALL function in there?&lt;/P&gt;&lt;P&gt;What I'm doing in addition is adding the newly created measure to the overhead amount to give me the overall overhead. Unallocated Overhead + Allocated Overhead = Total Office Overhead&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 20:43:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Combining-Measures-and-Spreading-Proportional-Values-based-on-of/m-p/4009763#M157717</guid>
      <dc:creator>efstel</dc:creator>
      <dc:date>2024-06-25T20:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: Combining Measures and Spreading Proportional Values based on % of whole</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Combining-Measures-and-Spreading-Proportional-Values-based-on-of/m-p/4010379#M157803</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="578204" data-lia-user-login="efstel" class="lia-mention lia-mention-user"&gt;efstel&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, you may need to clear the slicer's selection to keep the unallocated amount. You can ask this new question in a new post so that the rest of the community can help you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Jianpeng Li&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2024 05:27:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Combining-Measures-and-Spreading-Proportional-Values-based-on-of/m-p/4010379#M157803</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-06-26T05:27:32Z</dc:date>
    </item>
  </channel>
</rss>

