<?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 Return True when the row in Column is True and if the row is selected by a slicer. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-True-when-the-row-in-Column-is-True-and-if-the-row-is/m-p/4693690#M179744</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a little problem, where I cannot seem to find the answer to.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have one table with all the Information in it, and in that Table is a Column, that has TRUE or FALSE values in it. Further there is an ID Column, that is used in a Slicer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now to the Problem. I want to show in a Table all the vaules that are marked TRUE &lt;STRONG&gt;plus&lt;/STRONG&gt; the values, that are selected in an ID slicer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I expect the following Result when ID 2 &amp;amp; 3 are selected in the Slicer:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ID&lt;/TD&gt;&lt;TD&gt;True/False Colum&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Expected Result&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;True&lt;/TD&gt;&lt;TD&gt;True&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;True&lt;/TD&gt;&lt;TD&gt;True&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;False&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;True&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;False&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;False&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried it with some versions of the following code but I cannot get it to work:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ShowRow =
VAR Always = SELECTEDVALUE('OfflineExcel'[AV_Marked]) = TRUE()
VAR IsSelected =
    CONTAINS(
        VALUES('OfflineExcel'[Av_Text_Combined]),
        'OfflineExcel'[Av_Text_Combined],
        SELECTEDVALUE('OfflineExcel'[Av_Text_Combined])
    )
RETURN Always || IsSelected&lt;/LI-CODE&gt;&lt;P&gt;And there can be syntax errors in that Code, because of frustration I deleted the DAX &lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt; and I recreated it here out of memory.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and best regards&lt;/P&gt;&lt;P&gt;Lars&lt;/P&gt;</description>
    <pubDate>Thu, 15 May 2025 08:37:22 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2025-05-15T08:37:22Z</dc:date>
    <item>
      <title>Return True when the row in Column is True and if the row is selected by a slicer.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-True-when-the-row-in-Column-is-True-and-if-the-row-is/m-p/4693690#M179744</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a little problem, where I cannot seem to find the answer to.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have one table with all the Information in it, and in that Table is a Column, that has TRUE or FALSE values in it. Further there is an ID Column, that is used in a Slicer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now to the Problem. I want to show in a Table all the vaules that are marked TRUE &lt;STRONG&gt;plus&lt;/STRONG&gt; the values, that are selected in an ID slicer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I expect the following Result when ID 2 &amp;amp; 3 are selected in the Slicer:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ID&lt;/TD&gt;&lt;TD&gt;True/False Colum&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Expected Result&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;True&lt;/TD&gt;&lt;TD&gt;True&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;True&lt;/TD&gt;&lt;TD&gt;True&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;False&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;True&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;False&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;False&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried it with some versions of the following code but I cannot get it to work:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ShowRow =
VAR Always = SELECTEDVALUE('OfflineExcel'[AV_Marked]) = TRUE()
VAR IsSelected =
    CONTAINS(
        VALUES('OfflineExcel'[Av_Text_Combined]),
        'OfflineExcel'[Av_Text_Combined],
        SELECTEDVALUE('OfflineExcel'[Av_Text_Combined])
    )
RETURN Always || IsSelected&lt;/LI-CODE&gt;&lt;P&gt;And there can be syntax errors in that Code, because of frustration I deleted the DAX &lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt; and I recreated it here out of memory.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and best regards&lt;/P&gt;&lt;P&gt;Lars&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 08:37:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-True-when-the-row-in-Column-is-True-and-if-the-row-is/m-p/4693690#M179744</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-05-15T08:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: Return True when the row in Column is True and if the row is selected by a slicer.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-True-when-the-row-in-Column-is-True-and-if-the-row-is/m-p/4693726#M179747</link>
      <description>&lt;P&gt;Anonymous&lt;/LI-USER&gt;&amp;nbsp;, Try using&lt;/P&gt;
