<?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: If any column in Row has 0, True, Else False in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-any-column-in-Row-has-0-True-Else-False/m-p/4811340#M183987</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="828752" data-lia-user-login="BrianNeedsHelp" class="lia-mention lia-mention-user"&gt;BrianNeedsHelp&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;, for your insights.&lt;/P&gt;
&lt;P&gt;I was able to replicate your issue with the sample data you provided. Here is the output I obtained after adding a calculated column, and I’ve attached the PBIX file for you to review.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column Needed = 
IF (
    ( 'Table'[Device1] = 0 || ISBLANK ( 'Table'[Device1] ) )
    || ( 'Table'[Device2] = 0 || ISBLANK ( 'Table'[Device2] ) )
    || ( 'Table'[Device3] = 0 || ISBLANK ( 'Table'[Device3] ) ),
    TRUE (),
    FALSE ()
)
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Hope this helps&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 29 Aug 2025 09:08:56 GMT</pubDate>
    <dc:creator>v-saisrao-msft</dc:creator>
    <dc:date>2025-08-29T09:08:56Z</dc:date>
    <item>
      <title>If any column in Row has 0, True, Else False</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-any-column-in-Row-has-0-True-Else-False/m-p/4810893#M183980</link>
      <description>&lt;P&gt;All of the Device Names are in one column called DeviceModel.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a table like this where I'm wanting to add one column-'Column Needed' based on if there are any zeros or blanks in each row.&amp;nbsp; &amp;nbsp; Goal is to be able to filter the one column to True.&amp;nbsp; Thx!&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Location&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Device1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Device2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Device3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Column Needed&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;TRUE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;FALSE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;TRUE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;D&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;TD&gt;TRUE&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Everything I've tried only calculates each column individually.&amp;nbsp; E.g.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ContainsZero = var point_sale = SUMX(VALUES('Hierarchy'[Location]) ,[DAX Product Count])
return IF(MINX(CALCULATETABLE(SUMMARIZE('IOH',IOH[DeviceModel]),ALLEXCEPT('Hierarchy','Hierarchy'[Location])),point_sale)=0,"true","false")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Aug 2025 23:40:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-any-column-in-Row-has-0-True-Else-False/m-p/4810893#M183980</guid>
      <dc:creator>BrianNeedsHelp</dc:creator>
      <dc:date>2025-08-28T23:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: If any column in Row has 0, True, Else False</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-any-column-in-Row-has-0-True-Else-False/m-p/4810975#M183981</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure how your semantic model looks like, but I tried to create a sample pbix file like below.&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&lt;/P&gt;
&lt;P&gt;I tried to not create calculated column, but I tried to create calculated measures, and then I inserted into the visual level filter pane to filter the visualization.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&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;&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;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;DAX Product Count: = 
VAR _result =
    SUM ( IOH[ProductCount] )
VAR _t =
    ADDCOLUMNS (
        FILTER (
            ALL ( DeviceModel[DeviceModel], DeviceModel[Sort] ),
            DeviceModel[DeviceModel] &amp;lt;&amp;gt; "Needed"
        ),
        "@result", CALCULATE ( SUM ( IOH[ProductCount] ) )
    )
RETURN
    SWITCH (
        SELECTEDVALUE ( DeviceModel[DeviceModel] ),
        "Needed", PRODUCTX ( _t, [@result] ) = 0,
        _result
    )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Visual_Filter: = 
VAR _t =
    ADDCOLUMNS (
        FILTER (
            ALL ( DeviceModel[DeviceModel], DeviceModel[Sort] ),
            DeviceModel[DeviceModel] &amp;lt;&amp;gt; "Needed"
        ),
        "@result", CALCULATE ( SUM ( IOH[ProductCount] ) )
    )
