<?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: Rowbased DAX Measure doesn't work with Dim Table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rowbased-DAX-Measure-doesn-t-work-with-Dim-Table/m-p/2256094#M54454</link>
    <description>&lt;P&gt;The file transfer link has expired, can you please resubmit?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This part&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CALCULATE(SELECTEDVALUE())&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;has a certain smell to it. Most likely it is not what you need in this situation.&lt;/P&gt;</description>
    <pubDate>Sun, 26 Dec 2021 20:21:00 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2021-12-26T20:21:00Z</dc:date>
    <item>
      <title>Rowbased DAX Measure doesn't work with Dim Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rowbased-DAX-Measure-doesn-t-work-with-Dim-Table/m-p/2114436#M48420</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I've been puzzling and I've the feeling that I almost have the result but I'm missing something.&amp;nbsp;&lt;BR /&gt;I've made a sample report that represents the issue&amp;nbsp;&lt;A href="https://we.tl/t-2rSfNSPa3L" target="_blank" rel="noopener"&gt;https://we.tl/t-2rSfNSPa3L&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a table &lt;STRONG&gt;Objectives&lt;/STRONG&gt; that has: per (Cycle, ID, Area,&amp;nbsp; Emp) an Objective (the objective has to do with the ID and the Area, the Emp is just the person connected to the ID)&lt;BR /&gt;Another table &lt;STRONG&gt;Activities&amp;nbsp;&lt;/STRONG&gt;with: per ( Date, ID, Area, Emp) an Activity (multiple activities per cycle possible).&lt;BR /&gt;And a few Dim tables.&lt;BR /&gt;&lt;BR /&gt;The thing that doesn't work is that I need to "cap" the [# Activities CTD] (&amp;lt;-- number of activities cycle to date) of the Emps if they are higher than the Objectives of the ID the activity is with. --&amp;gt;&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;&amp;nbsp;I can get the information that I want if I use the EmpKey of the FactTable &lt;/STRONG&gt;(see blue columns in pictue below)&lt;STRONG&gt;, but not when I use the Full Name of DimEmp&lt;/STRONG&gt; (see the bottom table)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;The connections are existing (see Attachment 'data model').&amp;nbsp;&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;The problem lies in the measure 'Objectives':&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;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Adding the var selected_emp didn't work and userelationship didn't work either. The problem probably lies in the fact that the measure Objectives is a SELECTEDVALUE instead of a SUM. But in the input table 'Objectives'&amp;nbsp; there is always only 1 objective per (Cycle, ID, Area *and Emp), so if I just take the SUM of the objectives and do the [# Activities Capped] with the SUM of [# Activities CTD] then it doesn't take the ID into account and the activities capped doesn't make sense then.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;So I need a row based function that selects the Objectives and performs the measure&amp;nbsp; [# Activities Capped] per ID, and in a way that I can link it with DimEmp[EmpKey]&amp;nbsp; instead of only with Objectives[EmpKey]&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 06:40:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rowbased-DAX-Measure-doesn-t-work-with-Dim-Table/m-p/2114436#M48420</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-10-05T06:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: Rowbased DAX Measure doesn't work with Dim Table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rowbased-DAX-Measure-doesn-t-work-with-Dim-Table/m-p/2256094#M54454</link>
      <description>&lt;P&gt;The file transfer link has expired, can you please resubmit?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This part&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CALCULATE(SELECTEDVALUE())&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;has a certain smell to it. Most likely it is not what you need in this situation.&lt;/P&gt;</description>
      <pubDate>Sun, 26 Dec 2021 20:21:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Rowbased-DAX-Measure-doesn-t-work-with-Dim-Table/m-p/2256094#M54454</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2021-12-26T20:21:00Z</dc:date>
    </item>
  </channel>
</rss>

