<?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: Help on building a measure in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-on-building-a-measure/m-p/3130412#M111352</link>
    <description>&lt;P&gt;Thanks al lot Tamerj1&lt;/P&gt;&lt;P&gt;As said before Im a DAX beginner so what I did is copy your code in a measure and update file and table names.&lt;/P&gt;&lt;P&gt;I think the red text, indicates an error (no idea what that is doing) the outcome of this measure is not 228 so Im doing something wrong....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Single line single piexe = &lt;/SPAN&gt;&lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;filter&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUMMARIZE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Z_orders_delivered_2022&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Z_orders_delivered_2022[ORDER]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;"@lines"&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Z_orders_delivered_2022&lt;/SPAN&gt;&lt;SPAN&gt;)),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[@lines]&lt;/SPAN&gt;&lt;SPAN&gt; =&lt;/SPAN&gt;&lt;FONT color="#00FF00"&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;any idea?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Please dont spend too much time on it, I appreciate all the help I can get but also understand that beginner questions can be frustrating...&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grimacing_face:"&gt;😬&lt;/span&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 14 Mar 2023 10:20:28 GMT</pubDate>
    <dc:creator>Maalst</dc:creator>
    <dc:date>2023-03-14T10:20:28Z</dc:date>
    <item>
      <title>Help on building a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-on-building-a-measure/m-p/3129984#M111314</link>
      <description>&lt;P&gt;Hello all&lt;/P&gt;&lt;P&gt;I’m not a DAX expert – not even a medium skilled user – so I’m looking for help. My table has the following data (order numbers, items and quantity shipped) 1 order can occur multiple times in the table (because an order can have multiple lines)&lt;/P&gt;&lt;P&gt;I’m looking for orders that have only 1 line and a shipped quantity of 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That value (hopefully it is the outcome of a measure) needs to show in a card-visual. I can get the result in a normal table:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Count of Order: Distinct count of order and on then a filter on Quantity =1&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Sum of Qty: and also &amp;nbsp;filter on Quantity =1&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The table looks like: the outcome is highlighted in yellow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I want to use this in a card and only the number 228&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks in advance for your help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 07:02:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-on-building-a-measure/m-p/3129984#M111314</guid>
      <dc:creator>Maalst</dc:creator>
      <dc:date>2023-03-14T07:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: Help on building a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-on-building-a-measure/m-p/3130078#M111324</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="529120" data-lia-user-login="Maalst" class="lia-mention lia-mention-user"&gt;Maalst&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Pleas try&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Single Line Orders =
COUNTROWS (
    FILTER (
        SUMMARIZE ( 'Table', 'Table'[Order], "@Lines", COUNTROWS ( 'Table' ) ),
        [@Lines] = 1
    )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 14 Mar 2023 08:02:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-on-building-a-measure/m-p/3130078#M111324</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-03-14T08:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: Help on building a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-on-building-a-measure/m-p/3130412#M111352</link>
      <description>&lt;P&gt;Thanks al lot Tamerj1&lt;/P&gt;&lt;P&gt;As said before Im a DAX beginner so what I did is copy your code in a measure and update file and table names.&lt;/P&gt;&lt;P&gt;I think the red text, indicates an error (no idea what that is doing) the outcome of this measure is not 228 so Im doing something wrong....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Single line single piexe = &lt;/SPAN&gt;&lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;filter&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;SUMMARIZE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Z_orders_delivered_2022&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Z_orders_delivered_2022[ORDER]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;"@lines"&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Z_orders_delivered_2022&lt;/SPAN&gt;&lt;SPAN&gt;)),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[@lines]&lt;/SPAN&gt;&lt;SPAN&gt; =&lt;/SPAN&gt;&lt;FONT color="#00FF00"&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;any idea?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Please dont spend too much time on it, I appreciate all the help I can get but also understand that beginner questions can be frustrating...&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grimacing_face:"&gt;😬&lt;/span&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 14 Mar 2023 10:20:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-on-building-a-measure/m-p/3130412#M111352</guid>
      <dc:creator>Maalst</dc:creator>
      <dc:date>2023-03-14T10:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: Help on building a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-on-building-a-measure/m-p/3130420#M111354</link>
      <description>&lt;P&gt;extra info: the value the measure returns is the count of orders and with a filter on value 1.&lt;/P&gt;&lt;P&gt;so it does give me the lines with "sum_ship" = 1&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 10:25:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-on-building-a-measure/m-p/3130420#M111354</guid>
      <dc:creator>Maalst</dc:creator>
      <dc:date>2023-03-14T10:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Help on building a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-on-building-a-measure/m-p/3130440#M111358</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="529120" data-lia-user-login="Maalst" class="lia-mention lia-mention-user"&gt;Maalst&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;It shouldn't. Nothing wrong it should work. Just hit "Enter" or confirm the measure the error will go. If persists, please provide a screenshot of the error message.&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Single line single piexe =
