<?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 Introducing new Dynamic Multi-Level Ranking &amp;amp; Hierarchy Percentages with Visual Calculations in Visual Calculations Gallery</title>
    <link>https://community.fabric.microsoft.com/t5/Visual-Calculations-Gallery/Introducing-new-Dynamic-Multi-Level-Ranking-amp-Hierarchy/m-p/4878924#M9</link>
    <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dynamic Multi-Level Ranking &amp;amp; Hierarchy Percentages with Visual Calculations&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This visual demonstrates a fully dynamic Matrix analysis built entirely with Visual Calculations. It supports a multi-level hierarchy (Region → Country → City → Store) and automatically adapts as the user drills up or down.&lt;/P&gt;&lt;P&gt;A &lt;STRONG&gt;Selected Metric&lt;/STRONG&gt; field parameter drives all Visual Calculations. All rankings, percentages, and totals dynamically recalculate based on the user’s chosen metric (for example: Value or Row Count).&lt;/P&gt;&lt;P&gt;A lightweight &lt;STRONG&gt;Level Label&lt;/STRONG&gt; identifies the current row depth (Region, Country, City, Store) using ISINSCOPE. Each ranking VC returns a value only when the Matrix is at the correct level:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Rank All&lt;/STRONG&gt; – ranking across the entire visual&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Rank in Region&lt;/STRONG&gt; – shown only at the Country level&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Rank in Country&lt;/STRONG&gt; – shown only at the City level&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Rank in City&lt;/STRONG&gt; – shown only at the Store level&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;All ranks are formatted using FORMAT() for a clean whole-number display inside the Matrix.&lt;BR /&gt;(If you want to apply conditional formatting, remove the FORMAT wrapper inside the VC.)&lt;/P&gt;&lt;P&gt;You can extend the hierarchy to any number of levels by following the exact same pattern.&lt;/P&gt;&lt;P&gt;The model also includes hierarchical percentage calculations:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Share of Parent&lt;/STRONG&gt; – contribution to the immediate parent node, using COLLAPSE&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Share of Total&lt;/STRONG&gt; – contribution to the entire dataset, using COLLAPSEALL&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Both percentage measures are formatted with “0.00%” for clear readability.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Visual Calculation functions used:&lt;/STRONG&gt;&lt;BR /&gt;RANK, ORDERBY, PARTITIONBY, COLLAPSE, COLLAPSEALL, FORMAT, DIVIDE&lt;/P&gt;&lt;P&gt;This pattern provides a clean, dynamic, drill-aware analytical matrix that can be extended further in future posts.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;By Hadi Kheireddine&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Have fun exploring Visual Calculations!&lt;/P&gt;&lt;!--    LinkedIn Button at the End    --&gt;&lt;P&gt;&lt;A href="https://www.linkedin.com/in/hadi-kheireddine-7bb99b245" target="_blank" rel="noopener"&gt;&lt;span class="lia-unicode-emoji" title=":link:"&gt;🔗&lt;/span&gt;LinkedIn &lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Nov 2025 12:18:16 GMT</pubDate>
    <dc:creator>gopy6243</dc:creator>
    <dc:date>2025-11-19T12:18:16Z</dc:date>
    <item>
      <title>Introducing new Dynamic Multi-Level Ranking &amp; Hierarchy Percentages with Visual Calculations</title>
      <link>https://community.fabric.microsoft.com/t5/Visual-Calculations-Gallery/Introducing-new-Dynamic-Multi-Level-Ranking-amp-Hierarchy/m-p/4878924#M9</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dynamic Multi-Level Ranking &amp;amp; Hierarchy Percentages with Visual Calculations&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This visual demonstrates a fully dynamic Matrix analysis built entirely with Visual Calculations. It supports a multi-level hierarchy (Region → Country → City → Store) and automatically adapts as the user drills up or down.&lt;/P&gt;&lt;P&gt;A &lt;STRONG&gt;Selected Metric&lt;/STRONG&gt; field parameter drives all Visual Calculations. All rankings, percentages, and totals dynamically recalculate based on the user’s chosen metric (for example: Value or Row Count).&lt;/P&gt;&lt;P&gt;A lightweight &lt;STRONG&gt;Level Label&lt;/STRONG&gt; identifies the current row depth (Region, Country, City, Store) using ISINSCOPE. Each ranking VC returns a value only when the Matrix is at the correct level:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Rank All&lt;/STRONG&gt; – ranking across the entire visual&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Rank in Region&lt;/STRONG&gt; – shown only at the Country level&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Rank in Country&lt;/STRONG&gt; – shown only at the City level&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Rank in City&lt;/STRONG&gt; – shown only at the Store level&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;All ranks are formatted using FORMAT() for a clean whole-number display inside the Matrix.&lt;BR /&gt;(If you want to apply conditional formatting, remove the FORMAT wrapper inside the VC.)&lt;/P&gt;&lt;P&gt;You can extend the hierarchy to any number of levels by following the exact same pattern.&lt;/P&gt;&lt;P&gt;The model also includes hierarchical percentage calculations:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Share of Parent&lt;/STRONG&gt; – contribution to the immediate parent node, using COLLAPSE&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Share of Total&lt;/STRONG&gt; – contribution to the entire dataset, using COLLAPSEALL&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Both percentage measures are formatted with “0.00%” for clear readability.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Visual Calculation functions used:&lt;/STRONG&gt;&lt;BR /&gt;RANK, ORDERBY, PARTITIONBY, COLLAPSE, COLLAPSEALL, FORMAT, DIVIDE&lt;/P&gt;&lt;P&gt;This pattern provides a clean, dynamic, drill-aware analytical matrix that can be extended further in future posts.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;By Hadi Kheireddine&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Have fun exploring Visual Calculations!&lt;/P&gt;&lt;!--    LinkedIn Button at the End    --&gt;&lt;P&gt;&lt;A href="https://www.linkedin.com/in/hadi-kheireddine-7bb99b245" target="_blank" rel="noopener"&gt;&lt;span class="lia-unicode-emoji" title=":link:"&gt;🔗&lt;/span&gt;LinkedIn &lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Nov 2025 12:18:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Visual-Calculations-Gallery/Introducing-new-Dynamic-Multi-Level-Ranking-amp-Hierarchy/m-p/4878924#M9</guid>
      <dc:creator>gopy6243</dc:creator>
      <dc:date>2025-11-19T12:18:16Z</dc:date>
    </item>
  </channel>
</rss>

