<?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: Slicing and showing several things in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicing-and-showing-several-things/m-p/1368146#M24870</link>
    <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;So this is basically a complex selector.&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/The-Complex-Selector/m-p/1116633#M534" target="_blank"&gt;https://community.powerbi.com/t5/Quick-Measures-Gallery/The-Complex-Selector/m-p/1116633#M534&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will want a disconnected Date table.&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure1 = 
  VAR __Min = MIN('Date'[Date])
  VAR __Max = MAX('Date'[Date])
  VAR __Table = FILTER('Table',[Start]&amp;gt;=__Min &amp;amp;&amp;amp; [Finish] &amp;lt;=__Max)
RETURN
  COUNTROWS(__Table)

Measure2 = 
  VAR __Min = MIN('Date'[Date])
  VAR __Max = MAX('Date'[Date])
  VAR __Type = MAX('Table'[Type of canteen])
  VAR __Table = FILTER(ALL('Table'),[Start]&amp;gt;=__Min &amp;amp;&amp;amp; [Finish] &amp;lt;=__Max &amp;amp;&amp;amp; [Type of canteen]&amp;lt;&amp;gt;__Type)
RETURN
  COUNTROWS(__Table)

Measure3 = 
  VAR __Min = MIN('Date'[Date])
  VAR __Max = MAX('Date'[Date])
  VAR __Type = MAX('Table'[Type of canteen])
  VAR __Table = FILTER(ALL('Table'),[Start]&amp;gt;=__Min &amp;amp;&amp;amp; [Finish] &amp;lt;=__Max &amp;amp;&amp;amp; ISBLANK([Type of canteen]))
RETURN
  COUNTROWS(__Table)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might need something like Open Tickets though.&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Open-Tickets/m-p/409364#M147" target="_blank"&gt;https://community.powerbi.com/t5/Quick-Measures-Gallery/Open-Tickets/m-p/409364#M147&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 14 Sep 2020 08:30:09 GMT</pubDate>
    <dc:creator>Greg_Deckler</dc:creator>
    <dc:date>2020-09-14T08:30:09Z</dc:date>
    <item>
      <title>Slicing and showing several things</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicing-and-showing-several-things/m-p/1368123#M24867</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table which shows a school, the type of canteen(s) it has, and also when the type of canteen started and stopped.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;School&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Start&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; &amp;nbsp; &amp;nbsp;Finish&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&amp;nbsp; &amp;nbsp; &amp;nbsp; Type of canteen&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; 01.01.2020&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| 15.01.2020&amp;nbsp; &amp;nbsp; &amp;nbsp;|&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; 01.01.2019&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| 15.01.2019&amp;nbsp; &amp;nbsp; &amp;nbsp;|&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;A&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; 01.01.2020&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| 30.03.2020&amp;nbsp; &amp;nbsp; &amp;nbsp;|&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;B&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; 01.01.2019&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| 15.01.2019&amp;nbsp; &amp;nbsp; &amp;nbsp;|&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;C&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; &amp;nbsp; &amp;nbsp; null&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp;null&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;null&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;D&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; 01.01.2020&amp;nbsp; &amp;nbsp; &amp;nbsp; |15.01.2020&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;D&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; 01.12.2019&amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; 01.02.2020&amp;nbsp; &amp;nbsp; &amp;nbsp;|&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;E&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&amp;nbsp; &amp;nbsp; &amp;nbsp; null&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&amp;nbsp; null&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;null&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;F&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&amp;nbsp; 01.01.2019&amp;nbsp; &amp;nbsp; &amp;nbsp; | 15.01.2019&amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I need to show and display several things when slicing. Preferably on the same page but showing it on several pages is okay.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When slicing on dates and the type of canteen I need to have shown three things:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- Schools which have the given canteen type in the specified date range.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- Schools which do not have the given canteen at all at the specified date range.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- Schools which do not have a canteen at all at the specified date range.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have created three scenarios, and which school should be shown in those scenarios.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I hope you can help me!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Kind Regards Louise.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2020 08:20:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicing-and-showing-several-things/m-p/1368123#M24867</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-14T08:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: Slicing and showing several things</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicing-and-showing-several-things/m-p/1368146#M24870</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;So this is basically a complex selector.&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/The-Complex-Selector/m-p/1116633#M534" target="_blank"&gt;https://community.powerbi.com/t5/Quick-Measures-Gallery/The-Complex-Selector/m-p/1116633#M534&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will want a disconnected Date table.&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure1 = 
  VAR __Min = MIN('Date'[Date])
  VAR __Max = MAX('Date'[Date])
  VAR __Table = FILTER('Table',[Start]&amp;gt;=__Min &amp;amp;&amp;amp; [Finish] &amp;lt;=__Max)
