<?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: Calculate amount of groups per status. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-amount-of-groups-per-status/m-p/3499597#M134172</link>
    <description>&lt;P&gt;Thank you so much &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="460868" data-lia-user-login="FreemanZ" class="lia-mention lia-mention-user"&gt;FreemanZ&lt;/a&gt;, That works, I just realise, that the original datasource does not provide proper entry, however totals supposed to work OK.&lt;/P&gt;&lt;P&gt;I guess my next quetion is:&lt;/P&gt;&lt;P&gt;How I can apply status for totals per companies&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;instead of each row:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Please advise, and I am closing the topic.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 26 Oct 2023 17:11:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-10-26T17:11:01Z</dc:date>
    <item>
      <title>Calculate amount of groups per status.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-amount-of-groups-per-status/m-p/3499340#M134157</link>
      <description>&lt;P&gt;My datasource looks llike that:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;I would like to create a visual(matrix)in PowerBi,that will count amount of companies per each status(the desirable output):&lt;/P&gt;&lt;P&gt;Equal: 2&lt;/P&gt;&lt;P&gt;Higher: 4&lt;/P&gt;&lt;P&gt;Lower: 4&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Unfortunelty the output I have is:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Equal: 3&lt;/P&gt;&lt;P&gt;Higher: 10&lt;/P&gt;&lt;P&gt;Lower: 6&lt;/P&gt;&lt;P&gt;Could you please advise if there is a way to do it in PowerBi?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2023 15:12:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-amount-of-groups-per-status/m-p/3499340#M134157</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-10-26T15:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate amount of groups per status.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-amount-of-groups-per-status/m-p/3499403#M134162</link>
      <description>&lt;P&gt;hi Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;try to plot a table visual with the company_id column and a measure like:&lt;/P&gt;
&lt;P&gt;measure = DISTINCTCOUNT(data[Status])&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2023 15:39:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-amount-of-groups-per-status/m-p/3499403#M134162</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-10-26T15:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate amount of groups per status.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-amount-of-groups-per-status/m-p/3499597#M134172</link>
      <description>&lt;P&gt;Thank you so much &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="460868" data-lia-user-login="FreemanZ" class="lia-mention lia-mention-user"&gt;FreemanZ&lt;/a&gt;, That works, I just realise, that the original datasource does not provide proper entry, however totals supposed to work OK.&lt;/P&gt;&lt;P&gt;I guess my next quetion is:&lt;/P&gt;&lt;P&gt;How I can apply status for totals per companies&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;instead of each row:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Please advise, and I am closing the topic.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2023 17:11:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-amount-of-groups-per-status/m-p/3499597#M134172</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-10-26T17:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate amount of groups per status.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-amount-of-groups-per-status/m-p/3500576#M134213</link>
      <description>&lt;P&gt;hi Anonymous&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How does "&lt;SPAN&gt;apply status for totals per companies&lt;/SPAN&gt;" look like? Could you describe it with an excel table?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2023 06:18:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-amount-of-groups-per-status/m-p/3500576#M134213</guid>
      <dc:creator>FreemanZ</dc:creator>
      <dc:date>2023-10-27T06:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate amount of groups per status.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-amount-of-groups-per-status/m-p/3501250#M134257</link>
      <description>&lt;P&gt;Hi &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="460868" data-lia-user-login="FreemanZ" class="lia-mention lia-mention-user"&gt;FreemanZ&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;The test will be to compare two subtotals of valuesper each company&amp;nbsp; from columns F and G , like:&lt;/P&gt;&lt;P&gt;=IF(F2=G2,"Equal",IF(F2&amp;gt;G2,"Higher",IF(F2&amp;lt;G2,"Lower","N/A")))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;so the outoput Iam after, will be:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you think it is possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2023 12:04:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-amount-of-groups-per-status/m-p/3501250#M134257</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-10-27T12:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate amount of groups per status.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-amount-of-groups-per-status/m-p/3504192#M134422</link>
      <description>&lt;P&gt;OK- I got the sollution.&lt;/P&gt;&lt;P&gt;So, I needed to create a seperate table in PowerBi.&lt;/P&gt;&lt;P&gt;This table(Tbl_Statuses) contains 3 rows- one row for each status(red, amber, neutral).&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Also I&amp;nbsp; needed to create a measure(&lt;SPAN&gt;CountofStatuses)&lt;/SPAN&gt; to count how many red, amber, neutral statuses each company have.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CountofStatuses =&lt;/SPAN&gt; &lt;SPAN&gt;COUNTROWS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;VALUES&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Tbl_01&lt;/SPAN&gt;&lt;SPAN&gt;[CompanyId]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;[cat_sumPOsCCRs]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;SELECTEDVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Tbl_Statuses&lt;/SPAN&gt;&lt;SPAN&gt;[Statuses]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; ))+&lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I Have created a visual.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;img /&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 30 Oct 2023 09:32:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-amount-of-groups-per-status/m-p/3504192#M134422</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-10-30T09:32:52Z</dc:date>
    </item>
  </channel>
</rss>

