<?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: Dynamic filtering/column issue in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-filtering-column-issue/m-p/1260894#M20977</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you share sample data aong with dates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Harsh Nathani&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jul 2020 06:01:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-07-30T06:01:29Z</dc:date>
    <item>
      <title>Dynamic filtering/column issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-filtering-column-issue/m-p/1260380#M20964</link>
      <description>&lt;P&gt;**edited to clarify terminology**&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;New to Power Bi and DAX and struggling with the following issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a very large dataset with properties similar to the below example data. I am trying to identify if my data for the year 2020 is unusual (because of covid). My analysis is being done at Faculty level.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A simplification of what I would like to do is filter my list of subjects from 2020 based on if they are an outlier inside a Faculty based on 2019 data. To make the example simple here I will just call an outlier &amp;gt;Quartile 3 (Q3) or &amp;lt;Quartile 1 (Q1) of the 2019 data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Calculating Q1 and Q3 for each faculty is easily done with a measure. However I do not want to hard code those values anywhere for a number of reasons.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So what I need in the below table is a calculated column "outlier" that identifies for a subject in 2020 in a particular Faculty if the average mark is &amp;gt;Q3 or &amp;lt;Q1 for the same faculty for 2019 data. But this value needs to be dynamic, so for example if I realise subject C should be in Faculty 1 instead of 2, a recalculation is done to redetermine the outlier status of this subject, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Logically what I need but&amp;nbsp;because of my lack of DAX knowledge cannot construct is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;=IF(OR([Average Mark] &amp;gt; (&lt;STRONG&gt;Dynamic&amp;nbsp;Value&lt;/STRONG&gt; of Q3 for Subject's Faculty and Year&amp;nbsp; = 2019),&amp;nbsp;[Average Mark] &amp;lt; (&lt;STRONG&gt;Dynamic&amp;nbsp;Value&lt;/STRONG&gt; Q1 for Subject's Faculty and Year&amp;nbsp; = 2019), "Outlier", "Not Outlier")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help, hints, directions to similar postings appreciated.&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;&lt;STRONG&gt;Subject&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;Faculty&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;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lt;/TD&gt;&lt;TD&gt;2019&lt;/TD&gt;&lt;TD&gt;65&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;D&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;2019&lt;/TD&gt;&lt;TD&gt;60&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;E&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;2019&lt;/TD&gt;&lt;TD&gt;35&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;F&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;2019&lt;/TD&gt;&lt;TD&gt;45&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 08:19:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-filtering-column-issue/m-p/1260380#M20964</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-30T08:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic filtering/column issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-filtering-column-issue/m-p/1260517#M20970</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt; , I do not see any qtr in data. &lt;/P&gt;
&lt;P&gt;Typically when I do not have the date, Try to add a date and try to use date table and time intelligence. Else I move time-related data to a new table. Create a rank and do it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using Rank&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-Last-Week/ba-p/1051123" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-Last-Week/ba-p/1051123&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;uning Time Intelligence 2&lt;BR /&gt;&lt;A href="https://medium.com/@amitchandak.1978/power-bi-qtd-questions-time-intelligence-2-5-d842063da839" target="_blank"&gt;https://medium.com/@amitchandak.1978/power-bi-qtd-questions-time-intelligence-2-5-d842063da839&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Creating date when Date is not there&lt;/P&gt;
&lt;P&gt;Within first few mins -&lt;A href="https://www.youtube.com/watch?v=yPQ9UV37LOU&amp;amp;t=28s" target="_blank"&gt;https://www.youtube.com/watch?v=yPQ9UV37LOU&amp;amp;t=28s&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 01:51:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-filtering-column-issue/m-p/1260517#M20970</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-07-30T01:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic filtering/column issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-filtering-column-issue/m-p/1260894#M20977</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you share sample data aong with dates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Harsh Nathani&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 06:01:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-filtering-column-issue/m-p/1260894#M20977</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-30T06:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic filtering/column issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-filtering-column-issue/m-p/1261207#M20990</link>
      <description>&lt;P&gt;Sorry, I should have been clearer. Q1 and Q3 are quartile 1 and quartile 3, not quarter 1 and quarter 3. This is an attempt to identify "outliers" in exam results data, the only time variable is year.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So Q3 = percentile.inc([Average Mark], 0.75) for example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will re-edit original post for clarity.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 08:17:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-filtering-column-issue/m-p/1261207#M20990</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-30T08:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic filtering/column issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-filtering-column-issue/m-p/1261381#M20999</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See if these help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Dynamic-Quartiles/m-p/814004" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/Dynamic-Quartiles/m-p/814004&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/Salesperson-production-in-quartiles-by-region-dynamic/m-p/541186" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/Salesperson-production-in-quartiles-by-region-dynamic/m-p/541186&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://sqldusty.com/2018/08/31/calculating-quartiles-with-dax-and-power-bi/" target="_blank"&gt;https://sqldusty.com/2018/08/31/calculating-quartiles-with-dax-and-power-bi/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/quartile-ranking/td-p/560850" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/quartile-ranking/td-p/560850&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Harsh Nathani&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 08:50:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-filtering-column-issue/m-p/1261381#M20999</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-30T08:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic filtering/column issue</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-filtering-column-issue/m-p/1261662#M21013</link>
      <description>&lt;P&gt;Definitely, thanks very much&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 10:07:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Dynamic-filtering-column-issue/m-p/1261662#M21013</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-30T10:07:54Z</dc:date>
    </item>
  </channel>
</rss>

