<?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 Card Visual in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-Card-Visual/m-p/1985988#M43885</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently trying to use a card visual to display a measure that calculates the max of another measure as can be seen below, but i ran into a problem, the card can be filtered from the filter panel and since some of the data has spikes the spike is shown. Any suggestions on how I can filter out these spikes from the measure. Any help would be apriciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the card data has the max imbalance and and I have filtered the line chart using the filter panel but I can't do the same for the card.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the DAX I used to show the maxium voltage imbalance from the V-imbal measure&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;MAX V-BMP01-IMBAL = &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Var MaxVImbalBMP01 =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MAXX(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; V_BMP,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; 'Voltage Measures'[V-BMP01-IMBAL]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MaxVImbalBMP01&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;Below is the DAX for the line chart that shows V-imbalance measure&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;V-BMP01-IMBAL = &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VAR ValueTableBMP01 =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;UNION(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; ROW("BMP01",AVERAGE(V_BMP[V-BMP01-AB])),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; ROW("BMP01",AVERAGE(V_BMP[V-BMP01-BC])),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; ROW("BMP01",AVERAGE(V_BMP[V-BMP01-CA]))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VAR BMP01ROWMAX = &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MAXX(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; ValueTableBMP01,[BMP01]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VAR BMP01ROWAVE =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AVERAGEX(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; ValueTableBMP01, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; [BMP01]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VAR BMP01IMBAL = &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(BMP01ROWMAX - BMP01ROWAVE) / BMP01ROWAVE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Var MaxVImbalBMP01 =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MAXX(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; V_BMP,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; BMP01IMBAL&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MaxVImbalBMP01&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 29 Jul 2021 01:48:03 GMT</pubDate>
    <dc:creator>equetzal</dc:creator>
    <dc:date>2021-07-29T01:48:03Z</dc:date>
    <item>
      <title>Filtering Card Visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-Card-Visual/m-p/1985988#M43885</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently trying to use a card visual to display a measure that calculates the max of another measure as can be seen below, but i ran into a problem, the card can be filtered from the filter panel and since some of the data has spikes the spike is shown. Any suggestions on how I can filter out these spikes from the measure. Any help would be apriciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the card data has the max imbalance and and I have filtered the line chart using the filter panel but I can't do the same for the card.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the DAX I used to show the maxium voltage imbalance from the V-imbal measure&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;MAX V-BMP01-IMBAL = &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Var MaxVImbalBMP01 =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MAXX(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; V_BMP,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; 'Voltage Measures'[V-BMP01-IMBAL]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MaxVImbalBMP01&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;Below is the DAX for the line chart that shows V-imbalance measure&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;V-BMP01-IMBAL = &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VAR ValueTableBMP01 =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;UNION(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; ROW("BMP01",AVERAGE(V_BMP[V-BMP01-AB])),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; ROW("BMP01",AVERAGE(V_BMP[V-BMP01-BC])),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; ROW("BMP01",AVERAGE(V_BMP[V-BMP01-CA]))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VAR BMP01ROWMAX = &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MAXX(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; ValueTableBMP01,[BMP01]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VAR BMP01ROWAVE =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AVERAGEX(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; ValueTableBMP01, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; [BMP01]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;VAR BMP01IMBAL = &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(BMP01ROWMAX - BMP01ROWAVE) / BMP01ROWAVE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Var MaxVImbalBMP01 =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MAXX(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; V_BMP,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; BMP01IMBAL&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MaxVImbalBMP01&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 29 Jul 2021 01:48:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-Card-Visual/m-p/1985988#M43885</guid>
      <dc:creator>equetzal</dc:creator>
      <dc:date>2021-07-29T01:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering Card Visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-Card-Visual/m-p/1987516#M43927</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="294237" data-lia-user-login="equetzal" class="lia-mention lia-mention-user"&gt;equetzal&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There's a couple things you can do.&amp;nbsp; Calculate as variables either: the average and standard deviation of the data OR a high and low percentile (maybe 10th and 90th?).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you're calculating the average you can filter for values between (average +/- 2 standard deviations) or (high and low percentiles).&amp;nbsp; Either way will discard outliers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jul 2021 14:00:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-Card-Visual/m-p/1987516#M43927</guid>
      <dc:creator>littlemojopuppy</dc:creator>
      <dc:date>2021-07-29T14:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering Card Visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-Card-Visual/m-p/1990084#M44017</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="17198" data-lia-user-login="littlemojopuppy" class="lia-mention lia-mention-user"&gt;littlemojopuppy&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Thanks for the suggestion I have tried but the card comeout blank could you be so kind as to give an example.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jul 2021 16:06:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-Card-Visual/m-p/1990084#M44017</guid>
      <dc:creator>equetzal</dc:creator>
      <dc:date>2021-07-30T16:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering Card Visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-Card-Visual/m-p/1990130#M44021</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="294237" data-lia-user-login="equetzal" class="lia-mention lia-mention-user"&gt;equetzal&lt;/a&gt;&amp;nbsp; &amp;nbsp;Here's a sample from something similar I've done...&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;VAR PercentileCutoff =
    PERCENTILEX.INC ( CalculateDaysOpen, [DaysOpen], .99 )
RETURN
    AVERAGEX (
        FILTER ( CalculateDaysOpen, [DaysOpen] &amp;gt;= 0 &amp;amp;&amp;amp; [DaysOpen] &amp;lt;= PercentileCutoff ),
        [DaysOpen]
    )&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you share your formula?&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jul 2021 16:47:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-Card-Visual/m-p/1990130#M44021</guid>
      <dc:creator>littlemojopuppy</dc:creator>
      <dc:date>2021-07-30T16:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering Card Visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-Card-Visual/m-p/1990158#M44022</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="17198" data-lia-user-login="littlemojopuppy" class="lia-mention lia-mention-user"&gt;littlemojopuppy&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;sure please see below&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jul 2021 17:17:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-Card-Visual/m-p/1990158#M44022</guid>
      <dc:creator>equetzal</dc:creator>
      <dc:date>2021-07-30T17:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering Card Visual</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-Card-Visual/m-p/1990174#M44023</link>
      <description>&lt;P&gt;Surprised you're not getting an error.&amp;nbsp; The &lt;A href="https://docs.microsoft.com/en-us/dax/percentilex-inc-function-dax" target="_self"&gt;PERCENTILEX.INC&lt;/A&gt; function requires a value between 0 and 1 for the third parameter.&amp;nbsp; You entered 1.05.&lt;BR /&gt;&lt;BR /&gt;If you want to exclude the outliers from the max calculation, calculate the percentile first, and then filter the table in the MAXX calculation.&amp;nbsp; Use the code I provided as guidance for the order the steps should be in.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jul 2021 17:24:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filtering-Card-Visual/m-p/1990174#M44023</guid>
      <dc:creator>littlemojopuppy</dc:creator>
      <dc:date>2021-07-30T17:24:45Z</dc:date>
    </item>
  </channel>
</rss>

