<?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: Show records if a condition is fulfilled at least in one slicer selection in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-records-if-a-condition-is-fulfilled-at-least-in-one-slicer/m-p/962090#M11269</link>
    <description>&lt;P&gt;This measure returns TRUE if the person should be selected and FALSE otherwise.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[Filtering Measure] =
var __onePersonVisible = hasonevalue( Persons[PersonId] )
var __shouldBeSelected =
	not isempty(
		filter(
			Persons,
			Persons[Value] &amp;gt; 1
		)
	)
var __result =
	__shouldBeSelected * __onePersonVisible
return
	convert(__result, boolean)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best&lt;/P&gt;
&lt;P&gt;D&lt;/P&gt;</description>
    <pubDate>Fri, 06 Mar 2020 11:46:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-03-06T11:46:42Z</dc:date>
    <item>
      <title>Show records if a condition is fulfilled at least in one slicer selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-records-if-a-condition-is-fulfilled-at-least-in-one-slicer/m-p/962044#M11266</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;I have a table with persons and their allocation in each calendar week:&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;person1&lt;/TD&gt;&lt;TD&gt;week1&lt;/TD&gt;&lt;TD&gt;0.8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;person1&lt;/TD&gt;&lt;TD&gt;week2&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;person1&lt;/TD&gt;&lt;TD&gt;week3&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;.....person1&lt;/TD&gt;&lt;TD&gt;.....week52&lt;/TD&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;person2&lt;/TD&gt;&lt;TD&gt;week1&lt;/TD&gt;&lt;TD&gt;1.2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;person2&lt;/TD&gt;&lt;TD&gt;week2&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;person2&lt;/TD&gt;&lt;TD&gt;week3&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;...person2&lt;/TD&gt;&lt;TD&gt;...week52&lt;/TD&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;....&lt;/TD&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;TD&gt;...&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to show in table only persons who have at least in one week allocation more than 100% (more than 1). For weeks I have a slicer where you can choose one, more or all weeks.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I'm looking for a dax measure which can I add as a table filter.&lt;/P&gt;&lt;P&gt;I went through two solutions but neither one solved my problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) calculate average allocation in all selected weeks and if it's more than 100% show values - doesn't work for more than one week&lt;/P&gt;&lt;P&gt;2) calculate a separate measure of each week and then a measure for filtering&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;IF(WEEK1&amp;gt;0,1,IF(WEKK2&amp;gt;0,1,.....))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;It doesn't respect only selected weeks in the slicer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any DAX function or solution which can help me?&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2020 11:02:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-records-if-a-condition-is-fulfilled-at-least-in-one-slicer/m-p/962044#M11266</guid>
      <dc:creator>soldous</dc:creator>
      <dc:date>2020-03-06T11:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Show records if a condition is fulfilled at least in one slicer selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-records-if-a-condition-is-fulfilled-at-least-in-one-slicer/m-p/962083#M11268</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="64216" data-lia-user-login="soldous" class="lia-mention lia-mention-user"&gt;soldous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this Measure&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
SUMX( 
    'Table', 
    INT( 'Table'[value] &amp;gt; 1 ) 
)&lt;/LI-CODE&gt;
&lt;P&gt;Use as Visual filter like below.&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;Best Regards,&lt;BR /&gt;Mariusz&lt;BR /&gt;&lt;BR /&gt;If this post &lt;STRONG&gt;helps&lt;/STRONG&gt;, then please consider &lt;STRONG&gt;&lt;I&gt;Accepting it as the solution&lt;/I&gt;&lt;/STRONG&gt;.&lt;BR /&gt;&lt;BR /&gt;Please feel free to connect with me.&lt;BR /&gt;&lt;A href="https://www.linkedin.com/in/mariusz-repczynski-065a7362/" target="_blank"&gt; LinkedIn &lt;/A&gt;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2020 11:35:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-records-if-a-condition-is-fulfilled-at-least-in-one-slicer/m-p/962083#M11268</guid>
      <dc:creator>Mariusz</dc:creator>
      <dc:date>2020-03-06T11:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Show records if a condition is fulfilled at least in one slicer selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-records-if-a-condition-is-fulfilled-at-least-in-one-slicer/m-p/962090#M11269</link>
      <description>&lt;P&gt;This measure returns TRUE if the person should be selected and FALSE otherwise.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[Filtering Measure] =
var __onePersonVisible = hasonevalue( Persons[PersonId] )
var __shouldBeSelected =
	not isempty(
		filter(
			Persons,
			Persons[Value] &amp;gt; 1
		)
	)
var __result =
	__shouldBeSelected * __onePersonVisible
return
	convert(__result, boolean)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best&lt;/P&gt;
&lt;P&gt;D&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2020 11:46:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-records-if-a-condition-is-fulfilled-at-least-in-one-slicer/m-p/962090#M11269</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-06T11:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Show records if a condition is fulfilled at least in one slicer selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-records-if-a-condition-is-fulfilled-at-least-in-one-slicer/m-p/962148#M11278</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="81408" data-lia-user-login="Mariusz" class="lia-mention lia-mention-user"&gt;Mariusz&lt;/a&gt;&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much guys for the response.&lt;/P&gt;&lt;P&gt;Unfortunately, neither solution works for me. I attached a print screen which could help understand what I need.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;In the bottom matrix, I have a summary of allocation per weeks. Value is a simple SUM(Allocation) - because one person can have more records in the same week = more project the person is allocated to. In the table above the matrix, I would like to see only persons with the allocation above 100%. So if I select all the weeks I would like to see only the red person. If I select 1st week and any other I would like to see only the red person. If I select anything except 1week I would like to see nothing.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2020 12:25:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-records-if-a-condition-is-fulfilled-at-least-in-one-slicer/m-p/962148#M11278</guid>
      <dc:creator>soldous</dc:creator>
      <dc:date>2020-03-06T12:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: Show records if a condition is fulfilled at least in one slicer selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-records-if-a-condition-is-fulfilled-at-least-in-one-slicer/m-p/962168#M11280</link>
      <description>&lt;P&gt;Just change the criteria in the FILTER in my formula. It was not clear at all where the value you wanted to filter by resides or if that's a measure or a column in your table.&lt;/P&gt;
&lt;P&gt;Something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[Filtering Measure] =
var __onePersonVisible = hasonevalue( Persons[PersonId] )
var __shouldBeSelected =
	not isempty(
		filter(
			values( Weeks[Week] ),
			[Total Allocation] &amp;gt; 1
		)
	)
var __result =
	convert(__shouldBeSelected * __onePersonVisible, boolean)
return
	__result&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best&lt;BR /&gt;D&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2020 12:47:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-records-if-a-condition-is-fulfilled-at-least-in-one-slicer/m-p/962168#M11280</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-06T12:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: Show records if a condition is fulfilled at least in one slicer selection</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-records-if-a-condition-is-fulfilled-at-least-in-one-slicer/m-p/962214#M11282</link>
      <description>&lt;P&gt;That's it!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2020 12:59:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Show-records-if-a-condition-is-fulfilled-at-least-in-one-slicer/m-p/962214#M11282</guid>
      <dc:creator>soldous</dc:creator>
      <dc:date>2020-03-06T12:59:58Z</dc:date>
    </item>
  </channel>
</rss>

