<?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 How to filter according to levels in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-according-to-levels/m-p/1404811#M25901</link>
    <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this table:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;level 0 = is sales product, level 1 = raw material for manufacturing of level 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If i am filtering for Item no "B", i want to see not only the rows with this item no. but the line on zero level (sales product). Is it possible, please?&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 12:58:47 GMT</pubDate>
    <dc:creator>Hnatecka</dc:creator>
    <dc:date>2020-09-30T12:58:47Z</dc:date>
    <item>
      <title>How to filter according to levels</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-according-to-levels/m-p/1404811#M25901</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this table:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;level 0 = is sales product, level 1 = raw material for manufacturing of level 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If i am filtering for Item no "B", i want to see not only the rows with this item no. but the line on zero level (sales product). Is it possible, please?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 12:58:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-according-to-levels/m-p/1404811#M25901</guid>
      <dc:creator>Hnatecka</dc:creator>
      <dc:date>2020-09-30T12:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter according to levels</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-according-to-levels/m-p/1411742#M26175</link>
      <description>&lt;P&gt;I assume you want to do that in DAX?&amp;nbsp; Have you tried using disconnected tables yet?&lt;/P&gt;</description>
      <pubDate>Sun, 04 Oct 2020 22:23:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-according-to-levels/m-p/1411742#M26175</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-10-04T22:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter according to levels</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-according-to-levels/m-p/1412154#M26184</link>
      <description>&lt;P&gt;Not necessarily in dax. I'm attaching a powerbi file, could you please show me what you mean?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A title="Source file" href="https://drive.google.com/file/d/1n0kcL08uGdjxpjXroiT1Ng1Sr-QGR7bO/view?usp=sharing" target="_self"&gt;https://drive.google.com/file/d/1n0kcL08uGdjxpjXroiT1Ng1Sr-QGR7bO/view?usp=sharing&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 05:42:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-according-to-levels/m-p/1412154#M26184</guid>
      <dc:creator>Hnatecka</dc:creator>
      <dc:date>2020-10-05T05:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter according to levels</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-according-to-levels/m-p/1437775#M26879</link>
      <description>&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;Hi, do you think that you could help me, please?</description>
      <pubDate>Fri, 16 Oct 2020 07:26:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-according-to-levels/m-p/1437775#M26879</guid>
      <dc:creator>Hnatecka</dc:creator>
      <dc:date>2020-10-16T07:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter according to levels</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-according-to-levels/m-p/1438684#M26900</link>
      <description>&lt;P&gt;Not sure I fully understand the ask, but here is what I did:&lt;/P&gt;
