<?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: Disconnected Table - Filter the List of Items on X Axis (and not measure), is it Possible? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Disconnected-Table-Filter-the-List-of-Items-on-X-Axis-and-not/m-p/2806376#M88539</link>
    <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="437133" data-lia-user-login="v-xiaosun-msft" class="lia-mention lia-mention-user"&gt;v-xiaosun-msft&lt;/a&gt;&amp;nbsp;Thanks for your inputs and the PBIX file, I definately made progress with regards to restricting the stations in the bar graph meeting measure2. Only Problem next is, the Measures (Arrivals and Departures), insetad of showing the Bar Graph departures/Arrivals for specific stations, it is showing TOTAL of all Arrivals or Departures for the stations in the Graph.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to create a measure (for example, Arrivals Divided by Departures to get a Percent) and add to the bar graph Y axis but that added all the stations.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts on how to get the measure accurate as appropriate for each station?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You.&lt;/P&gt;</description>
    <pubDate>Thu, 29 Sep 2022 12:23:55 GMT</pubDate>
    <dc:creator>VbOnline</dc:creator>
    <dc:date>2022-09-29T12:23:55Z</dc:date>
    <item>
      <title>Disconnected Table - Filter the List of Items on X Axis (and not measure), is it Possible?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Disconnected-Table-Filter-the-List-of-Items-on-X-Axis-and-not/m-p/2803310#M88296</link>
      <description>&lt;P&gt;All&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a situation where in, based on selection of a particular "Station" from a slicer, I need to get all "OTHER" stations which are of same Size (by number of trains arriving and departing) and show those other stations in the Bar Graph X Axis and a measure for those station.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have seen lot of posting or video's where, people have used disconnected table to calculate a measure and restrict the measure. But this is restricting the Measure (typically on Y Axis) but no example to filter X axis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The below is my base data set:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;StationCode&lt;/TD&gt;&lt;TD&gt;StationSize&lt;/TD&gt;&lt;TD&gt;StationArrivals&lt;/TD&gt;&lt;TD&gt;StationDepartures&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;HYD&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;22&lt;/TD&gt;&lt;TD&gt;31&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;SEC&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;21&lt;/TD&gt;&lt;TD&gt;33&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;MAS&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;34&lt;/TD&gt;&lt;TD&gt;45&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;BOM&lt;/TD&gt;&lt;TD&gt;12&lt;/TD&gt;&lt;TD&gt;54&lt;/TD&gt;&lt;TD&gt;64&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;BLR&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;22&lt;/TD&gt;&lt;TD&gt;43&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;BPL&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;34&lt;/TD&gt;&lt;TD&gt;22&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;KOL&lt;/TD&gt;&lt;TD&gt;12&lt;/TD&gt;&lt;TD&gt;34&lt;/TD&gt;&lt;TD&gt;23&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The user will come and select a station, lets assume HYD. Based on that selection, I can get the Size by using SELECTEDVALUE or LOOKUP. So, I get a value of 5.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using that 5, I need to pick up all stations with size of 5, that will give me BLR, SEC and HYD.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For these three stations, I need to show a graph where the Station is on X Axis and the arrival/departure count is on Y Axis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How is it possible to restrict the X axis (stations to show), is Disconnected table a solution? For example, the below is how the bar graph will look like but it will only show 3 stations than 7 stations in my table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated, either via Disconnected Table or any other mechanism.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Sep 2022 15:31:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Disconnected-Table-Filter-the-List-of-Items-on-X-Axis-and-not/m-p/2803310#M88296</guid>
      <dc:creator>VbOnline</dc:creator>
      <dc:date>2022-09-28T15:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Disconnected Table - Filter the List of Items on X Axis (and not measure), is it Possible?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Disconnected-Table-Filter-the-List-of-Items-on-X-Axis-and-not/m-p/2805749#M88472</link>
      <description>&lt;P&gt;You could set up a disconnected table as&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Station slicer = ALLNOBLANKROW(Stations[Name], Stations[Size])&lt;/LI-CODE&gt;