RETURN
  COUNTROWS(__Table)

Measure2 = 
  VAR __Min = MIN('Date'[Date])
  VAR __Max = MAX('Date'[Date])
  VAR __Type = MAX('Table'[Type of canteen])
  VAR __Table = FILTER(ALL('Table'),[Start]&amp;gt;=__Min &amp;amp;&amp;amp; [Finish] &amp;lt;=__Max &amp;amp;&amp;amp; [Type of canteen]&amp;lt;&amp;gt;__Type)
RETURN
  COUNTROWS(__Table)

Measure3 = 
  VAR __Min = MIN('Date'[Date])
  VAR __Max = MAX('Date'[Date])
  VAR __Type = MAX('Table'[Type of canteen])
  VAR __Table = FILTER(ALL('Table'),[Start]&amp;gt;=__Min &amp;amp;&amp;amp; [Finish] &amp;lt;=__Max &amp;amp;&amp;amp; ISBLANK([Type of canteen]))
RETURN
  COUNTROWS(__Table)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might need something like Open Tickets though.&amp;nbsp;&lt;A href="https://community.powerbi.com/t5/Quick-Measures-Gallery/Open-Tickets/m-p/409364#M147" target="_blank"&gt;https://community.powerbi.com/t5/Quick-Measures-Gallery/Open-Tickets/m-p/409364#M147&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2020 08:30:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicing-and-showing-several-things/m-p/1368146#M24870</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-09-14T08:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: Slicing and showing several things</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicing-and-showing-several-things/m-p/1370112#M24939</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the response. Does the last&amp;nbsp;&lt;/P&gt;&lt;P&gt;RETURN&lt;/P&gt;&lt;P&gt;COUNTROWS(__Table)&lt;/P&gt;&lt;P&gt;at each measure, give me the number of schools?&lt;BR /&gt;I would like to have explicitly the schools showed and not only the number of schools.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Louise&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2020 20:29:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicing-and-showing-several-things/m-p/1370112#M24939</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-14T20:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: Slicing and showing several things</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicing-and-showing-several-things/m-p/1370161#M24943</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;Try&lt;/P&gt;
