<?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: Dynamic Legend Switch: Toggling between Detailed and Aggregated views without Bookmarks in Custom Visuals Development Discussion</title>
    <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Dynamic-Legend-Switch-Toggling-between-Detailed-and-Aggregated/m-p/5158617#M13140</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlonCarmel_0-1777203459839.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1334851i524EDA3622C443B0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AlonCarmel_0-1777203459839.png" alt="AlonCarmel_0-1777203459839.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2788a8da-9171-400e-9407-f5ddd84d1700.jpg" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1334852i12B3A55FADEE3656/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2788a8da-9171-400e-9407-f5ddd84d1700.jpg" alt="2788a8da-9171-400e-9407-f5ddd84d1700.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 26 Apr 2026 11:38:10 GMT</pubDate>
    <dc:creator>AlonCarmel</dc:creator>
    <dc:date>2026-04-26T11:38:10Z</dc:date>
    <item>
      <title>Dynamic Legend Switch: Toggling between Detailed and Aggregated views without Bookmarks</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Dynamic-Legend-Switch-Toggling-between-Detailed-and-Aggregated/m-p/5158610#M13139</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I’m trying to implement a toggle in my Power BI report that allows users to switch the granularity of a Stacked Column Chart's Legend. I want to avoid using Bookmarks because I have several other slicers on the page and want to maintain the state.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The Scenario:&lt;/STRONG&gt; I have a financial report showing "Changes in CSM".&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Detailed View:&lt;/STRONG&gt; Should show 8 categories (Lapses, Mortality, Expenses, etc.).&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Summary View:&lt;/STRONG&gt; Should group those 8 into only 3 categories: "Other", "Other estimates", and "Change in estimate" (which is a sum of the remaining 5).&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRONG&gt;What I’ve tried:&lt;/STRONG&gt; I created a separate DATATABLE for the Summary view and a Measure using SWITCH to aggregate the values. I then tried to use &lt;STRONG&gt;Field Parameters&lt;/STRONG&gt; to switch between the parameters column of the &lt;STRONG&gt;Original Table&lt;/STRONG&gt; and the parameters column of the &lt;STRONG&gt;Summary Table&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The Issue:&lt;/STRONG&gt; When I use the Field Parameter in the Legend and the Slicer, the visual either goes blank or the slicer doesn't filter the chart correctly. It seems like the relationship between the Field Parameter and the underlying measures is breaking.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Current Setup:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Detailed Table (Changes in estimate):&lt;/STRONG&gt; Contains 8 rows of parameter names.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Summary Table (Changes in estimate1):&lt;/STRONG&gt; Contains 3 rows.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;The Aggregation Measure:&lt;BR /&gt;&lt;/STRONG&gt;Changes in estimates CSM parameter =&lt;BR /&gt;VAR Numerator =&lt;BR /&gt;SUMX(&lt;BR /&gt;VALUES( 'Changes in estimate'[parameters] ),&lt;BR /&gt;VAR p = 'Changes in estimate'[parameters]&lt;BR /&gt;RETURN&lt;BR /&gt;SWITCH(&lt;BR /&gt;TRUE(),&lt;BR /&gt;p = "Change in interest curve", [Change in interest curve],&lt;BR /&gt;p = "Expenses", [Expenses],&lt;BR /&gt;p = "Lapses", [Lapses],&lt;BR /&gt;p = "Morbidity", [Morbidity],&lt;BR /&gt;p = "Mortality", [Mortality],&lt;BR /&gt;p = "Other estimates", [Other estimates (Changes in csm)],&lt;BR /&gt;p = "Other", [CHanges in estimates Other],&lt;BR /&gt;BLANK()&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;RETURN Numerator&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question:&lt;/STRONG&gt; How can I correctly set up a &lt;STRONG&gt;Field Parameter&lt;/STRONG&gt; or a &lt;STRONG&gt;Calculation Group&lt;/STRONG&gt; so that when a user selects "Summary View", the Legend and the Slicer automatically collapse to those 3 categories, and when "Detailed" is selected, it expands back to 8?&lt;/P&gt;&lt;P&gt;Any help or a DAX pattern for this "Dynamic Granularity" would be much appreciated!&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please find attached two images representing the two states I want to toggle between using the switch button:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Image 1 (Summary View):&lt;/STRONG&gt; Shows the chart with only 3 categories (Change in estimate, Other, Other estimates) as shown in the slicer and legend.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Image 2 (Detailed View):&lt;/STRONG&gt; Shows the full breakdown of all categories (Lapses, Mortality, Expenses, etc.) as it was originally.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Sun, 26 Apr 2026 11:31:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Dynamic-Legend-Switch-Toggling-between-Detailed-and-Aggregated/m-p/5158610#M13139</guid>
      <dc:creator>AlonCarmel</dc:creator>
      <dc:date>2026-04-26T11:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Legend Switch: Toggling between Detailed and Aggregated views without Bookmarks</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Dynamic-Legend-Switch-Toggling-between-Detailed-and-Aggregated/m-p/5158617#M13140</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlonCarmel_0-1777203459839.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1334851i524EDA3622C443B0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AlonCarmel_0-1777203459839.png" alt="AlonCarmel_0-1777203459839.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2788a8da-9171-400e-9407-f5ddd84d1700.jpg" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1334852i12B3A55FADEE3656/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2788a8da-9171-400e-9407-f5ddd84d1700.jpg" alt="2788a8da-9171-400e-9407-f5ddd84d1700.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Apr 2026 11:38:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Dynamic-Legend-Switch-Toggling-between-Detailed-and-Aggregated/m-p/5158617#M13140</guid>
      <dc:creator>AlonCarmel</dc:creator>
      <dc:date>2026-04-26T11:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Legend Switch: Toggling between Detailed and Aggregated views without Bookmarks</title>
      <link>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Dynamic-Legend-Switch-Toggling-between-Detailed-and-Aggregated/m-p/5158821#M13141</link>
      <description>&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1577882"&gt;@AlonCarmel&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I understand your requirement correctly, then the easiest way to achive your requirement is through a custom column or by creating a group column&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-grouping-and-binning" target="_blank"&gt;https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-grouping-and-binning&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I would suggest you to create a custom column in power query which categorizies 8 individual categories in 3&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a field parameter table with the actual column and also the custom column. Place the field parameter column in to your visual. Then &amp;nbsp;you will be able to switch between the summary view and detailed view.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this answers your question&amp;nbsp;&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Connect on &lt;A href="https://www.linkedin.com/in/tharun-kumar-ravikrindhi/" target="_blank" rel="noopener"&gt;LinkedIn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You can read my blogs here:&amp;nbsp;&lt;A href="https://www.techietips.co.in/" target="_blank"&gt;https://www.techietips.co.in/&lt;/A&gt;&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;
