<?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: Measure: filter &amp;quot;product name&amp;quot; where sales&amp;gt;0 in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-filter-quot-product-name-quot-where-sales-gt-0/m-p/3630850#M140432</link>
    <description>&lt;P&gt;just add sales to the slicer filters and filter to "is not blank"&lt;/P&gt;</description>
    <pubDate>Wed, 10 Jan 2024 15:17:45 GMT</pubDate>
    <dc:creator>lukiz84</dc:creator>
    <dc:date>2024-01-10T15:17:45Z</dc:date>
    <item>
      <title>Measure: filter "product name" where sales&gt;0</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-filter-quot-product-name-quot-where-sales-gt-0/m-p/3630791#M140428</link>
      <description>&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;I hope you can help me here:&lt;/P&gt;&lt;P&gt;I have a report where I need to add a "product name"-slicer, but I only want to see the product names of products, where sales&amp;gt;0&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;if I combine the product- and sales table, I get this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;hence, what I want to see in my filter is this:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My problem is that the relation between the "Product"-table and the "Sales"-table is single "1:many"-relation:&lt;/P&gt;&lt;P&gt;model(part of):&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so I can't just add a filter on the "slicer"-visual with the crieteria: "Sales" is greater than 0.&lt;/P&gt;&lt;P&gt;Therefore,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is it possible to make a calculated column on the product table which "flags" the products where sales&amp;gt;0?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if "yes", how?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I have tried to make the following calculated column on the product table:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Flag= IF(SUM(Sales)&amp;gt;0,1,0)&lt;/LI-CODE&gt;&lt;P&gt;but the I only gets "1".&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Br,&lt;/P&gt;&lt;P&gt;jayjay0306&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 14:51:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-filter-quot-product-name-quot-where-sales-gt-0/m-p/3630791#M140428</guid>
      <dc:creator>jayjay0306</dc:creator>
      <dc:date>2024-01-10T14:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: Measure: filter "product name" where sales&gt;0</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-filter-quot-product-name-quot-where-sales-gt-0/m-p/3630850#M140432</link>
      <description>&lt;P&gt;just add sales to the slicer filters and filter to "is not blank"&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 15:17:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-filter-quot-product-name-quot-where-sales-gt-0/m-p/3630850#M140432</guid>
      <dc:creator>lukiz84</dc:creator>
      <dc:date>2024-01-10T15:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Measure: filter "product name" where sales&gt;0</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-filter-quot-product-name-quot-where-sales-gt-0/m-p/3630889#M140434</link>
      <description>&lt;P&gt;Hi lukiz84,&lt;/P&gt;&lt;P&gt;Thanks but I am afraid, I have already tried that and for some reason it doesn't work. I has no effect? &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 15:32:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-filter-quot-product-name-quot-where-sales-gt-0/m-p/3630889#M140434</guid>
      <dc:creator>jayjay0306</dc:creator>
      <dc:date>2024-01-10T15:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: Measure: filter "product name" where sales&gt;0</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-filter-quot-product-name-quot-where-sales-gt-0/m-p/3630893#M140436</link>
      <description>&lt;P&gt;So the relationship between D_Product and Sales is 1:n and is active? =&amp;gt; Good&lt;/P&gt;&lt;P&gt;The measure in Sales is "Sales = SUM(Sales[Sales])? =&amp;gt; Good&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then it should work when you place the &lt;STRONG&gt;Product from "D_Product"&lt;/STRONG&gt; in the Slicer and set the filter as described.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it doesn't work apparently so please show some screenshots (relationship, slicer with filter and the measure) - i'm sure we can solve this &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 15:37:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-filter-quot-product-name-quot-where-sales-gt-0/m-p/3630893#M140436</guid>
      <dc:creator>lukiz84</dc:creator>
      <dc:date>2024-01-10T15:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Measure: filter "product name" where sales&gt;0</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-filter-quot-product-name-quot-where-sales-gt-0/m-p/3630940#M140440</link>
      <description>&lt;P&gt;Thanks lukiz84, You just gave me a great help there &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You write "the measure in Sales...."! the "measure" I have tried to use is merely the "Value"-column "sales" in the table. If I make it as an actual measure (i.e. &lt;SPAN&gt;SUM(Sales[Sales]&lt;/SPAN&gt;), it works!&lt;/P&gt;&lt;P&gt;well, well, I learn every day &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;thanks for the input.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Br,&lt;/P&gt;&lt;P&gt;Jayjay0306&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 15:59:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-filter-quot-product-name-quot-where-sales-gt-0/m-p/3630940#M140440</guid>
      <dc:creator>jayjay0306</dc:creator>
      <dc:date>2024-01-10T15:59:22Z</dc:date>
    </item>
  </channel>
</rss>

