<?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: Create a measure which can be used for filtering a column based on another measure getting updated in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-which-can-be-used-for-filtering-a-column-based/m-p/3550793#M136593</link>
    <description>&lt;P&gt;Try&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SELECTEDVALUE(MyTable[Product])&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 24 Nov 2023 11:58:07 GMT</pubDate>
    <dc:creator>lukiz84</dc:creator>
    <dc:date>2023-11-24T11:58:07Z</dc:date>
    <item>
      <title>Create a measure which can be used for filtering a column based on another measure getting updated</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-which-can-be-used-for-filtering-a-column-based/m-p/3550584#M136578</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;Wanted to create a measure which can be used in PowerBI Slicer when ActiveProduct (one measure from another table) is equal to Product column value.&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ActiveProductMeasure = 
    IF (
        'MyTable'[Product] = [ActiveProduct],
        1,
        0
    )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But getting an error in measure DAX editor "A single value for column 'Product' in table 'MyTable' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Nov 2023 10:13:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-which-can-be-used-for-filtering-a-column-based/m-p/3550584#M136578</guid>
      <dc:creator>Basanth</dc:creator>
      <dc:date>2023-11-24T10:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Create a measure which can be used for filtering a column based on another measure getting updated</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-which-can-be-used-for-filtering-a-column-based/m-p/3550793#M136593</link>
      <description>&lt;P&gt;Try&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SELECTEDVALUE(MyTable[Product])&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 24 Nov 2023 11:58:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-which-can-be-used-for-filtering-a-column-based/m-p/3550793#M136593</guid>
      <dc:creator>lukiz84</dc:creator>
      <dc:date>2023-11-24T11:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: Create a measure which can be used for filtering a column based on another measure getting updated</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-which-can-be-used-for-filtering-a-column-based/m-p/3551029#M136602</link>
      <description>&lt;P&gt;I could connect slicer value to visual two ways,&lt;/P&gt;&lt;P&gt;1. Using a Measure created as above and used as filter 'is' '1'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ActiveProductMeasure = 
    IF (
        SELECTEDVALUE('MyTable'[Product]) = [ActiveProduct],
        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;2. Created relationship between Products[Name] and MyTable[Product] - after this I could see any slicer added for filtering filters both the visuals. Inn case you have slicer in a different page you can also use 'Slicer Sync'&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/power-bi/developer/visuals/enable-sync-slicers" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/power-bi/developer/visuals/enable-sync-slicers&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Nov 2023 14:38:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Create-a-measure-which-can-be-used-for-filtering-a-column-based/m-p/3551029#M136602</guid>
      <dc:creator>Basanth</dc:creator>
      <dc:date>2023-11-24T14:38:04Z</dc:date>
    </item>
  </channel>
</rss>