&lt;P&gt;RETURN&lt;/P&gt;
&lt;P&gt;&amp;nbsp; CONCATENATEX(__Table,[School],",")&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2020 21:04:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicing-and-showing-several-things/m-p/1370161#M24943</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-09-14T21:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: Slicing and showing several things</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicing-and-showing-several-things/m-p/1370919#M24977</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Changing the measure does not give me exactly what I want. I tried the measures with my 3 scenarios and this is what I got:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did it work for you?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind Regards Louise.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 07:03:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicing-and-showing-several-things/m-p/1370919#M24977</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-15T07:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: Slicing and showing several things</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicing-and-showing-several-things/m-p/1371020#M24980</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I altered the measure such that&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;__Min = MIN('Date'[Date]&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;was set to&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;__Min = MIN('Date'[Date].[Date]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;(also for the max) which of course helped. Now my scenarios display this&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;img /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Measure1 is almost there except for scenario 1. &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Measure2 is also almost there, but will not include the schools which never had a canteen due to the fact that they do not contain&amp;nbsp; 'Start' and 'Finish'.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Measure3 never displays anything due to the same fact as above. They cannot have a blank at 'Type of canteen' and also have a 'Start' and 'Finish' as the whole row is blank.&lt;BR /&gt;&lt;BR /&gt;Kind Regards Louise.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 15 Sep 2020 07:39:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicing-and-showing-several-things/m-p/1371020#M24980</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-15T07:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: Slicing and showing several things</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicing-and-showing-several-things/m-p/1372115#M25017</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;I would need sample data as text to mock this up and test. Please see this post regarding How to Get Your Question Answered Quickly: &lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The most important parts are:&lt;BR /&gt;1. Sample data as text, use the table tool in the editing bar&lt;BR /&gt;2. Expected output from sample data&lt;BR /&gt;3. Explanation in words of how to get from 1. to 2.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 13:25:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicing-and-showing-several-things/m-p/1372115#M25017</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-09-15T13:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Slicing and showing several things</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicing-and-showing-several-things/m-p/1375990#M25099</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="313" data-lia-user-login="Greg_Deckler" class="lia-mention lia-mention-user"&gt;Greg_Deckler&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The table looks like this.&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;01.01.2020&lt;/TD&gt;&lt;TD&gt;15.01.2020&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;01.01.2019&lt;/TD&gt;&lt;TD&gt;15.01.2019&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;01.01.2020&lt;/TD&gt;&lt;TD&gt;30.03.2020&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;01.01.2019&lt;/TD&gt;&lt;TD&gt;15.01.2019&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;null&lt;/TD&gt;&lt;TD&gt;null&lt;/TD&gt;&lt;TD&gt;null&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;D&lt;/TD&gt;&lt;TD&gt;01.01.2020&lt;/TD&gt;&lt;TD&gt;15.01.2020&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;D&lt;/TD&gt;&lt;TD&gt;01.01.2019&lt;/TD&gt;&lt;TD&gt;01.02.2020&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;E&lt;/TD&gt;&lt;TD&gt;null&lt;/TD&gt;&lt;TD&gt;null&lt;/TD&gt;&lt;TD&gt;null&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;F&lt;/TD&gt;&lt;TD&gt;01.01.2019&lt;/TD&gt;&lt;TD&gt;15.01.2019&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my original post I showed what I expect from the sample data (with different examples).&lt;BR /&gt;&lt;BR /&gt;Unfortunately, I do not know how to get from 1 to 2, as I have tried several things. Do you have any ideas?&lt;BR /&gt;I hope you might find a solution.&lt;BR /&gt;&lt;BR /&gt;Kind Regards Louise.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2020 20:10:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicing-and-showing-several-things/m-p/1375990#M25099</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-16T20:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: Slicing and showing several things</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicing-and-showing-several-things/m-p/1378194#M25158</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Load table "t1"&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WclTSUTq0QMHAUA+IjAyMDIAcGAJKKRiaoktANGBDhkqxOhgmGlriMBEhQaKJGG40NtAzMCbSjUZgE52o7kZnoAIoAnFdcDoZKIEZpngsMEIzz9AI1cEIi4yICgKIc11RneuGMzywh4YCLtONlWJjAQ==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [School = _t, Start = _t, Finish = _t, Type = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"School", type text}, {"Start", type date}, {"Finish", type date}, {"Type", Int64.Type}})
in
    #"Changed Type"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create a table:"Date"&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Date = CALENDAR(DATE(2018,1,1),MAX(t1[Finish]))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Create another table :"School"&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;School = DISTINCT(SELECTCOLUMNS(t1,"School",t1[School]))&lt;/LI-CODE&gt;&lt;P&gt;Measure1: Case1&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Case1 = 
var t2=CALCULATETABLE(SELECTCOLUMNS(t1,"sc",t1[School],"Flag",IF(ISBLANK(t1[Finish]),FALSE(),(MIN('Date'[Date])&amp;lt;=t1[Finish] &amp;amp;&amp;amp; t1[Finish] &amp;lt;= MAX('Date'[Date])) || (MIN('Date'[Date])&amp;lt;=t1[Start] &amp;amp;&amp;amp; t1[Start]&amp;lt;= MAX('Date'[Date])))),ALL(t1[Type]))
var t3=CALCULATETABLE(SELECTCOLUMNS(t1,"sc",t1[School],"Flag",IF(ISBLANK(t1[Finish]),FALSE(),t1[Type]= SELECTEDVALUE(t1[Type]))),ALL('Date'[Date]))


return
SWITCH(TRUE(),SELECTEDVALUE(School[School])in SELECTCOLUMNS(filter(t2,[Flag]=TRUE()),"sc",[sc])  &amp;amp;&amp;amp;  SELECTEDVALUE(School[School]) in SELECTCOLUMNS(filter(t3,[Flag]=TRUE()),"sc",[sc]),1,0)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Measure 2: Case2&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Case2 = 
var t2=CALCULATETABLE(SELECTCOLUMNS(t1,"sc",t1[School],"Flag",IF(ISBLANK(t1[Finish]),FALSE(),(MIN('Date'[Date])&amp;lt;=t1[Finish] &amp;amp;&amp;amp; t1[Finish] &amp;lt;= MAX('Date'[Date])) || (MIN('Date'[Date])&amp;lt;=t1[Start] &amp;amp;&amp;amp; t1[Start]&amp;lt;= MAX('Date'[Date])))),ALL(t1[Type]))
var t3=CALCULATETABLE(SELECTCOLUMNS(t1,"sc",t1[School],"Flag",IF(ISBLANK(t1[Finish]),FALSE(),t1[Type]= SELECTEDVALUE(t1[Type]))),ALL('Date'[Date]))


