<?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: Counts  of ID if ID has values in more than 1 value in a different column in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counts-of-ID-if-ID-has-values-in-more-than-1-value-in-a/m-p/1586946#M31793</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="199377" data-lia-user-login="syasmin25" class="lia-mention lia-mention-user"&gt;syasmin25&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Failing Grade Count = 
    VAR StudentTermSummary =
        SUMMARIZE(
            ALLSELECTED(Grades),
            Grades[ID],
            Grades[Period],
            "FailingGrades",
            CALCULATE(
                COUNTROWS(Grades),
                Grades[Grade] IN {"D", "F"}
            )
        )
    RETURN

    CALCULATE(
        DISTINCTCOUNT(Grades[ID]),
        FILTER(
            StudentTermSummary,
            [FailingGrades] &amp;gt; 0
        ),
        VALUES(Grades[Period])
    )&lt;/LI-CODE&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;</description>
    <pubDate>Thu, 07 Jan 2021 22:16:35 GMT</pubDate>
    <dc:creator>littlemojopuppy</dc:creator>
    <dc:date>2021-01-07T22:16:35Z</dc:date>
    <item>
      <title>Counts  of ID if ID has values in more than 1 value in a different column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counts-of-ID-if-ID-has-values-in-more-than-1-value-in-a/m-p/1586913#M31791</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to count ID’s that have a “D or F” in more than 1 or more subjects.&lt;/P&gt;&lt;P&gt;I have the following table,&lt;BR /&gt;&lt;BR /&gt;IDPeriodGradeBldg#Subject&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;101&lt;/TD&gt;&lt;TD&gt;S1&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;2356&lt;/TD&gt;&lt;TD&gt;English&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;102&lt;/TD&gt;&lt;TD&gt;S1&lt;/TD&gt;&lt;TD&gt;D&lt;/TD&gt;&lt;TD&gt;2356&lt;/TD&gt;&lt;TD&gt;Math&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;102&lt;/TD&gt;&lt;TD&gt;S1&lt;/TD&gt;&lt;TD&gt;F&lt;/TD&gt;&lt;TD&gt;2356&lt;/TD&gt;&lt;TD&gt;Science&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;102&lt;/TD&gt;&lt;TD&gt;S1&lt;/TD&gt;&lt;TD&gt;F&lt;/TD&gt;&lt;TD&gt;2356&lt;/TD&gt;&lt;TD&gt;English&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;103&lt;/TD&gt;&lt;TD&gt;S1&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;2356&lt;/TD&gt;&lt;TD&gt;Science&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;103&lt;/TD&gt;&lt;TD&gt;S2&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;2154&lt;/TD&gt;&lt;TD&gt;English&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;104&lt;/TD&gt;&lt;TD&gt;S1&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;2356&lt;/TD&gt;&lt;TD&gt;English&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;104&lt;/TD&gt;&lt;TD&gt;S2&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;2154&lt;/TD&gt;&lt;TD&gt;Science&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;105&lt;/TD&gt;&lt;TD&gt;S1&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;2356&lt;/TD&gt;&lt;TD&gt;Math&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;105&lt;/TD&gt;&lt;TD&gt;S2&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;2154&lt;/TD&gt;&lt;TD&gt;English&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;105&lt;/TD&gt;&lt;TD&gt;S2&lt;/TD&gt;&lt;TD&gt;F&lt;/TD&gt;&lt;TD&gt;2154&lt;/TD&gt;&lt;TD&gt;Science&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;106&lt;/TD&gt;&lt;TD&gt;S2&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;2154&lt;/TD&gt;&lt;TD&gt;Science&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;amp; I have created the following visual. I am trying to create a column/measure that counts the ID if they have have a “D or F” in English and Math or even English, Math and Science. I am also trying to create a column that holds " English and Math" &amp;amp; “English, Math &amp;amp; Science” as values. I am trying to insert a table that would hold those values underneath the table in the image below and calculate their f%. I tried creating conditional columns to separate subjects and then doing an unpivot but realized that it was creating duplicate ID’s and also each ID has subject in a different row. Any help would be appreciated.&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;img /&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;P&gt;I can't seem to attach the file here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 21:39:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counts-of-ID-if-ID-has-values-in-more-than-1-value-in-a/m-p/1586913#M31791</guid>
      <dc:creator>syasmin25</dc:creator>
      <dc:date>2021-01-07T21:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: Counts  of ID if ID has values in more than 1 value in a different column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counts-of-ID-if-ID-has-values-in-more-than-1-value-in-a/m-p/1586946#M31793</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="199377" data-lia-user-login="syasmin25" class="lia-mention lia-mention-user"&gt;syasmin25&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Failing Grade Count = 
    VAR StudentTermSummary =
        SUMMARIZE(
            ALLSELECTED(Grades),
            Grades[ID],
            Grades[Period],
            "FailingGrades",
            CALCULATE(
                COUNTROWS(Grades),
                Grades[Grade] IN {"D", "F"}
            )
        )
    RETURN

    CALCULATE(
        DISTINCTCOUNT(Grades[ID]),
        FILTER(
            StudentTermSummary,
            [FailingGrades] &amp;gt; 0
        ),
        VALUES(Grades[Period])
    )&lt;/LI-CODE&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;</description>
      <pubDate>Thu, 07 Jan 2021 22:16:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counts-of-ID-if-ID-has-values-in-more-than-1-value-in-a/m-p/1586946#M31793</guid>
      <dc:creator>littlemojopuppy</dc:creator>
      <dc:date>2021-01-07T22:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Counts  of ID if ID has values in more than 1 value in a different column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counts-of-ID-if-ID-has-values-in-more-than-1-value-in-a/m-p/1587010#M31795</link>
      <description>&lt;P&gt;Thank you for your help. Unfortunately, I am actually wanting the table to look somewhat like the image below. This is where I am struggling with counts as unpivoting them creates duplicates.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 22:54:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counts-of-ID-if-ID-has-values-in-more-than-1-value-in-a/m-p/1587010#M31795</guid>
      <dc:creator>syasmin25</dc:creator>
      <dc:date>2021-01-07T22:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: Counts  of ID if ID has values in more than 1 value in a different column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counts-of-ID-if-ID-has-values-in-more-than-1-value-in-a/m-p/1587024#M31797</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="199377" data-lia-user-login="syasmin25" class="lia-mention lia-mention-user"&gt;syasmin25&lt;/a&gt;&amp;nbsp; how about this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Failing Grade Count = 
    VAR StudentTermSummary =
        SUMMARIZE(
            ALLSELECTED(Grades),
            Grades[ID],
            Grades[Subject],
            "FailingGrades",
            CALCULATE(
                COUNTROWS(Grades),
                Grades[Grade] IN {"D", "F"}
            )
        )
    RETURN

    CALCULATE(
        DISTINCTCOUNT(Grades[ID]),
        FILTER(
            StudentTermSummary,
            [FailingGrades] &amp;gt; 0
        ),
        VALUES(Grades[Subject])
    )&lt;/LI-CODE&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;</description>
      <pubDate>Thu, 07 Jan 2021 23:04:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counts-of-ID-if-ID-has-values-in-more-than-1-value-in-a/m-p/1587024#M31797</guid>
      <dc:creator>littlemojopuppy</dc:creator>
      <dc:date>2021-01-07T23:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: Counts  of ID if ID has values in more than 1 value in a different column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counts-of-ID-if-ID-has-values-in-more-than-1-value-in-a/m-p/1587035#M31798</link>
      <description>&lt;P&gt;Thank you again, this seems to make a lot of sense. However, I would like to make combination as the image below, how would I create a table like that to do the counts using the the raw data posted above in the question?&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 23:12:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counts-of-ID-if-ID-has-values-in-more-than-1-value-in-a/m-p/1587035#M31798</guid>
      <dc:creator>syasmin25</dc:creator>
      <dc:date>2021-01-07T23:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Counts  of ID if ID has values in more than 1 value in a different column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counts-of-ID-if-ID-has-values-in-more-than-1-value-in-a/m-p/1587213#M31808</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="199377" data-lia-user-login="syasmin25" class="lia-mention lia-mention-user"&gt;syasmin25&lt;/a&gt; , for this one you might have create two meaures with filters, with formula suggested in last post and then use those measures in matrix, and use Option "Show on Row"&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 02:37:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counts-of-ID-if-ID-has-values-in-more-than-1-value-in-a/m-p/1587213#M31808</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-01-08T02:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: Counts  of ID if ID has values in more than 1 value in a different column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counts-of-ID-if-ID-has-values-in-more-than-1-value-in-a/m-p/1587261#M31811</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="148838" data-lia-user-login="amitchandak" class="lia-mention lia-mention-user"&gt;amitchandak&lt;/a&gt;&amp;nbsp;dd you notice where someone else offered a solution??? &amp;nbsp;&lt;span class="lia-unicode-emoji" title=":neutral_face:"&gt;😐&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 03:36:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counts-of-ID-if-ID-has-values-in-more-than-1-value-in-a/m-p/1587261#M31811</guid>
      <dc:creator>littlemojopuppy</dc:creator>
      <dc:date>2021-01-08T03:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Counts  of ID if ID has values in more than 1 value in a different column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counts-of-ID-if-ID-has-values-in-more-than-1-value-in-a/m-p/1587269#M31813</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="17198" data-lia-user-login="littlemojopuppy" class="lia-mention lia-mention-user"&gt;littlemojopuppy&lt;/a&gt; , Again no overlap with your Answer. I just suggested display way.&amp;nbsp; Check - "with formula suggested in last post"&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 03:49:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counts-of-ID-if-ID-has-values-in-more-than-1-value-in-a/m-p/1587269#M31813</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2021-01-08T03:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: Counts  of ID if ID has values in more than 1 value in a different column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counts-of-ID-if-ID-has-values-in-more-than-1-value-in-a/m-p/1587282#M31818</link>
      <description>&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":face_with_rolling_eyes:"&gt;🙄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 04:21:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counts-of-ID-if-ID-has-values-in-more-than-1-value-in-a/m-p/1587282#M31818</guid>
      <dc:creator>littlemojopuppy</dc:creator>
      <dc:date>2021-01-08T04:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: Counts  of ID if ID has values in more than 1 value in a different column</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counts-of-ID-if-ID-has-values-in-more-than-1-value-in-a/m-p/1598636#M32035</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I apologize for the late response, the "IN" statement here seems to count if they have failed either D or F, I am trying to count when there is both D and F.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2021 06:37:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Counts-of-ID-if-ID-has-values-in-more-than-1-value-in-a/m-p/1598636#M32035</guid>
      <dc:creator>syasmin25</dc:creator>
      <dc:date>2021-01-14T06:37:34Z</dc:date>
    </item>
  </channel>
</rss>

