<?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: Powe Query - How do get the ttl count of the column is &amp;amp;gt;0? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Powe-Query-How-do-get-the-ttl-count-of-the-column-is-amp-gt-0/m-p/4082883#M162073</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure if I understood your quetion correctly, but please check the below picture and the attached pbix file.&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;let
    Source = Data_source,
    #"Unpivoted Other Columns" = Table.UnpivotOtherColumns(Source, {"Name"}, "Attribute", "Value"),
    #"Filtered Rows" = Table.SelectRows(#"Unpivoted Other Columns", each [Value] &amp;gt;= 1),
    #"Grouped Rows" = Table.Group(#"Filtered Rows", {"Name"}, {{"TTL Item", each Table.RowCount(_), Int64.Type}}),
    #"bring back Source" = Source,
    #"Merged Queries" = Table.NestedJoin(#"bring back Source", {"Name"}, #"Grouped Rows", {"Name"}, "Grouped Rows", JoinKind.LeftOuter),
    #"Expanded Grouped Rows" = Table.ExpandTableColumn(#"Merged Queries", "Grouped Rows", {"TTL Item"}, {"TTL Item"})
in
    #"Expanded Grouped Rows"&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 06 Aug 2024 03:14:27 GMT</pubDate>
    <dc:creator>Jihwan_Kim</dc:creator>
    <dc:date>2024-08-06T03:14:27Z</dc:date>
    <item>
      <title>Powe Query - How do get the ttl count of the column is &amp;gt;0?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Powe-Query-How-do-get-the-ttl-count-of-the-column-is-amp-gt-0/m-p/4082836#M162071</link>
      <description>&lt;P&gt;Hi All, i have a table as follow and would like to add a column custom column (TTL Item as follow) in power query that counts all the rows that are &amp;gt;= 1, i have found multiple formulas but they didn't calculate correctly. Can you please help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Name&lt;/TD&gt;&lt;TD&gt;Apple&lt;/TD&gt;&lt;TD&gt;Banana&lt;/TD&gt;&lt;TD&gt;Grapes&lt;/TD&gt;&lt;TD&gt;TTL Item&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;John&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Mary&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;David&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Tom&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Tue, 06 Aug 2024 02:50:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Powe-Query-How-do-get-the-ttl-count-of-the-column-is-amp-gt-0/m-p/4082836#M162071</guid>
      <dc:creator>iekiekiek</dc:creator>
      <dc:date>2024-08-06T02:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Powe Query - How do get the ttl count of the column is &amp;gt;0?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Powe-Query-How-do-get-the-ttl-count-of-the-column-is-amp-gt-0/m-p/4082883#M162073</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am not sure if I understood your quetion correctly, but please check the below picture and the attached pbix file.&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;let
    Source = Data_source,
    #"Unpivoted Other Columns" = Table.UnpivotOtherColumns(Source, {"Name"}, "Attribute", "Value"),
    #"Filtered Rows" = Table.SelectRows(#"Unpivoted Other Columns", each [Value] &amp;gt;= 1),
    #"Grouped Rows" = Table.Group(#"Filtered Rows", {"Name"}, {{"TTL Item", each Table.RowCount(_), Int64.Type}}),
    #"bring back Source" = Source,
    #"Merged Queries" = Table.NestedJoin(#"bring back Source", {"Name"}, #"Grouped Rows", {"Name"}, "Grouped Rows", JoinKind.LeftOuter),
    #"Expanded Grouped Rows" = Table.ExpandTableColumn(#"Merged Queries", "Grouped Rows", {"TTL Item"}, {"TTL Item"})
in
    #"Expanded Grouped Rows"&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 06 Aug 2024 03:14:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Powe-Query-How-do-get-the-ttl-count-of-the-column-is-amp-gt-0/m-p/4082883#M162073</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2024-08-06T03:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: Powe Query - How do get the ttl count of the column is &amp;gt;0?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Powe-Query-How-do-get-the-ttl-count-of-the-column-is-amp-gt-0/m-p/4083775#M162092</link>
      <description>&lt;P&gt;Source Data&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Replacing null with 0&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Finding the Apple Count&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Same way Banana and Grapes Count is found&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Total Item=Apple Count+Banana Count+Grapes Count&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;If this solves your issue then please accept the same as your solution.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2024 09:34:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Powe-Query-How-do-get-the-ttl-count-of-the-column-is-amp-gt-0/m-p/4083775#M162092</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-06T09:34:05Z</dc:date>
    </item>
  </channel>
</rss>