return
SWITCH(TRUE(),NOT(SELECTEDVALUE(School[School])) in SELECTCOLUMNS(filter(t2,[Flag]=TRUE()),"sc",[sc])  ||  NOT(SELECTEDVALUE(School[School])) in SELECTCOLUMNS(filter(t3,[Flag]=TRUE()),"sc",[sc]),1,0)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Measure 3: Case3&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Case3 = 
var t2=CALCULATETABLE(SELECTCOLUMNS(t1,"sc",t1[School],"Flag",IF(ISBLANK(t1[Finish]),FALSE(),(MIN('Date'[Date])&amp;lt;=t1[Finish] &amp;amp;&amp;amp;t1[Finish] &amp;lt;= MAX('Date'[Date]))||(MIN('Date'[Date])&amp;lt;=t1[Start] &amp;amp;&amp;amp;t1[Start]&amp;lt;= MAX('Date'[Date])))),ALL(t1[Type]))
VAR t3=FILTER(t2,[Flag]=TRUE())


--SWITCH(TRUE(),SELECTEDVALUE(School[School]) in SELECTCOLUMNS(filter(t2,[Flag]=TRUE()),"sc",[sc]),1,0)

Return

SWITCH(TRUE(),NOT(SELECTEDVALUE(School[School])) in SELECTCOLUMNS(filter(t2,[Flag]=TRUE()),"sc",[sc]),1,0)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These cases will be pulled as a visual fiter in School table (Pulled thrice as a visual): is equal to 1 or greater than 1&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 15:50:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicing-and-showing-several-things/m-p/1378194#M25158</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-17T15:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Slicing and showing several things</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicing-and-showing-several-things/m-p/1378197#M25159</link>
      <description>I have posted how to pull the visual filter.&lt;BR /&gt;&lt;BR /&gt;If my answer was helpful, please consider Accept it as the solution to help the other members find it.(Earlier posts also :))&lt;BR /&gt;&lt;BR /&gt;Click on the Thumbs-Up icon if you like this reply</description>
      <pubDate>Thu, 17 Sep 2020 15:53:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicing-and-showing-several-things/m-p/1378197#M25159</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-17T15:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: Slicing and showing several things</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicing-and-showing-several-things/m-p/1383401#M25283</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for your solution! It worked perfectly for my small example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, for my greater example, it did not work. It did find a pattern, where measure 3 (Case3) did not work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When a school has 2 canteens where the finish dates are the same, measure 3 (Case 3) does not show the right schools.&amp;nbsp; I added 2 rows for this to be shown.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;01.01.2020&lt;/TD&gt;&lt;TD&gt;15.01.2020&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;01.01.2019&lt;/TD&gt;&lt;TD&gt;15.01.2019&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;01.01.2020&lt;/TD&gt;&lt;TD&gt;30.03.2020&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;01.01.2019&lt;/TD&gt;&lt;TD&gt;15.01.2019&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;null&lt;/TD&gt;&lt;TD&gt;null&lt;/TD&gt;&lt;TD&gt;null&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;D&lt;/TD&gt;&lt;TD&gt;01.01.2020&lt;/TD&gt;&lt;TD&gt;15.01.2020&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;D&lt;/TD&gt;&lt;TD&gt;01.01.2019&lt;/TD&gt;&lt;TD&gt;01.02.2020&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;E&lt;/TD&gt;&lt;TD&gt;null&lt;/TD&gt;&lt;TD&gt;null&lt;/TD&gt;&lt;TD&gt;null&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;F&lt;/TD&gt;&lt;TD&gt;01.01.2019&lt;/TD&gt;&lt;TD&gt;15.01.2019&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;3&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;G&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;01.01.2020&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;31.03.2020&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;3&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;G&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;01.01.2020&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;31.03.2020&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;3&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When these two rows are added Measure 3 does not display, what it should (in scenario 2). The following screenshot shows this.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(My Power BI is danish)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Scenario 2, case 3 (&lt;SPAN&gt;Schools which do not have a canteen at all at the specified date range), Measure 3 shows School G which does have a canteen at the specified date range.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I hope you can help me again.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Kind Regards Louise.&lt;/SPAN&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>Mon, 21 Sep 2020 07:29:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Slicing-and-showing-several-things/m-p/1383401#M25283</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-21T07:29:43Z</dc:date>
    </item>
  </channel>
</rss>

