<?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 Using ALL but displaying only relevant rows in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-ALL-but-displaying-only-relevant-rows/m-p/4098233#M162618</link>
    <description>&lt;P&gt;I am trying to create a visual that looks at work items, their associated work resources and displays a calculation based on their total hours assigned to jobs and weekly capacity hours to give me an available hour number.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;To do this i created a measure using ALL which works to give me correct availabe hour number however when you filter to a work item it displays all work resources and not just associated ones to that work item.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;My question is that if there is a way to perform that calculation but just display the rows for the resources assigned to the work item and not all in my table.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Aug 2024 17:02:47 GMT</pubDate>
    <dc:creator>TexasXD1</dc:creator>
    <dc:date>2024-08-13T17:02:47Z</dc:date>
    <item>
      <title>Using ALL but displaying only relevant rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-ALL-but-displaying-only-relevant-rows/m-p/4098233#M162618</link>
      <description>&lt;P&gt;I am trying to create a visual that looks at work items, their associated work resources and displays a calculation based on their total hours assigned to jobs and weekly capacity hours to give me an available hour number.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;To do this i created a measure using ALL which works to give me correct availabe hour number however when you filter to a work item it displays all work resources and not just associated ones to that work item.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;My question is that if there is a way to perform that calculation but just display the rows for the resources assigned to the work item and not all in my table.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 17:02:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-ALL-but-displaying-only-relevant-rows/m-p/4098233#M162618</guid>
      <dc:creator>TexasXD1</dc:creator>
      <dc:date>2024-08-13T17:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: Using ALL but displaying only relevant rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-ALL-but-displaying-only-relevant-rows/m-p/4098239#M162620</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="718179" data-lia-user-login="TexasXD1" class="lia-mention lia-mention-user"&gt;TexasXD1&lt;/a&gt;&amp;nbsp;Sorry, having trouble following, can you post sample data as text and expected output?&lt;BR /&gt;Not really enough information to go on, please first check if your issue is a common issue listed here: &lt;A href="https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, please see this post regarding How to Get Your Question Answered Quickly: &lt;A href="https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490" target="_blank"&gt;https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The most important parts are:&lt;BR /&gt;1. Sample data as text, use the table tool in the editing bar&lt;BR /&gt;2. Expected output from sample data&lt;BR /&gt;3. Explanation in words of how to get from 1. to 2.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 17:05:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-ALL-but-displaying-only-relevant-rows/m-p/4098239#M162620</guid>
      <dc:creator>Greg_Deckler</dc:creator>
      <dc:date>2024-08-13T17:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: Using ALL but displaying only relevant rows</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-ALL-but-displaying-only-relevant-rows/m-p/4103988#M162850</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="718179" data-lia-user-login="TexasXD1" class="lia-mention lia-mention-user"&gt;TexasXD1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe you can try formula like below to create measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;AvailableHours = 
VAR TotalAssignedHours = CALCULATE(
    [TotalHours],
    ALL('WorkResources')
)
VAR TotalWeeklyCapacity = CALCULATE(
    [WeeklyCapacity],
    ALL('WorkResources')
)
RETURN
TotalWeeklyCapacity - TotalAssignedHours&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;RelevantResources = 
CALCULATE(
    [AvailableHours],
    FILTER(
        'WorkResources',
        'WorkResources'[WorkItemID] = SELECTEDVALUE('WorkItems'[WorkItemID])
    )
)&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Adamk Kong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2024 09:39:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-ALL-but-displaying-only-relevant-rows/m-p/4103988#M162850</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-16T09:39:41Z</dc:date>
    </item>
  </channel>
</rss>

