<?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: Measure filtering within Graphs not functioning as expected in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-filtering-within-Graphs-not-functioning-as-expected/m-p/2547079#M71962</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="391142" data-lia-user-login="JamesLindsay101" class="lia-mention lia-mention-user"&gt;JamesLindsay101&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT color="#999999"&gt;//From how it's interacting, it looks like the filtering occurring to split up the measure into the bars looks like it's filtering the measure&amp;nbsp;[Past 12 Month Sick Days] but not the [Active Employees] and [Headcount (12 Months Prior)] measures. However, &lt;FONT color="#808080"&gt;&lt;U&gt;when I use a filter on the page for those departments&lt;/U&gt;&lt;/FONT&gt;, it does in fact filter the whole measure, and not produce the issue described above.&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you use the same column for the axis and filter in your scenario?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In addition, try to put "&lt;SPAN&gt;Annualised Sickness Ratio&lt;/SPAN&gt;" measure into the bar chart and check if there are any difference compared with the result in the card.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Icey&lt;/P&gt;</description>
    <pubDate>Mon, 30 May 2022 08:10:40 GMT</pubDate>
    <dc:creator>Icey</dc:creator>
    <dc:date>2022-05-30T08:10:40Z</dc:date>
    <item>
      <title>Measure filtering within Graphs not functioning as expected</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-filtering-within-Graphs-not-functioning-as-expected/m-p/2538702#M71444</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an issue where a measure is being used in a horizontal bar graph; along the Y axis is split out by Department and along the X axis is the measure value for the different departments. The measure when split on the graph seems to be not filtering by each department throughout the whole graph.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Issue seems to be the graph. For each bar, its not calculating the measure correctly. The bars of the bar graph (see picture below) total the annualised sick ratio (same measure that is used in the graph, see picture at the bottom). Why is this happening? Shouldn't the bars being calculating their own sickness ratio based on the annual sickness ratio measurement below?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From how it's interacting, it looks like the filtering occurring to split up the measure into the bars looks like it's filtering the measure&amp;nbsp;&lt;SPAN&gt;[Past 12 Month Sick Days] but not the [Active Employees] and [Headcount (12 Months Prior)] measures. However, when I use a filter on the page for those departments, it does in fact filter the whole measure, and not produce the issue described above.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In Summary I would like my bars in my bar graph to be calculating their own annual sickness ratio, and I'm unsure if it's because of the relationships put together, or if graphs can't do something that complicated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The measure(s) is calculated as below:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Annualised Sickness Ratio = ([Past 12 Month Sick Days]/((([Active Employees]+[Headcount (12 Months Prior)])*252)/2))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Where&amp;nbsp;&lt;SPAN&gt;Both [Active Employees] and [Headcount (12 Months Prior] are measures inside a table called Employee Listing and&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;[Past 12 Month Sick Days] = &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR SelectedDate=LASTDATE('Date Dimension'[Date])&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;VAR SelectedDate12MonthsPrior=SAMEPERIODLASTYEAR(SelectedDate)+1&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;RETURN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE(SUM(Absences[In Year Adjusted Total Sick Workdays]),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DATESBETWEEN('Date Dimension'[Date],SelectedDate12MonthsPrior,SelectedDate),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Absences[STS/LTS?]="STS")&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Where In Year Adjusted Total Sick Workdays is a measured column part of the absences table, see relationship map below.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;NB: I can't share raw data as it's sensitive information. Thanks for your help in advance.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;img /&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 25 May 2022 11:11:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-filtering-within-Graphs-not-functioning-as-expected/m-p/2538702#M71444</guid>
      <dc:creator>JamesLindsay101</dc:creator>
      <dc:date>2022-05-25T11:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Measure filtering within Graphs not functioning as expected</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-filtering-within-Graphs-not-functioning-as-expected/m-p/2547079#M71962</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="391142" data-lia-user-login="JamesLindsay101" class="lia-mention lia-mention-user"&gt;JamesLindsay101&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT color="#999999"&gt;//From how it's interacting, it looks like the filtering occurring to split up the measure into the bars looks like it's filtering the measure&amp;nbsp;[Past 12 Month Sick Days] but not the [Active Employees] and [Headcount (12 Months Prior)] measures. However, &lt;FONT color="#808080"&gt;&lt;U&gt;when I use a filter on the page for those departments&lt;/U&gt;&lt;/FONT&gt;, it does in fact filter the whole measure, and not produce the issue described above.&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you use the same column for the axis and filter in your scenario?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In addition, try to put "&lt;SPAN&gt;Annualised Sickness Ratio&lt;/SPAN&gt;" measure into the bar chart and check if there are any difference compared with the result in the card.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Icey&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2022 08:10:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Measure-filtering-within-Graphs-not-functioning-as-expected/m-p/2547079#M71962</guid>
      <dc:creator>Icey</dc:creator>
      <dc:date>2022-05-30T08:10:40Z</dc:date>
    </item>
  </channel>
</rss>

