<?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 I have a measure to filter the table by slicer. How to add same filter to the other visuals? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-have-a-measure-to-filter-the-table-by-slicer-How-to-add-same/m-p/4340950#M172380</link>
    <description>&lt;P&gt;Hello everyone,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have this page for variance analysis. For selected variable_id (drill-through) we are able to see every scenarios and quote prices and their variances. I have created a table to filter the table view as I called Threshold. And using this measure below:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;filter_param_threshold_test =
VAR _param = MAXX(ALLSELECTED(param_threshold[Value]),[Value])

RETURN
    IF( _param &amp;gt; [variable var %], 1, 0)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and filter the table = 1, so when I filter to 66.05% like below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;it filters out the third scenario. This works well. However since I use this measure to the table view and I can't use to filter individually for card visuals. They are not changing to the number that I would like to see it.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;*I have shown the expected number with arrow signs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How should I process to achieve what I want here?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 23 Dec 2024 15:46:27 GMT</pubDate>
    <dc:creator>brickanalyst</dc:creator>
    <dc:date>2024-12-23T15:46:27Z</dc:date>
    <item>
      <title>I have a measure to filter the table by slicer. How to add same filter to the other visuals?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-have-a-measure-to-filter-the-table-by-slicer-How-to-add-same/m-p/4340950#M172380</link>
      <description>&lt;P&gt;Hello everyone,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have this page for variance analysis. For selected variable_id (drill-through) we are able to see every scenarios and quote prices and their variances. I have created a table to filter the table view as I called Threshold. And using this measure below:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;filter_param_threshold_test =
VAR _param = MAXX(ALLSELECTED(param_threshold[Value]),[Value])

RETURN
    IF( _param &amp;gt; [variable var %], 1, 0)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and filter the table = 1, so when I filter to 66.05% like below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;it filters out the third scenario. This works well. However since I use this measure to the table view and I can't use to filter individually for card visuals. They are not changing to the number that I would like to see it.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;*I have shown the expected number with arrow signs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How should I process to achieve what I want here?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2024 15:46:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-have-a-measure-to-filter-the-table-by-slicer-How-to-add-same/m-p/4340950#M172380</guid>
      <dc:creator>brickanalyst</dc:creator>
      <dc:date>2024-12-23T15:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: I have a measure to filter the table by slicer. How to add same filter to the other visuals?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-have-a-measure-to-filter-the-table-by-slicer-How-to-add-same/m-p/4341273#M172401</link>
      <description>&lt;P&gt;Add the same measure as a visual filter to the other visuals.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2024 01:21:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-have-a-measure-to-filter-the-table-by-slicer-How-to-add-same/m-p/4341273#M172401</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-12-24T01:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: I have a measure to filter the table by slicer. How to add same filter to the other visuals?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-have-a-measure-to-filter-the-table-by-slicer-How-to-add-same/m-p/4341542#M172407</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="714759" data-lia-user-login="brickanalyst" class="lia-mention lia-mention-user"&gt;brickanalyst&lt;/a&gt;&amp;nbsp;, you can try to create separate measure:&lt;BR /&gt;&lt;BR /&gt;Selected Threshold =&lt;BR /&gt;MAXX(ALLSELECTED(param_threshold[Value]), param_threshold[Value])&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Avg Variable % Var (Filtered) =&lt;BR /&gt;VAR Threshold = [Selected Threshold]&lt;BR /&gt;VAR FilteredTable =&lt;BR /&gt;FILTER(&lt;BR /&gt;ALL('YourTableName'),&lt;BR /&gt;[variance_%_A_B] &amp;lt;= Threshold&lt;BR /&gt;)&lt;BR /&gt;RETURN&lt;BR /&gt;AVERAGEX(FilteredTable, [variance_%_A_B])&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;# of Scenarios (Filtered) =&lt;BR /&gt;VAR Threshold = [Selected Threshold]&lt;BR /&gt;RETURN&lt;BR /&gt;COUNTROWS(&lt;BR /&gt;FILTER(&lt;BR /&gt;ALL('YourTableName'),&lt;BR /&gt;[variance_%_A_B] &amp;lt;= Threshold&lt;BR /&gt;)&lt;BR /&gt;)&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;# of Scenarios Over 10% (Filtered) =&lt;BR /&gt;VAR Threshold = [Selected Threshold]&lt;BR /&gt;RETURN&lt;BR /&gt;COUNTROWS(&lt;BR /&gt;FILTER(&lt;BR /&gt;ALL('YourTableName'),&lt;BR /&gt;[variance_%_A_B] &amp;gt; 0.1 &amp;amp;&amp;amp; [variance_%_A_B] &amp;lt;= Threshold&lt;BR /&gt;)&lt;BR /&gt;)&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;# of Scenarios Over 50% (Filtered) =&lt;BR /&gt;VAR Threshold = [Selected Threshold]&lt;BR /&gt;RETURN&lt;BR /&gt;COUNTROWS(&lt;BR /&gt;FILTER(&lt;BR /&gt;ALL('YourTableName'),&lt;BR /&gt;[variance_%_A_B] &amp;gt; 0.5 &amp;amp;&amp;amp; [variance_%_A_B] &amp;lt;= Threshold&lt;BR /&gt;)&lt;BR /&gt;)&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;Replace the existing measures in your card visuals with the newly created measures to ensure they dynamically respect the slicer threshold.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2024 05:19:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-have-a-measure-to-filter-the-table-by-slicer-How-to-add-same/m-p/4341542#M172407</guid>
      <dc:creator>anmolmalviya05</dc:creator>
      <dc:date>2024-12-24T05:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: I have a measure to filter the table by slicer. How to add same filter to the other visuals?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-have-a-measure-to-filter-the-table-by-slicer-How-to-add-same/m-p/4346568#M172623</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="693617" data-lia-user-login="anmolmalviya05" class="lia-mention lia-mention-user"&gt;anmolmalviya05&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank you, but I haven't got expected results on my end. This worked for me:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;Avg Variable % Var (Filtered) =

