<?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: Selected Value Times Each Row? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selected-Value-Times-Each-Row/m-p/2452782#M66085</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="337817" data-lia-user-login="Thigs" class="lia-mention lia-mention-user"&gt;Thigs&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That is strage. Must be something in the visual. But ofcaurse you select only value right? &amp;nbsp;Can you please share a screenshot&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Apr 2022 14:25:26 GMT</pubDate>
    <dc:creator>tamerj1</dc:creator>
    <dc:date>2022-04-12T14:25:26Z</dc:date>
    <item>
      <title>Selected Value Times Each Row?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selected-Value-Times-Each-Row/m-p/2452498#M66066</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;I am trying to create some kind of formula that would work based on a selected value/what if parameter. My what if parameter is how many days of stock I want to have on hand - it is whole numbers from 1 - 60.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I have created a summary table that has Item ID, Month, Average items sold per day, and total items sold during that month. I want to create a formula that multiplies the average number of items sold per day by the stock days on hand (what if parameter). Here is what I've tried -&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Inventory Units = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;InternalTable&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;summarize&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Order Data'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'Order Data'[ITEM_ID]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'Order Data'[Month]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"Units per Day"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;sum&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Order Data'[ORIG_ORDER_QTY]&lt;/SPAN&gt;&lt;SPAN&gt;)/&lt;/SPAN&gt;&lt;SPAN&gt;DISTINCTCOUNT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Order Data'[Date Time]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;"Units per Month"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;sum&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Order Data'[ORIG_ORDER_QTY]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR&lt;/SPAN&gt; &lt;SPAN&gt;InvUnits&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;sumx&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;InternalTable&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;[Units per Day]&lt;/SPAN&gt;&lt;SPAN&gt; * &lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Days of Inventory'[Days of Inventory]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;InvUnits&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This is just returning blanks for each row. Any help would be greatly appreciated!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 12 Apr 2022 12:52:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selected-Value-Times-Each-Row/m-p/2452498#M66066</guid>
      <dc:creator>Thigs</dc:creator>
      <dc:date>2022-04-12T12:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Selected Value Times Each Row?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selected-Value-Times-Each-Row/m-p/2452743#M66079</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="337817" data-lia-user-login="Thigs" class="lia-mention lia-mention-user"&gt;Thigs&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the relationship between the two tables? How does your visual look like?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2022 14:10:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selected-Value-Times-Each-Row/m-p/2452743#M66079</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-12T14:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: Selected Value Times Each Row?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selected-Value-Times-Each-Row/m-p/2452749#M66080</link>
      <description>&lt;P&gt;Between which two tables? The summary table? Right now I only have the one table and the what-if parameter, which I have not connected to anywhere. The Days of Inventory is a what-if parameter that simply contains numbers between 1-60.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2022 14:14:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selected-Value-Times-Each-Row/m-p/2452749#M66080</guid>
      <dc:creator>Thigs</dc:creator>
      <dc:date>2022-04-12T14:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: Selected Value Times Each Row?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selected-Value-Times-Each-Row/m-p/2452782#M66085</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="337817" data-lia-user-login="Thigs" class="lia-mention lia-mention-user"&gt;Thigs&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That is strage. Must be something in the visual. But ofcaurse you select only value right? &amp;nbsp;Can you please share a screenshot&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2022 14:25:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selected-Value-Times-Each-Row/m-p/2452782#M66085</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-12T14:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: Selected Value Times Each Row?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selected-Value-Times-Each-Row/m-p/2452793#M66086</link>
      <description>&lt;P&gt;I officially got it to not be blank, but now it's all the same value -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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;</description>
      <pubDate>Tue, 12 Apr 2022 14:29:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selected-Value-Times-Each-Row/m-p/2452793#M66086</guid>
      <dc:creator>Thigs</dc:creator>
      <dc:date>2022-04-12T14:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: Selected Value Times Each Row?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selected-Value-Times-Each-Row/m-p/2452943#M66093</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="337817" data-lia-user-login="Thigs" class="lia-mention lia-mention-user"&gt;Thigs&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Inventory Units =
DIVIDE (
    SUM ( 'Order Data'[ORIG_ORDER_QTY] ),
    DISTINCTCOUNT ( 'Order Data'[Date Time] )
)
    * SELECTEDVALUE ( 'Days of Inventory'[Days of Inventory] )&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 12 Apr 2022 15:24:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selected-Value-Times-Each-Row/m-p/2452943#M66093</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2022-04-12T15:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: Selected Value Times Each Row?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selected-Value-Times-Each-Row/m-p/2453332#M66109</link>
      <description>&lt;P&gt;I think this worked! Double checking it now manually to make sure, but it looks good!&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2022 19:39:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selected-Value-Times-Each-Row/m-p/2453332#M66109</guid>
      <dc:creator>Thigs</dc:creator>
      <dc:date>2022-04-12T19:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: Selected Value Times Each Row?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selected-Value-Times-Each-Row/m-p/2458542#M66409</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="337817" data-lia-user-login="Thigs" class="lia-mention lia-mention-user"&gt;Thigs&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;May I ask if your problem has been solved? Did tamerj1's post above help you? If any of the posts are helpful, then please consider accepting it as a solution to help other members find it faster. Many thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Best Regards,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Community Support Team_Gao&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Apr 2022 05:17:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Selected-Value-Times-Each-Row/m-p/2458542#M66409</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-15T05:17:24Z</dc:date>
    </item>
  </channel>
</rss>

