<?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 Cascading Filters and Columns in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Cascading-Filters-and-Columns/m-p/3401046#M44111</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you help me set up my data in a way where the slicers are cascading along with the visual.&lt;/P&gt;&lt;P&gt;Here is a sample data:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="baconandpizza_2-1693162989987.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/961021i4D739A3D643732A7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="baconandpizza_2-1693162989987.png" alt="baconandpizza_2-1693162989987.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And this is how I want my visualization to look like:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="baconandpizza_3-1693163073370.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/961022i9605423E6D579D91/image-size/medium?v=v2&amp;amp;px=400" role="button" title="baconandpizza_3-1693163073370.png" alt="baconandpizza_3-1693163073370.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To explain further, I if Ticket 1 is filtered (for example, it is filtered to A), Ticket 2 will be in the visualization (so, it should be AA and BB in the chart). But, how can I do this without dragging each column in the visual field when I change the filters.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since, I want my chart to show Ticket 3 in the X-axis when Ticket 2 is filtered. I have to drag Ticket 3 column in the visual to do this. Is there a way to do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much!&lt;/P&gt;</description>
    <pubDate>Sun, 27 Aug 2023 19:07:05 GMT</pubDate>
    <dc:creator>baconandpizza</dc:creator>
    <dc:date>2023-08-27T19:07:05Z</dc:date>
    <item>
      <title>Cascading Filters and Columns</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Cascading-Filters-and-Columns/m-p/3401046#M44111</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you help me set up my data in a way where the slicers are cascading along with the visual.&lt;/P&gt;&lt;P&gt;Here is a sample data:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="baconandpizza_2-1693162989987.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/961021i4D739A3D643732A7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="baconandpizza_2-1693162989987.png" alt="baconandpizza_2-1693162989987.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And this is how I want my visualization to look like:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="baconandpizza_3-1693163073370.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/961022i9605423E6D579D91/image-size/medium?v=v2&amp;amp;px=400" role="button" title="baconandpizza_3-1693163073370.png" alt="baconandpizza_3-1693163073370.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To explain further, I if Ticket 1 is filtered (for example, it is filtered to A), Ticket 2 will be in the visualization (so, it should be AA and BB in the chart). But, how can I do this without dragging each column in the visual field when I change the filters.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since, I want my chart to show Ticket 3 in the X-axis when Ticket 2 is filtered. I have to drag Ticket 3 column in the visual to do this. Is there a way to do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much!&lt;/P&gt;</description>
      <pubDate>Sun, 27 Aug 2023 19:07:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Cascading-Filters-and-Columns/m-p/3401046#M44111</guid>
      <dc:creator>baconandpizza</dc:creator>
      <dc:date>2023-08-27T19:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: Cascading Filters and Columns</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Cascading-Filters-and-Columns/m-p/3403803#M44142</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/608993"&gt;@baconandpizza&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I created a sample pbix file(see &lt;EM&gt;&lt;STRONG&gt;the attachment&lt;/STRONG&gt;&lt;/EM&gt;), please check if that is what you want.&lt;/P&gt;
&lt;P&gt;1. Select the columns "Ticket 1",&amp;nbsp;"Ticket 2","Ticket 3","Ticket 4" and&amp;nbsp;"Ticket 5" and unpivot these columns&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;= Table.Unpivot(#"Changed Type", {"Ticket 1", "Ticket 2", "Ticket 3", "Ticket 4", "Ticket 5"}, "Ticket Type", "Value")&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vyiruanmsft_0-1693296347838.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/961716i75A7E742993092D9/image-size/large?v=v2&amp;amp;px=999" role="button" title="vyiruanmsft_0-1693296347838.png" alt="vyiruanmsft_0-1693296347838.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;2. Create a dimension table&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Tickets = GROUPBY('Table','Table'[Ticket Type],'Table'[Value])&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vyiruanmsft_2-1693296466384.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/961718iEECA0C210B75BCAA/image-size/large?v=v2&amp;amp;px=999" role="button" title="vyiruanmsft_2-1693296466384.png" alt="vyiruanmsft_2-1693296466384.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;3. Create a measure as below to get the count of customer id which fulfill the filters&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Count of customer = 
VAR _selticket =
    SELECTEDVALUE ( 'Tickets'[Ticket Type] )
VAR _seltvalue =
    ALLSELECTED ( 'Tickets'[Value] )
VAR _nticket =
    (
        LEFT ( _selticket, LEN ( _selticket ) - 1 )
            &amp;amp; ( VALUE ( RIGHT ( _selticket, 1 ) ) + 1 )
    )
VAR _tab =
    CALCULATETABLE (
        VALUES ( 'Table'[Customer ID] ),
        FILTER (
            ALLSELECTED ( 'Table' ),
            'Table'[Ticket Type] = _selticket
                &amp;amp;&amp;amp; 'Table'[Value] IN _seltvalue
        )
    )
VAR _tab2 =
    CALCULATETABLE (
        VALUES ( 'Table'[Value] ),
        FILTER (
            ALLSELECTED ( 'Table' ),
            'Table'[Ticket Type] = _nticket
                &amp;amp;&amp;amp; 'Table'[Customer ID] IN _tab
        )
    )
RETURN
    CALCULATE (
        DISTINCTCOUNT ( 'Table'[Customer ID] ),
        FILTER ( 'Table', 'Table'[Value] IN _tab2 )
    )&lt;/LI-CODE&gt;
&lt;P&gt;4. Create a column chart&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vyiruanmsft_3-1693296536710.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/961719i0A81E52845509988/image-size/large?v=v2&amp;amp;px=999" role="button" title="vyiruanmsft_3-1693296536710.png" alt="vyiruanmsft_3-1693296536710.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;By the way,&lt;/STRONG&gt; &lt;/EM&gt;if select "&lt;STRONG&gt;Ticket 5&lt;/STRONG&gt;", what's the data should display in the visual?&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 08:10:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Cascading-Filters-and-Columns/m-p/3403803#M44142</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-29T08:10:31Z</dc:date>
    </item>
  </channel>
</rss>