VAR _param = MAXX(ALLSELECTED(param_threshold[Value]), [Value])
VAR _avgVar =
    AVERAGEX(
        VALUES('Table'[Assumption_UID]),
        VAR _currentVar = [% variance abs]
        RETURN IF(_currentVar &amp;lt;= _param, _currentVar, BLANK())
    )
RETURN _avgVar

# of Scenarios (Filtered) = 

VAR _param = MAXX(ALLSELECTED(param_threshold[Value]),[Value])
VAR SummaryTable = 
    SUMMARIZE(
        'Table',
        'Table'[Assumption_UID],
        "VarianceAbs", [% variance abs]
    )
RETURN 
    CALCULATE(
        DISTINCTCOUNT('Table'[Assumption_UID]),
        FILTER(
            SummaryTable,
            [VarianceAbs] &amp;lt;= _param
        )
    )

# of estimates over %10 variance = 

VAR _param = MAXX(ALLSELECTED(param_threshold[Value]),[Value])
VAR SummaryTable = 
    SUMMARIZE(
        'Table',
        'Table'[Assumption_UID],
        "VarianceAbs", [% variance abs]
    )
VAR AssumptionTable =
    ADDCOLUMNS(
        SummaryTable,
        "WithinThreshold", IF([VarianceAbs] &amp;lt;= _param, [VarianceAbs], BLANK())
    )
VAR CountAboveThreshold =
    COUNTROWS(
        FILTER(
            AssumptionTable,
            [WithinThreshold] &amp;gt; 0.10
        )
    )
RETURN
    IF(CountAboveThreshold &amp;lt;&amp;gt; BLANK(), CountAboveThreshold, 0)

&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I will accept this as a solution for this ticket, your measure may work for some other cases tho.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2024 21:35:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-have-a-measure-to-filter-the-table-by-slicer-How-to-add-same/m-p/4346568#M172623</guid>
      <dc:creator>brickanalyst</dc:creator>
      <dc:date>2024-12-30T21:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: I have a measure to filter the table by slicer. How to add same filter to the other visuals?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-have-a-measure-to-filter-the-table-by-slicer-How-to-add-same/m-p/4346570#M172624</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="100342" data-lia-user-login="lbendlin" class="lia-mention lia-mention-user"&gt;lbendlin&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;A card visual has a measure, it's not available to use another measure to filter.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2024 21:37:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/I-have-a-measure-to-filter-the-table-by-slicer-How-to-add-same/m-p/4346570#M172624</guid>
      <dc:creator>brickanalyst</dc:creator>
      <dc:date>2024-12-30T21:37:50Z</dc:date>
    </item>
  </channel>
</rss>