&lt;P&gt;DAX&lt;BR /&gt;ShowRow = &lt;BR /&gt;VAR Always = 'OfflineExcel'[True/False Column] = TRUE()&lt;BR /&gt;VAR IsSelected = &lt;BR /&gt;COUNTROWS(&lt;BR /&gt;FILTER(&lt;BR /&gt;ALLSELECTED('OfflineExcel'),&lt;BR /&gt;'OfflineExcel'[ID] = EARLIER('OfflineExcel'[ID])&lt;BR /&gt;)&lt;BR /&gt;) &amp;gt; 0&lt;BR /&gt;RETURN Always || IsSelected&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 08:53:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-True-when-the-row-in-Column-is-True-and-if-the-row-is/m-p/4693726#M179747</guid>
      <dc:creator>bhanu_gautam</dc:creator>
      <dc:date>2025-05-15T08:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: Return True when the row in Column is True and if the row is selected by a slicer.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-True-when-the-row-in-Column-is-True-and-if-the-row-is/m-p/4693789#M179750</link>
      <description>&lt;P&gt;Hello Bhanu,&lt;/P&gt;&lt;P&gt;thanks for the Quick rsponse. However, if it is a measure, it does not work, since earlier is not a measure object. And when I tried it in a new Row I get the full amount as true which should which should not be the case.&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lars&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 09:09:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-True-when-the-row-in-Column-is-True-and-if-the-row-is/m-p/4693789#M179750</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-05-15T09:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: Return True when the row in Column is True and if the row is selected by a slicer.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-True-when-the-row-in-Column-is-True-and-if-the-row-is/m-p/4693917#M179757</link>
      <description>&lt;P&gt;You will need a separate, disconnected table to use in the slicer. You can create one with something like&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table for Slicer = DISTINCT( 'Table'[ID] )&lt;/LI-CODE&gt;
&lt;P&gt;Do not connect the new table to the main table.&lt;/P&gt;
&lt;P&gt;Now you can create a measure like&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Show Row =
IF (
    SELECTEDVALUE ( 'OfflineExcel'[AV_Marked] )
        || SELECTEDVALUE ( 'OfflineExcel'[ID] ) IN VALUES ( 'Table for slicer'[ID] ),
    1
)
&lt;/LI-CODE&gt;
&lt;P&gt;Add that as a filter to your table or matrix visual, set to show only when the value is 1.&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 10:11:22 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-True-when-the-row-in-Column-is-True-and-if-the-row-is/m-p/4693917#M179757</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2025-05-15T10:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: Return True when the row in Column is True and if the row is selected by a slicer.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-True-when-the-row-in-Column-is-True-and-if-the-row-is/m-p/4693945#M179759</link>
      <description>&lt;P&gt;Hello John,&lt;/P&gt;&lt;P&gt;Thanks for your response as well. However, this also does not work. The Problem now is, that when the table and the Slicer interact with each other, and in the slicer a row is selected, only that row is shown in the Table. It should show that value and all the others marked true.&lt;/P&gt;&lt;P&gt;When I turn of the interaction, the all the values are shown, and the slicer does not work.&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 10:33:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-True-when-the-row-in-Column-is-True-and-if-the-row-is/m-p/4693945#M179759</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-05-15T10:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: Return True when the row in Column is True and if the row is selected by a slicer.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-True-when-the-row-in-Column-is-True-and-if-the-row-is/m-p/4694220#M179770</link>
      <description>&lt;P&gt;That's why you need the disconnected table for the slicer. Making any selection in the slicer should not affect the table at all, unless you place a measure filter on the table.&lt;/P&gt;
&lt;P&gt;To be clear, the slicer needs to use the disconnected table, the table visual should use values from the main table.&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 12:21:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-True-when-the-row-in-Column-is-True-and-if-the-row-is/m-p/4694220#M179770</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2025-05-15T12:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: Return True when the row in Column is True and if the row is selected by a slicer.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-True-when-the-row-in-Column-is-True-and-if-the-row-is/m-p/4694337#M179777</link>
      <description>&lt;P&gt;Thank you, John, for the Answer, that did Work&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 May 2025 12:44:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-True-when-the-row-in-Column-is-True-and-if-the-row-is/m-p/4694337#M179777</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-05-15T12:44:45Z</dc:date>
    </item>
  </channel>
</rss>

