<?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: Calculate formula by 50% time of another value in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-formula-by-50-time-of-another-value/m-p/2675837#M79953</link>
    <description>&lt;P&gt;Hi, Can you show tables, relations and measures? If possible share your project to for more details.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Aug 2022 14:16:58 GMT</pubDate>
    <dc:creator>thiagocamillo</dc:creator>
    <dc:date>2022-08-02T14:16:58Z</dc:date>
    <item>
      <title>Calculate formula by 50% time of another value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-formula-by-50-time-of-another-value/m-p/2672512#M79782</link>
      <description>&lt;DIV&gt;&lt;P&gt;I am using a Formula on New Measure;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please walk though my problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using A measure, I calculated percentages of specific work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;E.g.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Design Time = 30%&lt;/P&gt;&lt;P&gt;Procurement Time= 30%&amp;nbsp;&lt;/P&gt;&lt;P&gt;Civil Time = 40%&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Total = 100%&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Project Duration is 30 Days&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now suppose 50% time of above each work is already consumed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I Showed this by using a slicer which has 30 days and I put slicer bar on 15 days.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now When I put Bar on 15 days (Total days are 30) that means 50% of work tome is completed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need 2 kinds of results&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Design Time:&amp;nbsp; 50% consume out of 100% according to Separate schedule&lt;/P&gt;&lt;P&gt;And&lt;/P&gt;&lt;P&gt;Design Time= 15% consume out of 30% according to whole project schedule&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(Result-1) I want to show the design team that your 50% time is already consumed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(Result-2) And total project weightage of design is 30% out of which 15% is consumed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And which can be achieved by below formula&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Formula = Divide (Nominator, denominator) or Divide (A &amp;amp; B)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now when I put date slicer on 15 days (50% of total days) the formula should work as below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A = 50% of B Value&lt;/P&gt;&lt;P&gt;B = 100% of B Value &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to make B as constant and A as 50% then the formula show me result. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How I can achieve this, please give any suggestions&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 01 Aug 2022 09:50:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-formula-by-50-time-of-another-value/m-p/2672512#M79782</guid>
      <dc:creator>usmanghani</dc:creator>
      <dc:date>2022-08-01T09:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate formula by 50% time of another value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-formula-by-50-time-of-another-value/m-p/2675837#M79953</link>
      <description>&lt;P&gt;Hi, Can you show tables, relations and measures? If possible share your project to for more details.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 14:16:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-formula-by-50-time-of-another-value/m-p/2675837#M79953</guid>
      <dc:creator>thiagocamillo</dc:creator>
      <dc:date>2022-08-02T14:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate formula by 50% time of another value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-formula-by-50-time-of-another-value/m-p/2678130#M80081</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="419723" data-lia-user-login="usmanghani" class="lia-mention lia-mention-user"&gt;usmanghani&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your description, I created a table as below：&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please try following steps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1.Create a measure called Total to calculate time all item spent. The time spent here is assumed to be 100&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Total = SUM('Project'[Spend])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;2.Create a measure called Percentage to calculate the percentage of time spent on all items.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Percentage = DIVIDE([Total],CALCULATE([Total],ALL('Project'[Item])))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3.Create a measure called Consumed to calculate time has been consumed.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Consumed = [Total] / 100&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;4.In report page, when you put slicer Bar on 15 days (Actually on day 16), you can show the design team that your 50% time is already consumed, which is the result-1 you want.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;At the same time, you can show total project weightage of design is 30% out of which 15% is consumed, which is the result-2 you want.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;&lt;SUP&gt;Best Regards,&lt;/SUP&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;&lt;SUP&gt;Yadong Fang&lt;/SUP&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;&lt;SUP&gt;If this post &lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt; to help the other members find it more quickly.&lt;/SUP&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 09:53:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-formula-by-50-time-of-another-value/m-p/2678130#M80081</guid>
      <dc:creator>v-yadongf-msft</dc:creator>
      <dc:date>2022-08-03T09:53:58Z</dc:date>
    </item>
  </channel>
</rss>

