<?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 Filtering issue in Desktop</title>
    <link>https://community.fabric.microsoft.com/t5/Desktop/Filtering-issue/m-p/96026#M40468</link>
    <description>&lt;P&gt;I have two tables… one is my source data (named “observations”) and the other is custom table named “Calendar”. These two have relationship by “observation”[Date Opened”] and “Calendar”[Date Open].&lt;/P&gt;&lt;P&gt;Under the “Calendar table, I have few measures and columns to perform calculation like number of observations open, closed, net open and net closed... Like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;img&gt;﻿&lt;/img&gt;&lt;/P&gt;&lt;P&gt;However, a requirement now is to do some aditional filtering based on column name "Gating Milestone" which is under "observations" table. Now if I simply create a slicer which contianes "Gating Milestone", it's not going to do anythyng to this chart becasue (I am guessing) dates under "Calendar" table are static starting from 9/30/2015 untill today() and I use formula like this to calculate how many observations are open on any particular day&lt;/P&gt;&lt;PRE&gt;Open = 
    COUNTX (
        FILTER ( 'observation', 'observation'[Date&amp;nbsp;Opened] = 'Calendar'[Date Open] ),
        'observation'[Date&amp;nbsp;Opened]
    )&lt;/PRE&gt;&lt;P&gt;So the question is... what do I need to do to here under "Calendar" table in order to be able to filter by "Gating Milestone" which is under "observations" table?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any helpwould be greatly appriciated&lt;/P&gt;</description>
    <pubDate>Wed, 30 Nov 2016 23:33:20 GMT</pubDate>
    <dc:creator>CROforce</dc:creator>
    <dc:date>2016-11-30T23:33:20Z</dc:date>
    <item>
      <title>Filtering issue</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Filtering-issue/m-p/96026#M40468</link>
      <description>&lt;P&gt;I have two tables… one is my source data (named “observations”) and the other is custom table named “Calendar”. These two have relationship by “observation”[Date Opened”] and “Calendar”[Date Open].&lt;/P&gt;&lt;P&gt;Under the “Calendar table, I have few measures and columns to perform calculation like number of observations open, closed, net open and net closed... Like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;img&gt;﻿&lt;/img&gt;&lt;/P&gt;&lt;P&gt;However, a requirement now is to do some aditional filtering based on column name "Gating Milestone" which is under "observations" table. Now if I simply create a slicer which contianes "Gating Milestone", it's not going to do anythyng to this chart becasue (I am guessing) dates under "Calendar" table are static starting from 9/30/2015 untill today() and I use formula like this to calculate how many observations are open on any particular day&lt;/P&gt;&lt;PRE&gt;Open = 
    COUNTX (
        FILTER ( 'observation', 'observation'[Date&amp;nbsp;Opened] = 'Calendar'[Date Open] ),
        'observation'[Date&amp;nbsp;Opened]
    )&lt;/PRE&gt;&lt;P&gt;So the question is... what do I need to do to here under "Calendar" table in order to be able to filter by "Gating Milestone" which is under "observations" table?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any helpwould be greatly appriciated&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2016 23:33:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Filtering-issue/m-p/96026#M40468</guid>
      <dc:creator>CROforce</dc:creator>
      <dc:date>2016-11-30T23:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering issue</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Filtering-issue/m-p/96702#M40740</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="13565" data-lia-user-login="CROforce" class="lia-mention lia-mention-user"&gt;CROforce﻿&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The value of a Calculate Column cannot be changed by a Slicer. In this scenario, you should create a &lt;STRONG&gt;Measure&lt;/STRONG&gt; instead, and show it on the report. Then the value of the measure should be filtered.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The formula below to create the measure for "Open" is for your reference.&lt;/P&gt;&lt;PRE&gt;Open =
