<?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: Creating Categories based on counts in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-Categories-based-on-counts/m-p/1839337#M39230</link>
    <description>&lt;P&gt;That worked!!! Thanks!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 12 May 2021 19:22:24 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-05-12T19:22:24Z</dc:date>
    <item>
      <title>Creating Categories based on counts</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-Categories-based-on-counts/m-p/1836912#M39139</link>
      <description>&lt;P&gt;I have a list of people that receive 1 letter monthly.&amp;nbsp; People are added to the list, so now, if I look back - I want to understand and craft the following based on people and count of letters received in past 32 months.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a mock list:&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;people&lt;/TD&gt;&lt;TD&gt;total # of letters&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;pp1&lt;/TD&gt;&lt;TD&gt;32&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;pp2&lt;/TD&gt;&lt;TD&gt;32&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;pp3&lt;/TD&gt;&lt;TD&gt;16&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;pp4&lt;/TD&gt;&lt;TD&gt;16&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;pp5&lt;/TD&gt;&lt;TD&gt;28&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;pp6&lt;/TD&gt;&lt;TD&gt;27&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;pp7&lt;/TD&gt;&lt;TD&gt;28&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;pp8&lt;/TD&gt;&lt;TD&gt;27&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;pp9&lt;/TD&gt;&lt;TD&gt;16&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;pp10&lt;/TD&gt;&lt;TD&gt;12&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;pp11&lt;/TD&gt;&lt;TD&gt;12&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;pp12&lt;/TD&gt;&lt;TD&gt;12&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;pp13&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;pp14&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;pp15&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;pp16&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The goal is to create a bar chart and each total #, report the number of people that received that many letters in past 32 months, then on top of that, add how many replied to the letter that was sent (%)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure how to craft this in a formula.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 19:30:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-Categories-based-on-counts/m-p/1836912#M39139</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-11T19:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Categories based on counts</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-Categories-based-on-counts/m-p/1837094#M39147</link>
      <description>&lt;P&gt;Hi !&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Please share how you are currently tracking No. of Letters delivered vs. Reply recieved in your Data model.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 23:23:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-Categories-based-on-counts/m-p/1837094#M39147</guid>
      <dc:creator>HashamNiaz</dc:creator>
      <dc:date>2021-05-11T23:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Categories based on counts</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-Categories-based-on-counts/m-p/1837107#M39149</link>
      <description>&lt;P&gt;the table has each user individual, the date, and Yes or No if sent, and yes or no if responses, then yes or no if account updated.&amp;nbsp; After importing the table into PBI, I then just pulled up a matrix, and have the people in column, then in values - count of Sent (filtered on sent value as yes), so shows me the count of sent based on the filter of the date as well in the filter section.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 00:02:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-Categories-based-on-counts/m-p/1837107#M39149</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-12T00:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Categories based on counts</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-Categories-based-on-counts/m-p/1837113#M39150</link>
      <description>&lt;P&gt;Hi !&lt;BR /&gt;&lt;BR /&gt;You can get started by using following 2 measures;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;Letter Sent = CALCULATE( COUNT(YourTable[People]), FILTER(YourTable, YourTable[Sent] = "Yes"))

Letter Recieved = CALCULATE( COUNT(YourTable[People]), FILTER(YourTable, YourTable[Responses] = "Yes"))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can replace the YourTable with table name, we consider [People] as column name in your model, this is the column representing each individual, or you can use the Date column as well. We consider Sent &amp;amp; Reponses are 2 columns in your model to pick Sent = "Yes" to get No. of Letter sent count and Repsonses = "Yes" to get No. Of Letter recieved count.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hasham&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 00:15:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-Categories-based-on-counts/m-p/1837113#M39150</guid>
      <dc:creator>HashamNiaz</dc:creator>
      <dc:date>2021-05-12T00:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Categories based on counts</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-Categories-based-on-counts/m-p/1837134#M39152</link>
      <description>&lt;P&gt;Is there a way to filter the calculation based on a subset - example, i have 2 tables, the data that holds the people and response information, and the more people detailed information - both connected by peopleEmail.&amp;nbsp; I further have a subset, a list of people names, details, and emails - i want to calculate just only for those, so as long as they match are in the response information table.&amp;nbsp; Hope that makes sense.&amp;nbsp; I keep getting filter expression error due to true/false statement.&amp;nbsp; My thoughts are this -&amp;nbsp; (it failed - but a start i guess)&amp;nbsp;&lt;/P&gt;&lt;P&gt;Letters Sent Group1 = CALCULATE( COUNT(ResponseTble[email],&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;FILTER(ResponseTble, 'ResponseTble'[Sent] = "Yes"),&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FILTER(ResponseTble, 'ResponseTble'[email] in&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;VALUES('Group1'[email])&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 01:13:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-Categories-based-on-counts/m-p/1837134#M39152</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-12T01:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Categories based on counts</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-Categories-based-on-counts/m-p/1837178#M39153</link>
      <description>&lt;P&gt;Hi !&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I would rather prefer to solve this problem through Data Modeling. You have&amp;nbsp;&lt;SPAN&gt;ResponseTble and&amp;nbsp;Group1 table, both are connected through [email] column. You can put a slicer on your report from Group1 table to filter selected Groups. This will apply filter based on selection and only those emails will be checked in ResponseTable where the Group1 [email] criteria is matched. And then second filter will apply through DAX to check [Sent] = "Yes"&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope this will help you get resolved the issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hasham&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 01:42:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-Categories-based-on-counts/m-p/1837178#M39153</guid>
      <dc:creator>HashamNiaz</dc:creator>
      <dc:date>2021-05-12T01:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Categories based on counts</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-Categories-based-on-counts/m-p/1839337#M39230</link>
      <description>&lt;P&gt;That worked!!! Thanks!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 19:22:24 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Creating-Categories-based-on-counts/m-p/1839337#M39230</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-12T19:22:24Z</dc:date>
    </item>
  </channel>
</rss>

