<?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: Dynamic value calculation based on input in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-value-calculation-based-on-input/m-p/2777435#M86752</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But Percentage &amp;amp; Category need to be calculated first because it based on quantity input total that user entered.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Sep 2022 11:11:28 GMT</pubDate>
    <dc:creator>sadiahsapiee</dc:creator>
    <dc:date>2022-09-19T11:11:28Z</dc:date>
    <item>
      <title>Dynamic value calculation based on input</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-value-calculation-based-on-input/m-p/2777195#M86727</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have below scenario, I have been tried more than a month to get the solution but still not successful :&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;in above table the total = 351 and I put in example 35004&amp;nbsp;&lt;/P&gt;&lt;P&gt;User select Sale Item &amp;amp; enter Quantity in respective month input box (direct manual input in PBI report) .&amp;nbsp;&lt;/P&gt;&lt;P&gt;The sale item has a set of component (~ 100 component).&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;Yellow columns are dynamic value based on Input demand (sum of user input quantity).&lt;/P&gt;&lt;P&gt;How I am going to calculate total cost of critical component (this will change based on user enter value and sale item they selected)?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 09:34:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-value-calculation-based-on-input/m-p/2777195#M86727</guid>
      <dc:creator>sadiahsapiee</dc:creator>
      <dc:date>2022-09-19T09:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic value calculation based on input</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-value-calculation-based-on-input/m-p/2777365#M86745</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="191515" data-lia-user-login="sadiahsapiee" class="lia-mention lia-mention-user"&gt;sadiahsapiee&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please try&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Total Cost of Critical =
VAR T1 =
    ADDCOLUMNS (
        VALUES ( 'Table'[Component] ),
        "@Cost", CALCULATE ( SELECTEDVALUE ( 'Table'[Cost] ) ),
        "@Category", [Category]
    )
VAR T2 =
    FILTER ( T1, [@Category] = "Critical" )
RETURN
    SUMX ( T2, [@Cost] )&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 19 Sep 2022 10:21:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-value-calculation-based-on-input/m-p/2777365#M86745</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-09-19T10:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic value calculation based on input</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-value-calculation-based-on-input/m-p/2777435#M86752</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But Percentage &amp;amp; Category need to be calculated first because it based on quantity input total that user entered.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 11:11:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-value-calculation-based-on-input/m-p/2777435#M86752</guid>
      <dc:creator>sadiahsapiee</dc:creator>
      <dc:date>2022-09-19T11:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic value calculation based on input</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-value-calculation-based-on-input/m-p/2777461#M86756</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="191515" data-lia-user-login="sadiahsapiee" class="lia-mention lia-mention-user"&gt;sadiahsapiee&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What results didi you get using this proposed formula?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 11:24:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-value-calculation-based-on-input/m-p/2777461#M86756</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-09-19T11:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic value calculation based on input</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-value-calculation-based-on-input/m-p/2777618#M86776</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ok, I know what you means.. I have already have category measure and just use that in formula.&amp;nbsp;&lt;BR /&gt;I have tried your formula and it works... thank you soo much..&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 12:21:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-value-calculation-based-on-input/m-p/2777618#M86776</guid>
      <dc:creator>sadiahsapiee</dc:creator>
      <dc:date>2022-09-19T12:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic value calculation based on input</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-value-calculation-based-on-input/m-p/2780314#M86978</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Total Cost of Critical =
VAR T1 =
    ADDCOLUMNS (
        VALUES ( 'Table'[Component] ),
        "@Cost", CALCULATE ( SELECTEDVALUE ( 'Table'[Cost] ) ),
        "@Category", [Category]
    )
VAR T2 =
    FILTER ( T1, [@Category] = "Critical" )