RETURN
IF(PRODUCTX(_t, [@result]) = 0,1)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Aug 2025 03:04:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-any-column-in-Row-has-0-True-Else-False/m-p/4810975#M183981</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2025-08-29T03:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: If any column in Row has 0, True, Else False</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-any-column-in-Row-has-0-True-Else-False/m-p/4811340#M183987</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="828752" data-lia-user-login="BrianNeedsHelp" class="lia-mention lia-mention-user"&gt;BrianNeedsHelp&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thank you&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;, for your insights.&lt;/P&gt;
&lt;P&gt;I was able to replicate your issue with the sample data you provided. Here is the output I obtained after adding a calculated column, and I’ve attached the PBIX file for you to review.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column Needed = 
IF (
    ( 'Table'[Device1] = 0 || ISBLANK ( 'Table'[Device1] ) )
    || ( 'Table'[Device2] = 0 || ISBLANK ( 'Table'[Device2] ) )
    || ( 'Table'[Device3] = 0 || ISBLANK ( 'Table'[Device3] ) ),
    TRUE (),
    FALSE ()
)
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Hope this helps&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Aug 2025 09:08:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-any-column-in-Row-has-0-True-Else-False/m-p/4811340#M183987</guid>
      <dc:creator>v-saisrao-msft</dc:creator>
      <dc:date>2025-08-29T09:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: If any column in Row has 0, True, Else False</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-any-column-in-Row-has-0-True-Else-False/m-p/4811882#M184007</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="291628" data-lia-user-login="Jihwan_Kim" class="lia-mention lia-mention-user"&gt;Jihwan_Kim&lt;/a&gt;&amp;nbsp;.&amp;nbsp; The tables I have are just Hierarchy and IOH.&amp;nbsp; I don't have the DeviceModel table, which has Sort.&amp;nbsp; My model looks like yours except for the DeviceModel table.&amp;nbsp; &amp;nbsp;Do I need another table to make it work?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Aug 2025 20:13:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-any-column-in-Row-has-0-True-Else-False/m-p/4811882#M184007</guid>
      <dc:creator>BrianNeedsHelp</dc:creator>
      <dc:date>2025-08-29T20:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: If any column in Row has 0, True, Else False</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-any-column-in-Row-has-0-True-Else-False/m-p/4811933#M184010</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="828752" data-lia-user-login="BrianNeedsHelp" class="lia-mention lia-mention-user"&gt;BrianNeedsHelp&lt;/a&gt;&amp;nbsp;Or in power query editor , pls try custom column&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if List.Contains({0, null}, List.Min(Record.ToList(Record.SelectFields(_, {"Device1","Device2","Device3"})))) &lt;BR /&gt;then true &lt;BR /&gt;else false&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;</description>
      <pubDate>Fri, 29 Aug 2025 19:25:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-any-column-in-Row-has-0-True-Else-False/m-p/4811933#M184010</guid>
      <dc:creator>techies</dc:creator>
      <dc:date>2025-08-29T19:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: If any column in Row has 0, True, Else False</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-any-column-in-Row-has-0-True-Else-False/m-p/4811944#M184011</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="883010" data-lia-user-login="v-saisrao-msft" class="lia-mention lia-mention-user"&gt;v-saisrao-msft&lt;/a&gt;&amp;nbsp; There is no [Device 1], [Device 2] etc.&amp;nbsp; There is only one column that has all of the devices-called DeviceModel.&amp;nbsp; So to get the devices to show up in columns I had to do a Matrix.&amp;nbsp; &amp;nbsp;I tried using like this and it puts false in all of the rows, and it puts them in the Location field.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ColChecker = 
IF (
    ( 'IOH'[DeviceCount] = 0 || ISBLANK ( IOH[DeviceCount] ) ),

    TRUE (),
    FALSE ()
)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 29 Aug 2025 20:03:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-any-column-in-Row-has-0-True-Else-False/m-p/4811944#M184011</guid>
      <dc:creator>BrianNeedsHelp</dc:creator>
      <dc:date>2025-08-29T20:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: If any column in Row has 0, True, Else False</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-any-column-in-Row-has-0-True-Else-False/m-p/4812968#M184035</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="828752" data-lia-user-login="BrianNeedsHelp" class="lia-mention lia-mention-user"&gt;BrianNeedsHelp&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thank you for the clarification. Because your data uses a long format with a single DeviceModel column containing counts, you'll need to review all devices for each Location. You can use the following calculated column:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column Needed =
VAR ZeroCheck =
    CALCULATE (
        COUNTROWS (
            FILTER ( IOH, IOH[DeviceCount] = 0 || ISBLANK ( IOH[DeviceCount] ) )
        ),
        ALLEXCEPT ( IOH, IOH[Location] )
    )
RETURN IF ( ZeroCheck &amp;gt; 0, TRUE, FALSE )
&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Sep 2025 06:29:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/If-any-column-in-Row-has-0-True-Else-False/m-p/4812968#M184035</guid>
      <dc:creator>v-saisrao-msft</dc:creator>
      <dc:date>2025-09-01T06:29:23Z</dc:date>
    </item>
  </channel>
</rss>

