<?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: Percent of Teams Total in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percent-of-Teams-Total/m-p/3872859#M151284</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&lt;/P&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;
&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;LI-CODE lang="markup"&gt;% ticket complete: =
VAR _ticketbyname =
    COUNTROWS ( VALUES ( ticket[ticket#] ) )
VAR _ticketbyteam =
    CALCULATE (
        COUNTROWS ( VALUES ( ticket[ticket#] ) ),
        ALL ( employee[name] ),
        VALUES ( employee[team] )
    )
RETURN
    IF (
        HASONEVALUE ( employee[name] ),
        DIVIDE ( _ticketbyname, _ticketbyteam ),
        "select name"
    )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 28 Apr 2024 05:32:32 GMT</pubDate>
    <dc:creator>Jihwan_Kim</dc:creator>
    <dc:date>2024-04-28T05:32:32Z</dc:date>
    <item>
      <title>Percent of Teams Total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percent-of-Teams-Total/m-p/3872634#M151280</link>
      <description>&lt;P&gt;New to Power BI and this forum.&lt;/P&gt;&lt;P&gt;Not sure if this was supposed to ask this question in this group or the visuals group.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have multiple employees in a employee table that shows what team they belong to.&amp;nbsp; I want to have a card on an employee dashboard that shows the percentage of tickets they have completed&amp;nbsp; based off the total tickets that team has completed.&amp;nbsp; The percentage will show on the card based off who is selected in the slicer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Slicer will have each employees name from all teams&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The [Employee Table] has more than just these two columns but is simplified for this post&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The [Ticket Table] has the tickets assigned to each of the employees:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Desired result will be a card that shows the percentage of employee's tickets against their respective team's tickets based on whoever is selected in the slicer&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Example:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;If Bob is selected, the card will show 40%&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;If Larry is selected, the card will show 60%&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Apr 2024 22:30:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percent-of-Teams-Total/m-p/3872634#M151280</guid>
      <dc:creator>banksbc</dc:creator>
      <dc:date>2024-04-27T22:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: Percent of Teams Total</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percent-of-Teams-Total/m-p/3872859#M151284</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Please check the below picture and the attached pbix file.&lt;/P&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;
&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;LI-CODE lang="markup"&gt;% ticket complete: =
VAR _ticketbyname =
    COUNTROWS ( VALUES ( ticket[ticket#] ) )
VAR _ticketbyteam =
    CALCULATE (
        COUNTROWS ( VALUES ( ticket[ticket#] ) ),
        ALL ( employee[name] ),
        VALUES ( employee[team] )
    )
RETURN
    IF (
        HASONEVALUE ( employee[name] ),
        DIVIDE ( _ticketbyname, _ticketbyteam ),
        "select name"
    )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Apr 2024 05:32:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Percent-of-Teams-Total/m-p/3872859#M151284</guid>
      <dc:creator>Jihwan_Kim</dc:creator>
      <dc:date>2024-04-28T05:32:32Z</dc:date>
    </item>
  </channel>
</rss>

