<?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: Filter a chart based in a minium number of responses in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-a-chart-based-in-a-minium-number-of-responses/m-p/3139522#M112034</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="444108" data-lia-user-login="IEG_CSC12" class="lia-mention lia-mention-user"&gt;IEG_CSC12&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can filter the minimum number of answers considering every answer by using a measure that calculates the total number of responses and then applies the filter to the measure instead of the columns that contain the individual responses.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, let's say you have a table called "Survey" with columns "Response" and "RespondentID". You can create a measure called "Total Responses" with the following formula:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#993300"&gt;Total Responses = DISTINCTCOUNT(Survey[RespondentID])&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This measure calculates the total number of unique RespondentIDs in the Survey table. You can then create another measure called "Show Chart" that checks if the Total Responses are greater than or equal to 3:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;FONT size="2" color="#993300"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;Show Chart = IF([Total Responses]&amp;gt;=3, "Yes", "No")&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Now you can use the "Show Chart" measure to filter the chart. If the "Show Chart" measure returns "Yes", the chart will be displayed, and if it returns "No", the chart will be hidden. This way you are filtering the total number of responses rather than individual responses.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best regards,&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.linkedin.com/in/isaac-chavarria-artavia-38b982184/" target="_self" rel="nofollow noopener noreferrer"&gt;Isaac Chavarria&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;SPAN&gt;, then please consider&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;Accepting it as the solution&amp;nbsp;and giving Kudos&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;to help the other members find it more quickly&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Mar 2023 17:51:31 GMT</pubDate>
    <dc:creator>ichavarria</dc:creator>
    <dc:date>2023-03-17T17:51:31Z</dc:date>
    <item>
      <title>Filter a chart based in a minium number of responses</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-a-chart-based-in-a-minium-number-of-responses/m-p/3139439#M112026</link>
      <description>&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a doubt about filters, i was trying to make a filter that will show the chart only if the amount of responses is greater then 3, if the chart have only 2 or 1 answer shouldn't not show the graph.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is when I filter the graph, he is filter every answer and no the total of answers, for example:&lt;/P&gt;&lt;P&gt;The graph with two answers: &lt;STRONG&gt;&lt;EM&gt;Yes&lt;/EM&gt; &lt;/STRONG&gt;and &lt;STRONG&gt;&lt;EM&gt;No&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If the graph have 2 yes and 1 no, it should appear for everyone, but if have only 1 yes and 1 no that graph shouldn't appear, but the problem is that the filter considerer the options separately.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was using "DISTINCTCOUNT" to make a expression to filter the graph.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to filter the minium of answer considering every answer?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 16:49:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-a-chart-based-in-a-minium-number-of-responses/m-p/3139439#M112026</guid>
      <dc:creator>IEG_CSC12</dc:creator>
      <dc:date>2023-03-17T16:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: Filter a chart based in a minium number of responses</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-a-chart-based-in-a-minium-number-of-responses/m-p/3139522#M112034</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="444108" data-lia-user-login="IEG_CSC12" class="lia-mention lia-mention-user"&gt;IEG_CSC12&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can filter the minimum number of answers considering every answer by using a measure that calculates the total number of responses and then applies the filter to the measure instead of the columns that contain the individual responses.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, let's say you have a table called "Survey" with columns "Response" and "RespondentID". You can create a measure called "Total Responses" with the following formula:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2" color="#993300"&gt;Total Responses = DISTINCTCOUNT(Survey[RespondentID])&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This measure calculates the total number of unique RespondentIDs in the Survey table. You can then create another measure called "Show Chart" that checks if the Total Responses are greater than or equal to 3:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;FONT size="2" color="#993300"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;Show Chart = IF([Total Responses]&amp;gt;=3, "Yes", "No")&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Now you can use the "Show Chart" measure to filter the chart. If the "Show Chart" measure returns "Yes", the chart will be displayed, and if it returns "No", the chart will be hidden. This way you are filtering the total number of responses rather than individual responses.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best regards,&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.linkedin.com/in/isaac-chavarria-artavia-38b982184/" target="_self" rel="nofollow noopener noreferrer"&gt;Isaac Chavarria&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;SPAN&gt;, then please consider&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;Accepting it as the solution&amp;nbsp;and giving Kudos&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;to help the other members find it more quickly&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 17:51:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Filter-a-chart-based-in-a-minium-number-of-responses/m-p/3139522#M112034</guid>
      <dc:creator>ichavarria</dc:creator>
      <dc:date>2023-03-17T17:51:31Z</dc:date>
    </item>
  </channel>
</rss>

