<?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: Display distinct values with multiple OR filters in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-distinct-values-with-multiple-OR-filters/m-p/875912#M7352</link>
    <description>&lt;P&gt;sorry,&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;my bad&lt;/P&gt;&lt;P&gt;try new table&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;= 
DISTINCT(
SELECTCOLUMNS(
FILTER(
'Query1';( ([col1] &amp;gt;=5 &amp;amp;&amp;amp; [col1]) || ([col2] &amp;gt;=5 &amp;amp;&amp;amp; [col2]) || ([col3] &amp;gt;=5 &amp;amp;&amp;amp; [col3] ) )
)
);
"ID";
[ID]
)&lt;/LI-CODE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;I&gt;&lt;FONT color="#ababab"&gt;do not hesitate to give a kudo to useful posts and mark solutions as solution&lt;/FONT&gt;&lt;/I&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Dec 2019 06:59:22 GMT</pubDate>
    <dc:creator>az38</dc:creator>
    <dc:date>2019-12-16T06:59:22Z</dc:date>
    <item>
      <title>Display distinct values with multiple OR filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-distinct-values-with-multiple-OR-filters/m-p/870728#M7182</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to consult to you this problem --- so I have the an ID, name, Col1, Col2, and Col3 columns..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to display the distinct ID and name column into a table with (col1&amp;gt;=5 and col1&amp;lt;10) OR&amp;nbsp; (col2&amp;gt;=5 and col2&amp;lt;15) OR&amp;nbsp; (col3&amp;gt;=5 and col3&amp;lt;15) filters.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i created a calculated column like this, to serve as my filter..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ColumnFilter = SWITCH(TRUE(),&lt;BR /&gt;Query1[col1] &amp;gt;=5 &amp;amp;&amp;amp; Query1[col1] &amp;lt; 10, "&amp;gt;=5 &amp;amp; &amp;lt;10" ,&lt;BR /&gt;Query1[col2] &amp;gt;=5 &amp;amp;&amp;amp; Query1[col2] &amp;lt; 15, "&amp;gt;=5 &amp;amp; &amp;lt;15" ,&lt;BR /&gt;Query1[col3] &amp;gt;=5 &amp;amp;&amp;amp; Query1[col3] &amp;lt; 15, "&amp;gt;=5 &amp;amp; &amp;lt;15"&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but i am not sure if the SWITCH function functions like an OR operator.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am also not sure how to apply this and get the distinct values in my ID column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So basically i need to get the distinct ID values passed with any of the filters.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2019 12:05:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-distinct-values-with-multiple-OR-filters/m-p/870728#M7182</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-10T12:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: Display distinct values with multiple OR filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-distinct-values-with-multiple-OR-filters/m-p/871095#M7212</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try to create newtable&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;= 
DISTINCT(
SELECTCOLUMNS(
FILTER(
'Query1'; OR( ([col1] &amp;gt;=5 &amp;amp;&amp;amp; [col1]);OR(([col2] &amp;gt;=5 &amp;amp;&amp;amp; [col2] );([col3] &amp;gt;=5 &amp;amp;&amp;amp; [col3] )) )
)
);
"ID";
[ID]
)&lt;/LI-CODE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;I&gt;&lt;FONT color="#ababab"&gt;do not hesitate to give a kudo to useful posts and mark solutions as solution&lt;/FONT&gt;&lt;/I&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://linkedin.com/in/alekseizhukov" target="_blank"&gt;LinkedIn&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2019 17:11:57 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-distinct-values-with-multiple-OR-filters/m-p/871095#M7212</guid>
      <dc:creator>az38</dc:creator>
      <dc:date>2019-12-10T17:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: Display distinct values with multiple OR filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-distinct-values-with-multiple-OR-filters/m-p/875895#M7351</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="82403" data-lia-user-login="az38" class="lia-mention lia-mention-user"&gt;az38&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;not sure if i typed it correctly, and is it really new table? i used new column, how to create new table through this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2019 06:35:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-distinct-values-with-multiple-OR-filters/m-p/875895#M7351</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-16T06:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: Display distinct values with multiple OR filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-distinct-values-with-multiple-OR-filters/m-p/875912#M7352</link>
      <description>&lt;P&gt;sorry,&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;my bad&lt;/P&gt;&lt;P&gt;try new table&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;= 
DISTINCT(
SELECTCOLUMNS(
FILTER(
'Query1';( ([col1] &amp;gt;=5 &amp;amp;&amp;amp; [col1]) || ([col2] &amp;gt;=5 &amp;amp;&amp;amp; [col2]) || ([col3] &amp;gt;=5 &amp;amp;&amp;amp; [col3] ) )
)
);
"ID";
[ID]
)&lt;/LI-CODE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;I&gt;&lt;FONT color="#ababab"&gt;do not hesitate to give a kudo to useful posts and mark solutions as solution&lt;/FONT&gt;&lt;/I&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2019 06:59:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-distinct-values-with-multiple-OR-filters/m-p/875912#M7352</guid>
      <dc:creator>az38</dc:creator>
      <dc:date>2019-12-16T06:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: Display distinct values with multiple OR filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-distinct-values-with-multiple-OR-filters/m-p/876446#M7366</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="82403" data-lia-user-login="az38" class="lia-mention lia-mention-user"&gt;az38&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks! i also created a new column with a formula also the same, same results as well but without the selectedcolumn function, i am going to use this. thanks! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2019 14:53:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-distinct-values-with-multiple-OR-filters/m-p/876446#M7366</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-16T14:53:45Z</dc:date>
    </item>
  </channel>
</rss>

