<?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: How implementing an hierarchy without using a recursive CTE in Data Warehouse</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/How-implementing-an-hierarchy-without-using-a-recursive-CTE/m-p/4902581#M4012</link>
    <description>&lt;P&gt;Does it have to be in T-SQL?&amp;nbsp; Could you use the DAX PATH functions?&lt;/P&gt;</description>
    <pubDate>Mon, 15 Dec 2025 21:14:54 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2025-12-15T21:14:54Z</dc:date>
    <item>
      <title>How implementing an hierarchy without using a recursive CTE</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/How-implementing-an-hierarchy-without-using-a-recursive-CTE/m-p/4902451#M4011</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've noticed that the warehouse T-SQL doesn't support the recursive ctes and this is a pity!&lt;/P&gt;&lt;P&gt;Now, how could I implement an hierarchy in T-SQL without a such useful and comfortable feature, please? Thanks&lt;/P&gt;&lt;P&gt;In the future, will fabric support this feature?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Dec 2025 17:08:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/How-implementing-an-hierarchy-without-using-a-recursive-CTE/m-p/4902451#M4011</guid>
      <dc:creator>pmscorca</dc:creator>
      <dc:date>2025-12-15T17:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: How implementing an hierarchy without using a recursive CTE</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/How-implementing-an-hierarchy-without-using-a-recursive-CTE/m-p/4902581#M4012</link>
      <description>&lt;P&gt;Does it have to be in T-SQL?&amp;nbsp; Could you use the DAX PATH functions?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Dec 2025 21:14:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/How-implementing-an-hierarchy-without-using-a-recursive-CTE/m-p/4902581#M4012</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2025-12-15T21:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: How implementing an hierarchy without using a recursive CTE</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/How-implementing-an-hierarchy-without-using-a-recursive-CTE/m-p/4902592#M4013</link>
      <description>&lt;P&gt;Hi, I need to have an hierarchy at warehouse level and not at semantic model level.&lt;/P&gt;&lt;P&gt;However, the recursive CTEs are also useful for other purposes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Update: I've created this idea&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/Fabric-Ideas/Adding-support-for-recursive-CTEs-in-a-warehouse/idi-p/4902462#M165626" target="_self"&gt;Adding support for recursive CTEs in a warehouse&lt;/A&gt;&amp;nbsp;; please vote it, thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Dec 2025 06:25:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/How-implementing-an-hierarchy-without-using-a-recursive-CTE/m-p/4902592#M4013</guid>
      <dc:creator>pmscorca</dc:creator>
      <dc:date>2025-12-16T06:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: How implementing an hierarchy without using a recursive CTE</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/How-implementing-an-hierarchy-without-using-a-recursive-CTE/m-p/4903554#M4023</link>
      <description>&lt;P&gt;&lt;SPAN data-teams="true"&gt;&amp;nbsp;&lt;/SPAN&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="719515" data-lia-user-login="pmscorca" class="lia-mention lia-mention-user"&gt;pmscorca&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;Thanks for reaching out to the Microsoft fabric community forum.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;You’ve taken the right step by raising and sharing the idea to add recursive CTE support. That’s currently the best path forward, as this is a platform capability gap rather than a configuration issue. Encouraging others to vote on it will help increase visibility and priority.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN data-teams="true"&gt;Best Regards,&amp;nbsp;&lt;BR /&gt;Community Support Team&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Dec 2025 05:35:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/How-implementing-an-hierarchy-without-using-a-recursive-CTE/m-p/4903554#M4023</guid>
      <dc:creator>v-menakakota</dc:creator>
      <dc:date>2025-12-17T05:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: How implementing an hierarchy without using a recursive CTE</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/How-implementing-an-hierarchy-without-using-a-recursive-CTE/m-p/4908372#M4040</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="719515" data-lia-user-login="pmscorca" class="lia-mention lia-mention-user"&gt;pmscorca&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you try the closure table?&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/12621873/how-can-i-create-a-closure-table-using-data-from-an-adjacency-list" target="_blank"&gt;sql - How can I create a closure table using data from an adjacency list? - Stack Overflow&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Dec 2025 23:17:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/How-implementing-an-hierarchy-without-using-a-recursive-CTE/m-p/4908372#M4040</guid>
      <dc:creator>rubayatyasmin</dc:creator>
      <dc:date>2025-12-24T23:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: How implementing an hierarchy without using a recursive CTE</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Warehouse/How-implementing-an-hierarchy-without-using-a-recursive-CTE/m-p/4913838#M4062</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;In case you have limited number of hierarchy levels and have some nullable kind of parent field, you can use the approach I used for "flattening" list of the organizational units:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SELECT&lt;BR /&gt;org_units.id_org_unit&lt;BR /&gt;, org_units.id_parent&lt;BR /&gt;, org_units.org_unit_code&lt;BR /&gt;, org_units.org_unit&lt;BR /&gt;, org_unit_hierarchy.top_unit_code&lt;BR /&gt;, org_unit_hierarchy.top_unit&lt;BR /&gt;, org_unit_hierarchy.middle_unit_code&lt;BR /&gt;, org_unit_hierarchy.middle_unit&lt;BR /&gt;, org_unit_hierarchy.low_unit_code&lt;BR /&gt;, org_unit_hierarchy.low_unit&lt;BR /&gt;FROM org_units&lt;BR /&gt;INNER JOIN (&lt;BR /&gt;SELECT&lt;BR /&gt;base_unit.id_org_unit&lt;BR /&gt;, CASE&lt;BR /&gt;WHEN third_unit.org_unit_code IS NOT NULL THEN third_unit.org_unit_code&lt;BR /&gt;WHEN second_unit.org_unit_code IS NOT NULL THEN second_unit.org_unit_code&lt;BR /&gt;ELSE base_unit.org_unit_code&lt;BR /&gt;END AS top_unit_code&lt;BR /&gt;, CASE&lt;BR /&gt;WHEN third_unit.org_unit IS NOT NULL THEN third_unit.org_unit&lt;BR /&gt;WHEN second_unit.org_unit IS NOT NULL THEN second_unit.org_unit&lt;BR /&gt;ELSE base_unit.org_unit&lt;BR /&gt;END AS top_unit&lt;BR /&gt;, CASE&lt;BR /&gt;WHEN third_unit.org_unit_code IS NOT NULL THEN second_unit.org_unit_code&lt;BR /&gt;WHEN second_unit.org_unit_code IS NOT NULL THEN base_unit.org_unit_code&lt;BR /&gt;END AS middle_unit_code&lt;BR /&gt;, CASE&lt;BR /&gt;WHEN third_unit.org_unit IS NOT NULL THEN second_unit.org_unit&lt;BR /&gt;WHEN second_unit.org_unit IS NOT NULL THEN base_unit.org_unit&lt;BR /&gt;END AS middle_unit&lt;BR /&gt;, CASE&lt;BR /&gt;WHEN third_unit.org_unit_code IS NOT NULL THEN base_unit.org_unit_code&lt;BR /&gt;END AS low_unit_code&lt;BR /&gt;, CASE&lt;BR /&gt;WHEN third_unit.org_unit IS NOT NULL THEN base_unit.org_unit&lt;BR /&gt;END AS low_unit&lt;BR /&gt;FROM org_units AS base_unit&lt;BR /&gt;LEFT OUTER JOIN org_units AS second_unit ON base_unit.id_parent = second_unit.id_org_unit&lt;BR /&gt;LEFT OUTER JOIN org_units AS third_unit ON second_unit.id_parent = third_unit.id_org_unit&lt;BR /&gt;) AS org_unit_hierarchy&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jan 2026 12:08:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Warehouse/How-implementing-an-hierarchy-without-using-a-recursive-CTE/m-p/4913838#M4062</guid>
      <dc:creator>JanisAlksnisRS</dc:creator>
      <dc:date>2026-01-07T12:08:46Z</dc:date>
    </item>
  </channel>
</rss>