&lt;P&gt;1. create a calculated table&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Slicer = values('Item'[Item No.])&lt;/P&gt;
&lt;P&gt;this table is disconnected from the data model, and is used to feed the slicer.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;2. Added a measure to calculate if a row should be included.&lt;/P&gt;
&lt;P&gt;Include = if(SELECTEDVALUE('Item'[Item No.])=SELECTEDVALUE(Slicer[Item No.]) || SELECTEDVALUE('Fact of sales with raw material'[Level])=0,1,0)&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;This will tag the rows for the selected item plus all rows for the level 0 (and all rows where the level is missing!)&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. added a visual (or page) filter that filters by Include=1&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2020 13:28:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-according-to-levels/m-p/1438684#M26900</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-10-16T13:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter according to levels</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-according-to-levels/m-p/1439040#M26905</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is always level value in the source table! This solution duplicates rows (because&amp;nbsp;&lt;SPAN&gt;disconnected&amp;nbsp;table is added??).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rows with level = 0 should not always be displayed, only if for invoice no. is selected some Item no. on level =1&lt;/P&gt;&lt;P&gt;For example: if i choose C value, i want to show this&amp;nbsp; 2 rows:&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;If i choose B value, this rows is necessary to show:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;... and multiple selection is needer (sorry, that i don´t say it before). Is it possible, please?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2020 16:23:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-according-to-levels/m-p/1439040#M26905</guid>
      <dc:creator>Hnatecka</dc:creator>
      <dc:date>2020-10-16T16:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter according to levels</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-according-to-levels/m-p/1439042#M26906</link>
      <description>&lt;P&gt;&lt;SPAN&gt;For example: if i choose C value, i want to show this&amp;nbsp; 2 rows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2020 16:24:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-according-to-levels/m-p/1439042#M26906</guid>
      <dc:creator>Hnatecka</dc:creator>
      <dc:date>2020-10-16T16:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter according to levels</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-according-to-levels/m-p/1439084#M26907</link>
      <description>&lt;P&gt;ah, so you want it by invoice number too?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2020 16:37:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-according-to-levels/m-p/1439084#M26907</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-10-16T16:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter according to levels</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-according-to-levels/m-p/1439087#M26908</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;yes, because that's the only way I can see relevant results &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2020 16:40:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-according-to-levels/m-p/1439087#M26908</guid>
      <dc:creator>Hnatecka</dc:creator>
      <dc:date>2020-10-16T16:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter according to levels</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-according-to-levels/m-p/1439185#M26911</link>
      <description>&lt;P&gt;"&lt;SPAN&gt;... and multiple selection is needer (sorry, that i don´t say it before)."&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;that makes it quite a bit more complex.&amp;nbsp; Show what you want to see when B and C are selected.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2020 17:46:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-according-to-levels/m-p/1439185#M26911</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-10-16T17:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter according to levels</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-according-to-levels/m-p/1439189#M26912</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&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>Fri, 16 Oct 2020 17:53:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-according-to-levels/m-p/1439189#M26912</guid>
      <dc:creator>Hnatecka</dc:creator>
      <dc:date>2020-10-16T17:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter according to levels</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-according-to-levels/m-p/1439203#M26913</link>
      <description>&lt;LI-CODE lang="cpp"&gt;Include = if(SELECTEDVALUE('Item'[Item No.]) in Filters(Slicer[Item No.]) || SELECTEDVALUE('Fact of sales with raw material'[Level])=0,1,0)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 16 Oct 2020 18:07:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-according-to-levels/m-p/1439203#M26913</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-10-16T18:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter according to levels</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-according-to-levels/m-p/1439239#M26914</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;multiple choice propably OK, but still if Level=0 always the row is included (there is no filter on Invoice No. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&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>Fri, 16 Oct 2020 18:38:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-according-to-levels/m-p/1439239#M26914</guid>
      <dc:creator>Hnatecka</dc:creator>
      <dc:date>2020-10-16T18:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter according to levels</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-according-to-levels/m-p/1439277#M26916</link>
      <description>&lt;P&gt;Power BI has no idea which invoice you are interested in. You need to add that filter yourself.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2020 19:30:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-according-to-levels/m-p/1439277#M26916</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-10-16T19:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter according to levels</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-according-to-levels/m-p/1439352#M26918</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;And that is the case! I need overview throught all of the invoices.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;User story:&lt;BR /&gt;I have cca 20 items for which i need detailed overview (consumption of raw material, invoice number and quantity of sales product which is final product of manufacturing - level = 0). For example: i see that for invoice number 123333 i used 5kg of raw material called Beta caroten and for quick check&amp;nbsp; i need to see quantity of sales product (for checking if it is possile produce this quantity from quantity of raw material).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe that it must be possible to used your first part&lt;/P&gt;&lt;PRE&gt;if(SELECTEDVALUE('Item'[Item No.]) in Filters(Slicer[Item No.]) &lt;/PRE&gt;&lt;P&gt;and add second part- something like countx of selected item no. (slicer) in all table for Invoice number from concrete line... if this number is 1 or more than included = 1&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2020 21:29:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-filter-according-to-levels/m-p/1439352#M26918</guid>
      <dc:creator>Hnatecka</dc:creator>
      <dc:date>2020-10-16T21:29:38Z</dc:date>
    </item>
  </channel>
</rss>

