<?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 Using Slicer as input for a DAX measure ignoring some visual filters in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-Slicer-as-input-for-a-DAX-measure-ignoring-some-visual/m-p/3660272#M141821</link>
    <description>&lt;P&gt;Hi&lt;BR /&gt;&lt;BR /&gt;I am trying to replicate with DAX what I can do in Excel. Basically, I need a measure that can lookup some values from a Table based on the hard coded value "Xccy" in the &lt;STRONG&gt;Base&lt;/STRONG&gt; Column and a dynamic value provided by a Slicer (retrieved in DAX by&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;S&lt;EM&gt;ELECTEDVALUE&lt;/EM&gt;&lt;/SPAN&gt;&lt;EM&gt;(Selector[CCY]&lt;/EM&gt;&lt;SPAN&gt;&lt;EM&gt;)&lt;/EM&gt;). I want the visual filter for the column "&lt;STRONG&gt;Period"&lt;/STRONG&gt; to still be active but ignoring columns "&lt;STRONG&gt;CCY&lt;/STRONG&gt;" and "&lt;STRONG&gt;Base&lt;/STRONG&gt;" in the Visual. I.e. depending what I choose from the slicer the measure returns differtent values in real time and changes as presented in the tables below. Possible? Help much appreciated.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;img /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Jan 2024 11:53:47 GMT</pubDate>
    <dc:creator>MichaelHalling</dc:creator>
    <dc:date>2024-01-25T11:53:47Z</dc:date>
    <item>
      <title>Using Slicer as input for a DAX measure ignoring some visual filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-Slicer-as-input-for-a-DAX-measure-ignoring-some-visual/m-p/3660272#M141821</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;&lt;BR /&gt;I am trying to replicate with DAX what I can do in Excel. Basically, I need a measure that can lookup some values from a Table based on the hard coded value "Xccy" in the &lt;STRONG&gt;Base&lt;/STRONG&gt; Column and a dynamic value provided by a Slicer (retrieved in DAX by&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;S&lt;EM&gt;ELECTEDVALUE&lt;/EM&gt;&lt;/SPAN&gt;&lt;EM&gt;(Selector[CCY]&lt;/EM&gt;&lt;SPAN&gt;&lt;EM&gt;)&lt;/EM&gt;). I want the visual filter for the column "&lt;STRONG&gt;Period"&lt;/STRONG&gt; to still be active but ignoring columns "&lt;STRONG&gt;CCY&lt;/STRONG&gt;" and "&lt;STRONG&gt;Base&lt;/STRONG&gt;" in the Visual. I.e. depending what I choose from the slicer the measure returns differtent values in real time and changes as presented in the tables below. Possible? Help much appreciated.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 11:53:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-Slicer-as-input-for-a-DAX-measure-ignoring-some-visual/m-p/3660272#M141821</guid>
      <dc:creator>MichaelHalling</dc:creator>
      <dc:date>2024-01-25T11:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: Using Slicer as input for a DAX measure ignoring some visual filters</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-Slicer-as-input-for-a-DAX-measure-ignoring-some-visual/m-p/3660397#M141836</link>
      <description>&lt;P&gt;Certainly! It seems like you want to create a DAX measure that looks up values from a table based on a hardcoded value "Xccy" in the Base Column and a dynamic value from a slicer for the CCY column, while still considering the visual filter on the Period column.&lt;/P&gt;&lt;P&gt;Assuming you have a table named "YourTable" and the columns are "Base," "CCY," and "Period," and you want to create a measure that looks up values based on "Xccy" in the Base column and the dynamic CCY from the slicer, you can use the following DAX formula:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;YourMeasure =&lt;BR /&gt;CALCULATE (&lt;BR /&gt;SUM ( YourTable[YourValueColumn] ),&lt;BR /&gt;YourTable[Base] = "Xccy",&lt;BR /&gt;YourTable[CCY] = SELECTEDVALUE ( Selector[CCY] )&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Replace "YourValueColumn" with the actual column that you want to aggregate or perform calculations on.&lt;/P&gt;&lt;P&gt;This DAX measure uses the CALCULATE function to modify the filter context. It filters the table to include only rows where the Base column is "Xccy" and the CCY column matches the selected value from the slicer. The visual filter on the Period column is still considered.&lt;/P&gt;&lt;P&gt;Make sure to adjust the column names and table names according to your actual data model.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If this post&amp;nbsp;helps, then please consider&amp;nbsp;Accepting it as the solution&amp;nbsp;to help the other members find it more quickly.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In case there is still a problem, please feel free and explain your issue in detail,&amp;nbsp;It will be my pleasure to assist you in any way I can.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 12:34:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-Slicer-as-input-for-a-DAX-measure-ignoring-some-visual/m-p/3660397#M141836</guid>
      <dc:creator>123abc</dc:creator>
      <dc:date>2024-01-25T12:34:46Z</dc:date>
    </item>
  </channel>
</rss>