&lt;P&gt;and use that in a slicer. Then create a measure like&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Station is visible =
VAR VisibleStations =
    CALCULATETABLE (
        VALUES ( Stations[Name] ),
        TREATAS ( VALUES ( 'Station slicer'[Size] ), Stations[Size] )
    )
RETURN
    IF ( SELECTEDVALUE ( Stations[Name] ) IN VisibleStations, 1 )
&lt;/LI-CODE&gt;
&lt;P&gt;and use that as a visual level filter on your bar chart, to only show when the value is 1.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 09:29:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Disconnected-Table-Filter-the-List-of-Items-on-X-Axis-and-not/m-p/2805749#M88472</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2022-09-29T09:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: Disconnected Table - Filter the List of Items on X Axis (and not measure), is it Possible?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Disconnected-Table-Filter-the-List-of-Items-on-X-Axis-and-not/m-p/2805759#M88474</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="446812" data-lia-user-login="VbOnline" class="lia-mention lia-mention-user"&gt;VbOnline&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to your description, here is my solution.&lt;/P&gt;
&lt;P&gt;Create a measure to get the size when you select the “StationCode” in slicer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
IF (
    SELECTEDVALUE ( 'Table'[StationCode] ) = MAX ( 'Table'[StationCode] ),
    MAX ( 'Table'[StationSize] )
)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Create a table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table 2 =
SUMMARIZE ( 'Table', 'Table'[StationCode], 'Table'[StationSize] )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a measure to get the “StationCode” with the same size.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure2 =
IF ( 'Table'[Measure] = MAX ( 'Table 2'[StationSize] ), 1 )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Put columns to a chart.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Final output:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I attach my sample below for your reference.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _ xiaosun&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps,&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 09:30:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Disconnected-Table-Filter-the-List-of-Items-on-X-Axis-and-not/m-p/2805759#M88474</guid>
      <dc:creator>v-xiaosun-msft</dc:creator>
      <dc:date>2022-09-29T09:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: Disconnected Table - Filter the List of Items on X Axis (and not measure), is it Possible?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Disconnected-Table-Filter-the-List-of-Items-on-X-Axis-and-not/m-p/2806376#M88539</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="437133" data-lia-user-login="v-xiaosun-msft" class="lia-mention lia-mention-user"&gt;v-xiaosun-msft&lt;/a&gt;&amp;nbsp;Thanks for your inputs and the PBIX file, I definately made progress with regards to restricting the stations in the bar graph meeting measure2. Only Problem next is, the Measures (Arrivals and Departures), insetad of showing the Bar Graph departures/Arrivals for specific stations, it is showing TOTAL of all Arrivals or Departures for the stations in the Graph.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to create a measure (for example, Arrivals Divided by Departures to get a Percent) and add to the bar graph Y axis but that added all the stations.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts on how to get the measure accurate as appropriate for each station?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 12:23:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Disconnected-Table-Filter-the-List-of-Items-on-X-Axis-and-not/m-p/2806376#M88539</guid>
      <dc:creator>VbOnline</dc:creator>
      <dc:date>2022-09-29T12:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Disconnected Table - Filter the List of Items on X Axis (and not measure), is it Possible?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Disconnected-Table-Filter-the-List-of-Items-on-X-Axis-and-not/m-p/2806535#M88564</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="240987" data-lia-user-login="johnt75" class="lia-mention lia-mention-user"&gt;johnt75&lt;/a&gt;&amp;nbsp;I think this did the trick, I am able to use the methodology you explained to get the output I want. I use case I have given is for one criteria which is "Size", there are couple of more criterias I need to add, let me extend your methodology with those and get back.&amp;nbsp; thanks a lot for your inputs.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 13:18:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Disconnected-Table-Filter-the-List-of-Items-on-X-Axis-and-not/m-p/2806535#M88564</guid>
      <dc:creator>VbOnline</dc:creator>
      <dc:date>2022-09-29T13:18:32Z</dc:date>
    </item>
  </channel>
</rss>

