<?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: First hierarchical nonblank value in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/First-hierarchical-nonblank-value/m-p/1016246#M13071</link>
    <description>Yes, I tried, but I think it is a fundamental part of a more complicated function to be written.</description>
    <pubDate>Wed, 08 Apr 2020 22:42:56 GMT</pubDate>
    <dc:creator>AGo</dc:creator>
    <dc:date>2020-04-08T22:42:56Z</dc:date>
    <item>
      <title>First hierarchical nonblank value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/First-hierarchical-nonblank-value/m-p/1015937#M13059</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I've got a table with these columns:&amp;nbsp; ParentID(text), ID(text), Attribute(text).&lt;/P&gt;&lt;P&gt;For each ID I need the first upper hierarchical non-blank Attribute to be returned in a calculated column.&lt;/P&gt;&lt;P&gt;eg. if Attribute of a row is blank, suppose that this row is logically at the 6th hierarchy depth level, the function will scan Attribute at its related level 5,4,3.... and so on, until it finds a non-blank value.&lt;/P&gt;&lt;P&gt;For now I know I have max 15 fixed depths of hierarchy, but I hope there's a function that can dynamically calculate what I need, regardless of the possible depths determined by the database structure.&lt;/P&gt;&lt;P&gt;Is it possible in PowerBI?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 18:51:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/First-hierarchical-nonblank-value/m-p/1015937#M13059</guid>
      <dc:creator>AGo</dc:creator>
      <dc:date>2020-04-08T18:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: First hierarchical nonblank value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/First-hierarchical-nonblank-value/m-p/1016077#M13068</link>
      <description>&lt;P&gt;Should be, check out the PATH function.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 20:40:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/First-hierarchical-nonblank-value/m-p/1016077#M13068</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2020-04-08T20:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: First hierarchical nonblank value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/First-hierarchical-nonblank-value/m-p/1016246#M13071</link>
      <description>Yes, I tried, but I think it is a fundamental part of a more complicated function to be written.</description>
      <pubDate>Wed, 08 Apr 2020 22:42:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/First-hierarchical-nonblank-value/m-p/1016246#M13071</guid>
      <dc:creator>AGo</dc:creator>
      <dc:date>2020-04-08T22:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: First hierarchical nonblank value</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/First-hierarchical-nonblank-value/m-p/1021261#M13220</link>
      <description>&lt;P&gt;First, in PBI the only way to implement parent-child hierarchies is to expand them to fixed-depth hierarchies. I hope you're aware of this. So you have to flatten the hierarchy. Once you've got this flat structure, it should be pretty easy to achieve what you want by very standard means.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For how to turn a parent-child hierarchy into a flattened one please find an article on &lt;A href="http://www.sqlbi.com" target="_blank"&gt;www.sqlbi.com&lt;/A&gt;. Just type "parent child" into the search box and you should be presented with a handful of articles.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, please remember that you can unpivot your structure into a second (hidden) table and from such a table it should be easy to calculate what you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best&lt;BR /&gt;D&lt;/P&gt;</description>
      <pubDate>Sun, 12 Apr 2020 13:02:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/First-hierarchical-nonblank-value/m-p/1021261#M13220</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-12T13:02:49Z</dc:date>
    </item>
  </channel>
</rss>

