<?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: How to create a measure that only displays one value for each row on a specific column of data in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-measure-that-only-displays-one-value-for-each/m-p/2532490#M71067</link>
    <description>&lt;P&gt;Apologies this post was marked as spam previously I'm not sure why.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 23 May 2022 08:14:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-05-23T08:14:01Z</dc:date>
    <item>
      <title>How to create a measure that only displays one value for each row on a specific column of data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-measure-that-only-displays-one-value-for-each/m-p/2531544#M71029</link>
      <description>&lt;P&gt;Apologies, it is a difficult question to ask so I will explain it the best I can.&lt;BR /&gt;&lt;BR /&gt;I have a visual that shows the total of a column called "Quantity" from the table [Line Items], however, there is another column on the [Line Items] table called “Category”. These categories are typically “Assembly”, “Workshop”, and “Virtual”.&lt;/P&gt;&lt;P&gt;Here's a sample of that table [Line Items] below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Line Item ID&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Deal ID&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Category&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Quantity&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Amount&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&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;P&gt;Virtual&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;260&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;105&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These line items are attatched to different Deals, and on every Deal I only want one quantity value (the quantity values will always be the same on a deal) as you can see above.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;So, each quantity has a category. I want to write a measure that only calculates the quantity from one category rather than all 3. So, if my table visual shows a specific set of [Line Items] and it has quantity categories that are assembly and workshop, I want it to only take the quantity value from one or the other, not both.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So if I filter a visual that shows lineitems 1002, 1003, and 1005 that is from Deal 1003, I want the quantity to remain 260 rather than adding the quantity up. However, I still want the amount values calculated normally, so I only want the Quantity column effected.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So if I was to create say an "Official Quantity" measure, how would it go?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Official Quantity =&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 22 May 2022 20:21:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-measure-that-only-displays-one-value-for-each/m-p/2531544#M71029</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-22T20:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a measure that only displays one value for each row on a specific column of data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-measure-that-only-displays-one-value-for-each/m-p/2532490#M71067</link>
      <description>&lt;P&gt;Apologies this post was marked as spam previously I'm not sure why.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2022 08:14:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-measure-that-only-displays-one-value-for-each/m-p/2532490#M71067</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-23T08:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a measure that only displays one value for each row on a specific column of data</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-measure-that-only-displays-one-value-for-each/m-p/2535928#M71261</link>
      <description>&lt;P&gt;I found a way how to do it, incase anyone else needs to go, here is the measure I created:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Official Quantity = &lt;/SPAN&gt;&lt;SPAN&gt;SUMX&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'LineItem'[quantity]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;FIRSTNONBLANK&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;'LineItem'[quantity]&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt; ))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 24 May 2022 10:46:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-create-a-measure-that-only-displays-one-value-for-each/m-p/2535928#M71261</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-05-24T10:46:18Z</dc:date>
    </item>
  </channel>
</rss>