RETURN
    SUMX ( T2, [@Cost] )&lt;/PRE&gt;&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="317289" data-lia-user-login="tamerj1" class="lia-mention lia-mention-user"&gt;tamerj1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to calculate cost cumulation for Delivery Time lowest to higest?&amp;nbsp;&lt;BR /&gt;I tried this formula but seem not work, it give the the Cost value of the component.&lt;BR /&gt;CALCULATE (SUMX(T2, [@Cost]). FILTER(ALL('Table'[Delivery Time]). 'Table'[Delibery Time]&amp;gt;=MIN('Table[Delivery Time])))&lt;/P&gt;&lt;P&gt;I am want result like below:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;FONT face="courier new,courier"&gt;Cost&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT face="courier new,courier"&gt;Delivery Time&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT face="courier new,courier"&gt;Cost Cummulation&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT face="courier new,courier"&gt;Comp3&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT face="courier new,courier"&gt;18&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT face="courier new,courier"&gt;5&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT face="courier new,courier"&gt;50.5&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT face="courier new,courier"&gt;Comp5&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT face="courier new,courier"&gt;30&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT face="courier new,courier"&gt;5&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT face="courier new,courier"&gt;32.5&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;FONT face="courier new,courier"&gt;Comp1&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT face="courier new,courier"&gt;2.5&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT face="courier new,courier"&gt;12&lt;/FONT&gt;&lt;/TD&gt;&lt;TD&gt;&lt;FONT face="courier new,courier"&gt;2.5&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Really appreciate your help and thanks in advance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 09:58:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-value-calculation-based-on-input/m-p/2780314#M86978</guid>
      <dc:creator>sadiahsapiee</dc:creator>
      <dc:date>2022-09-20T09:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic value calculation based on input</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-value-calculation-based-on-input/m-p/2780318#M86979</link>
      <description>&lt;P&gt;Comp3 Cost 18&lt;/P&gt;&lt;P&gt;Comp5 Cost 30&lt;/P&gt;&lt;P&gt;Comp1 cost 2.5&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 09:59:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-value-calculation-based-on-input/m-p/2780318#M86979</guid>
      <dc:creator>sadiahsapiee</dc:creator>
      <dc:date>2022-09-20T09:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic value calculation based on input</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-value-calculation-based-on-input/m-p/2780782#M87002</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="191515" data-lia-user-login="sadiahsapiee" class="lia-mention lia-mention-user"&gt;sadiahsapiee&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Sorry I did not understand the question. Would you&amp;nbsp;please clarify further perhaps more details and some screenshots.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 13:02:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-value-calculation-based-on-input/m-p/2780782#M87002</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-09-20T13:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic value calculation based on input</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-value-calculation-based-on-input/m-p/2780975#M87009</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;After we get total Cost of Critical Category from previous formula, i want to calculate cost cumulation using delivery time low to high&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;What i did before( without considering category)&lt;/P&gt;&lt;P&gt;1.&lt;BR /&gt;Cost_Cumulation =&lt;BR /&gt;&amp;nbsp; &amp;nbsp; CALCULATE(SUM'Table1'[Cost], ALL('Table1'[Component]),&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FILTER(ALL('Table'[Delivery Time),AND('Table'[Delivery Time &amp;gt;=MIN('Table'[Delivery Time]), NOT(ISBLANK('Table'[Delivery Time])))))&lt;BR /&gt;2.&lt;BR /&gt;% Cost Cumulation = [Cost Cumulation]/ CALCULATE([Cost Cumulation], 'Table1'[Delivery Time]=0)&lt;BR /&gt;&lt;BR /&gt;Now the calculation need to consider Critical category only.&amp;nbsp;&lt;BR /&gt;thank in advance for your support.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 14:08:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-value-calculation-based-on-input/m-p/2780975#M87009</guid>
      <dc:creator>sadiahsapiee</dc:creator>
      <dc:date>2022-09-20T14:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic value calculation based on input</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-value-calculation-based-on-input/m-p/2781120#M87014</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="191515" data-lia-user-login="sadiahsapiee" class="lia-mention lia-mention-user"&gt;sadiahsapiee&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please try&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Cumulative Cost of Critical =
VAR CurrentDeliveryTime =
    SELECTEDVALUE ( 'Table'[Delivery Time] )
VAR T1 =
    ADDCOLUMNS (
        ALLSELECTED ( 'Table'[Component] ),
        "@Cost", CALCULATE ( SELECTEDVALUE ( 'Table'[Cost] ) ),
        "@Category", [Category],
        "@DeliveryTime", CALCULATE ( SELECTEDVALUE ( 'Table'[Delivery Time] ) )
    )
VAR T2 =
    FILTER (
        T1,
        [@Category] = "Critical"
            &amp;amp;&amp;amp; [@DeliveryTime] &amp;gt;= CurrentDeliveryTime
    )
RETURN
    SUMX ( T2, [@Cost] )&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 20 Sep 2022 14:44:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-value-calculation-based-on-input/m-p/2781120#M87014</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-09-20T14:44:09Z</dc:date>
    </item>
  </channel>
</rss>