COUNTROWS (
    FILTER (
        SUMMARIZE (
            Z_orders_delivered_2022,
            Z_orders_delivered_2022[ORDER],
            "@lines", COUNTROWS ( Z_orders_delivered_2022 )
        ),
        [@lines] = 1
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 10:32:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-on-building-a-measure/m-p/3130440#M111358</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-03-14T10:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: Help on building a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-on-building-a-measure/m-p/3130443#M111359</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="529120" data-lia-user-login="Maalst" class="lia-mention lia-mention-user"&gt;Maalst&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please clarify further perhaps with some screenshots&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 10:34:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-on-building-a-measure/m-p/3130443#M111359</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-03-14T10:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: Help on building a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-on-building-a-measure/m-p/3130474#M111361</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See below the screen shot:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;If I take the file SUM_SHIP is 1 away (from my table)&amp;nbsp; than 228 changes to 307.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 10:42:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-on-building-a-measure/m-p/3130474#M111361</guid>
      <dc:creator>Maalst</dc:creator>
      <dc:date>2023-03-14T10:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Help on building a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-on-building-a-measure/m-p/3130489#M111364</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="529120" data-lia-user-login="Maalst" class="lia-mention lia-mention-user"&gt;Maalst&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;What is SUM_SHIP? is it a measure? What is the DAX/Column?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 10:48:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-on-building-a-measure/m-p/3130489#M111364</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-03-14T10:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: Help on building a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-on-building-a-measure/m-p/3130736#M111396</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sum_ship is jsut a numeric field with shipped QTY (the word &lt;U&gt;Sum&lt;/U&gt; might be misleading)&lt;/P&gt;&lt;P&gt;dont understand the question:&amp;nbsp;&lt;SPAN&gt;What is the DAX/Column? Maybe the screenshot answers the question.&lt;/SPAN&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;</description>
      <pubDate>Tue, 14 Mar 2023 12:54:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-on-building-a-measure/m-p/3130736#M111396</guid>
      <dc:creator>Maalst</dc:creator>
      <dc:date>2023-03-14T12:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: Help on building a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-on-building-a-measure/m-p/3130763#M111400</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="529120" data-lia-user-login="Maalst" class="lia-mention lia-mention-user"&gt;Maalst&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Please try&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;Single line single piexe =
COUNTROWS (
    FILTER (
        SUMMARIZE (
            Z_orders_delivered_2022,
            Z_orders_delivered_2022[ORDER],
            "@CountSumOrders", COUNT ( Z_orders_delivered_2022[Z_orders_delivered_2022[SUM_ORDER] ),
            "@CountShipOrders", COUNT ( Z_orders_delivered_2022[Z_orders_delivered_2022[SUM_ORDER] )
        ),
        [@CountSumOrders] = 1
            &amp;amp;&amp;amp; [@CountShipOrders] = 1
    )
)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 14 Mar 2023 13:06:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-on-building-a-measure/m-p/3130763#M111400</guid>
      <dc:creator>tamerj1</dc:creator>
      <dc:date>2023-03-14T13:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: Help on building a measure</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-on-building-a-measure/m-p/3131061#M111420</link>
      <description>&lt;P&gt;Hello Tamerj1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for all your help, I have a working measure now&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 14:43:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-on-building-a-measure/m-p/3131061#M111420</guid>
      <dc:creator>Maalst</dc:creator>
      <dc:date>2023-03-14T14:43:18Z</dc:date>
    </item>
  </channel>
</rss>