&lt;DIV class=""&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;DIV class=""&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;DIV style="border-radius: 1px; padding: 10px; border: solid #cccccc 1px; background: #fafafa no-repeat right 10px center;"&gt;&lt;BR /&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;STRONG style="margin-right: 3px;"&gt;&lt;STRONG style="margin-right: 3px;"&gt;Did I answer your question? Mark my post as a solution!&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;STRONG style="margin-right: 3px;"&gt;&lt;STRONG style="margin-right: 3px;"&gt;If I helped you, click on the Thumbs Up to give Kudos.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;BR /&gt;
&lt;P style="padding: 0; margin: 5px 50px 0 0;"&gt;Proud to be a Super User!&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PBI_SuperUser_Rank@2x.png" style="width: 70px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1107700iD5193F780866AA58/image-size/large?v=v2&amp;amp;px=999" width="70" role="button" title="PBI_SuperUser_Rank@2x.png" alt="PBI_SuperUser_Rank@2x.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 27 Apr 2026 02:56:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Custom-Visuals-Development/Dynamic-Legend-Switch-Toggling-between-Detailed-and-Aggregated/m-p/5158821#M13141</guid>
      <dc:creator>tharunkumarRTK</dc:creator>
      <dc:date>2026-04-27T02:56:29Z</dc:date>
    </item>
  </channel>
</rss>