COUNTX (
    FILTER (
        'observation',
        'observation'[Date Opened] = &lt;STRONG&gt;RELATED&lt;/STRONG&gt; ( 'Calendar'[Date Open] )
    ),
    'observation'[Date Opened]
)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reference:&amp;nbsp;&lt;BR /&gt;&lt;A href="https://community.powerbi.com/t5/Desktop/column-vs-measure/td-p/13201" target="_blank"&gt;https://community.powerbi.com/t5/Desktop/column-vs-measure/td-p/13201&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://powerbi.microsoft.com/en-us/documentation/powerbi-desktop-tutorial-create-measures/" target="_blank"&gt;https://powerbi.microsoft.com/en-us/documentation/powerbi-desktop-tutorial-create-measures/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2016 06:26:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Filtering-issue/m-p/96702#M40740</guid>
      <dc:creator>v-ljerr-msft</dc:creator>
      <dc:date>2016-12-02T06:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering issue</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Filtering-issue/m-p/97018#M40876</link>
      <description>&lt;P&gt;I am new to Power BI and not sure if there is a way to share sample data which would be easier to understand (I guess) what I am trying to do... in this example, I am trying to filter by Gating Milestone which is a column under 'observation' table. I have tried to use this formula in a column and messure and I am not getting any resoults if I try to use multiple filters like this:&lt;/P&gt;&lt;PRE&gt;Open = 
COUNTX (
    FILTER (
        'observation',
        'observation'[Date&amp;nbsp;Opened] = RELATED ( 'Calendar'[Date Open])
        &amp;amp;&amp;amp; ( 'observation'[Gating&amp;nbsp;Milestone] = "DVT 1" )
        &amp;amp;&amp;amp; ( 'observation'[Gating&amp;nbsp;Milestone] = "DVT 2" )
        &amp;amp;&amp;amp; ( 'observation'[Gating&amp;nbsp;Milestone] = "DVT 3" )
    ),
    'observation'[Date&amp;nbsp;Opened]
)&lt;/PRE&gt;&lt;P&gt;But if I only use one filter like so:&lt;/P&gt;&lt;PRE&gt;Open = 
COUNTX (
    FILTER (
        'observation',
        'observation'[Date&amp;nbsp;Opened] = RELATED ( 'Calendar'[Date Open])
        &amp;amp;&amp;amp; ( 'observation'[Gating&amp;nbsp;Milestone] = "DVT 1" )
    ),
    'observation'[Date&amp;nbsp;Opened]
)&lt;/PRE&gt;&lt;P&gt;Then I am getting proper values.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2016 16:59:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Filtering-issue/m-p/97018#M40876</guid>
      <dc:creator>CROforce</dc:creator>
      <dc:date>2016-12-02T16:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering issue</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Filtering-issue/m-p/97398#M41029</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="13565" data-lia-user-login="CROforce" class="lia-mention lia-mention-user"&gt;CROforce﻿&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this scenario, you should use "OR"(||) instead of "AND"(&amp;amp;&amp;amp;) in the filter logic for 'observation'[Gating Milestone]. The formula below is for your reference.&lt;/P&gt;&lt;PRE&gt;Open =
COUNTX (
    FILTER (
        'observation',
        'observation'[Date Opened] = RELATED ( 'Calendar'[Date Open] )
            &amp;amp;&amp;amp; ( ( 'observation'[Gating Milestone] = "DVT 1" )
            || ( 'observation'[Gating Milestone] = "DVT 2" )
            || ( 'observation'[Gating Milestone] = "DVT 3" ) )
    ),
    'observation'[Date Opened]
)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2016 02:24:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Filtering-issue/m-p/97398#M41029</guid>
      <dc:creator>v-ljerr-msft</dc:creator>
      <dc:date>2016-12-05T02:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering issue</title>
      <link>https://community.fabric.microsoft.com/t5/Desktop/Filtering-issue/m-p/97827#M41223</link>
      <description>&lt;P&gt;That was it... Thank you and much appriciated :-)&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2016 18:49:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Desktop/Filtering-issue/m-p/97827#M41223</guid>
      <dc:creator>CROforce</dc:creator>
      <dc:date>2016-12-05T18:49:36Z</dc:date>
    </item>
  </channel>
</rss>

