<?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: Using Calculate function in column context in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-Calculate-function-in-column-context/m-p/910820#M8691</link>
    <description>&lt;P&gt;Calculated columns get loaded at first load only.&lt;/P&gt;&lt;P&gt;They can't change with slicer selection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if you want something dynamic, need to create measures.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards,&lt;BR /&gt;Pravin Wattamwar&lt;BR /&gt;&lt;A href="http://www.linkedin.com/in/pravin-p-wattamwar" target="_blank"&gt;www.linkedin.com/in/pravin-p-wattamwar&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;If I resolve your problem Mark it as a solution and give kudos.&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jan 2020 13:25:49 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-01-24T13:25:49Z</dc:date>
    <item>
      <title>Using Calculate function in column context</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-Calculate-function-in-column-context/m-p/910784#M8687</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a Data model of Employees, that is to be classified into Age Groups defined in a separate Dimension Table. I can calculate the Age group of the Employee from DOB. But I need to do distinctCount on EmployeeID in the Dimension Table ...bcoz I need to filter the Employee table on the value referred in Dim Age-group tbl.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using Calculate function in a Column added to the Dim Age-group table &amp;amp; using filter function in it for the Date conditions. This gives me the correct values. The only issue here is when I place a Slicer with some different Dimension. The values aren't getting filtered out as Calculate ignores Filter context.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE(DISTINCTCOUNT('EMP'[ID]),&lt;BR /&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; filter('EMP',&amp;nbsp;&lt;BR /&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;// date filters&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;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;amp;&amp;amp; 'tx Worker'[Age-group] = 'Age-Group'[Age-group]))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please help me How can I get the values filtered by Slicer also?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Apoorv&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2020 12:56:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-Calculate-function-in-column-context/m-p/910784#M8687</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-24T12:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using Calculate function in column context</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-Calculate-function-in-column-context/m-p/910820#M8691</link>
      <description>&lt;P&gt;Calculated columns get loaded at first load only.&lt;/P&gt;&lt;P&gt;They can't change with slicer selection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if you want something dynamic, need to create measures.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards,&lt;BR /&gt;Pravin Wattamwar&lt;BR /&gt;&lt;A href="http://www.linkedin.com/in/pravin-p-wattamwar" target="_blank"&gt;www.linkedin.com/in/pravin-p-wattamwar&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;If I resolve your problem Mark it as a solution and give kudos.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2020 13:25:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Using-Calculate-function-in-column-context/m-p/910820#M8691</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-24T13:25:49Z</dc:date>
    </item>
  </channel>
</rss>

